Agent Prompt Engineering
agentailor/fullstack-langgraph-nextjs-agent
Comprehensive guide for designing, refining, and auditing system prompts for autonomous AI agents based on Anthropic's production practices.
This skill should be used when the user asks to "create an agent instruction", "add agent instructions", "scaffold an agent sample", "create a system prompt sample", "add a system prompt", "create a…
$ npx skills add pnp/copilot-prompts --skill create-system-prompt -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install pnp/copilot-prompts create-system-prompt --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/pnp/copilot-prompts.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/create-system-prompt .claude/skills/create-system-prompt && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "create-system-prompt" agent skill from https://github.com/pnp/copilot-prompts/tree/main/.github/skills/create-system-prompt into .claude/skills/create-system-prompt/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "create-system-prompt", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/pnp/copilot-prompts/tree/main/.github/skills/create-system-promptType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add pnp/copilot-prompts --skill create-system-prompt -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install pnp/copilot-prompts create-system-prompt --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pnp/copilot-prompts.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.github/skills/create-system-prompt .agents/skills/create-system-prompt && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "create-system-prompt" agent skill from https://github.com/pnp/copilot-prompts/tree/main/.github/skills/create-system-prompt into .agents/skills/create-system-prompt/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "create-system-prompt", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add pnp/copilot-prompts --skill create-system-prompt -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install pnp/copilot-prompts create-system-prompt --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pnp/copilot-prompts.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.github/skills/create-system-prompt .cursor/skills/create-system-prompt && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "create-system-prompt" agent skill from https://github.com/pnp/copilot-prompts/tree/main/.github/skills/create-system-prompt into .cursor/skills/create-system-prompt/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "create-system-prompt", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/pnp/copilot-prompts.git --path .github/skills/create-system-prompt--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add pnp/copilot-prompts --skill create-system-prompt -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install pnp/copilot-prompts create-system-prompt --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pnp/copilot-prompts.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.github/skills/create-system-prompt .gemini/skills/create-system-prompt && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "create-system-prompt" agent skill from https://github.com/pnp/copilot-prompts/tree/main/.github/skills/create-system-prompt into .gemini/skills/create-system-prompt/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "create-system-prompt", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install pnp/copilot-prompts create-system-promptInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add pnp/copilot-prompts --skill create-system-prompt -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/pnp/copilot-prompts.git skills-src && mkdir -p .github/skills && cp -r skills-src/.github/skills/create-system-prompt .github/skills/create-system-prompt && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "create-system-prompt" agent skill from https://github.com/pnp/copilot-prompts/tree/main/.github/skills/create-system-prompt into .github/skills/create-system-prompt/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "create-system-prompt", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add pnp/copilot-prompts --skill create-system-prompt -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install pnp/copilot-prompts create-system-prompt --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pnp/copilot-prompts.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.github/skills/create-system-prompt .opencode/skills/create-system-prompt && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "create-system-prompt" agent skill from https://github.com/pnp/copilot-prompts/tree/main/.github/skills/create-system-prompt into .opencode/skills/create-system-prompt/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "create-system-prompt", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
create-system-promptThis skill should be used when the user asks to "create an agent instruction", "add agent instructions", "scaffold an agent sample", "create a system prompt sample", "add a system prompt", "create a…
Create System Prompt is an agent skill from pnp/copilot-prompts. This skill should be used when the user asks to "create an agent instruction", "add agent instructions", "scaffold an agent sample", "create a system prompt sample", "add a system prompt", "create a new agent", "build an agent", or needs to create a new agent instruction sample with proper folder structure, README, and sample.json metadata inside the agent-instructions folder. Do NOT use this skill for simple prompt samples that are not agent instructions.
Its SKILL.md is about 3.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in AI & LLM Engineering, covering Prompt engineering, Agent instruction files and Building AI agents. The repository describes itself as: Examples of prompts for Microsoft Copilot. The licence is MIT.
3 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit ce45963. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown and json).
From the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
m365-visitor-stats.azurewebsites.netavatars.githubusercontent.comgithub.compnp.github.iocopilot.microsoft.comAlso links to:
adoption.microsoft.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Create System Prompt loads about 3.1k tokens when it runs. Until then it costs about 120 tokens; SKILL.md has 986 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from pnp/copilot-prompts at commit ce45963, republished under its MIT licence (© pnp). 986 words, ~3,129 tokens.
.claude/skills/create-system-prompt/SKILL.md (or your agent's skills folder).This skill guides creating new agent instruction samples for the pnp/copilot-prompts repository. These samples live inside samples/agent-instructions/ and represent agents whose system prompt / instructions are the contribution. Contributors build an agent in Microsoft Copilot Studio and share the instructions (system prompt) that power it.
Critical: Always ask the user for the following information before scaffolding:
If the user doesn't provide all details upfront, ask for the missing ones before proceeding.
Create the sample in samples/agent-instructions/{agent-name}/:
samples/agent-instructions/{agent-name}/
├── assets/
│ ├── demo.png # Required static preview
│ └── sample.json # Metadata for the M365 Solution Gallery
├── README.md # Documentation with agent instructionsFolder naming rules:
daily-chore-children, communication-assistant, peace-keeper-agent)m365- or github- — agent instruction folders use plain descriptive namesCreate samples/agent-instructions/{agent-name}/README.md using this structure:
# 🎯 {Agent Name}
## Summary
{Short summary of what this agent does, its purpose, and why it's useful.}
## Instruction
{The full agent instructions / system prompt goes here.
This is the core contribution — the complete system prompt that defines:
## 🏆 Use Case Category
{Mark the applicable categories with [x]:}
- [ ] 🎮 **Gaming** – AI-powered game ideas, NPC interactions, procedural storytelling
- [ ] 📚 **Storytelling & Creative Writing** – Fiction, poetry, and immersive storytelling prompts
- [ ] 🤖 **AI Assistants** – Virtual assistants, chatbots, and productivity helpers
- [ ] 🛠️ **Productivity & Tools** – Code generation, automation, and workflow improvements
- [ ] 🎓 **Education** – Learning aids, tutoring, and interactive teaching tools
- [ ] 🏥 **Healthcare & Wellbeing** – AI for mental health, fitness, and well-being support
- [ ] 🌎 **Other** – If your idea doesn't fit the above, tell us what it's about!
## Contributors 👨💻
[{Author Name}](https://github.com/{github-username})
## Version history
Version|Date|Comments
-------|----|--------
1.0|{Month DD, YYYY}|Initial release
## Instructions 📝
- Make sure you have Microsoft 365 Copilot in your tenant.
- Access Copilot studio agent builder
- On the left-hand rail, select Create an agent - New agent
- Add description to refine agents behavior. Make sure to use short, precise and simple description.
- Paste the prompt in the Instructions field, and alter it according to your needs.
- Try out your agent in the same window.
## Prerequisites
Copilot License
## Help
We do not support samples, but this community is always willing to help, and we want to improve these samples. We use GitHub to track issues, which makes it easy for community members to volunteer their time and help resolve issues.
You can try looking at [issues related to this sample](https://github.com/pnp/copilot-prompts/issues?q=label%3A%22sample%3A%20{agent-name}%22) to see if anybody else is having the same issues.
If you encounter any issues using this sample, [create a new issue](https://github.com/pnp/copilot-prompts/issues/new).
Finally, if you have an idea for improvement, [make a suggestion](https://github.com/pnp/copilot-prompts/issues/new).
## Disclaimer
**THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.**
README rules:
README.md after the titlehttps://m365-visitor-stats.azurewebsites.net/copilot-prompts/copilotprompts-agent-{agent-name}{Month DD, YYYY} formatCreate samples/agent-instructions/{agent-name}/assets/sample.json:
[
{
"name": "copilotprompts-agent-{agent-name}",
"source": "pnp",
"title": "{Agent Title}",
"shortDescription": "{Short description of what the agent does}",
"url": "https://github.com/pnp/copilot-prompts/tree/main/samples/agent-instructions/{agent-name}",
"downloadUrl": "https://pnp.github.io/download-partial/?url=https://github.com/pnp/copilot-prompts/tree/main/samples/agent-instructions/{agent-name}",
"longDescription": [
"{A longer description of what the agent does and why it's useful.}"
],
"creationDateTime": "{YYYY-MM-DD}",
"updateDateTime": "{YYYY-MM-DD}",
"products": [
"Copilot"
],
"metadata": [],
"thumbnails": [
{
"type": "image",
"order": 100,
"url": "https://github.com/pnp/copilot-prompts/raw/main/samples/agent-instructions/{agent-name}/assets/demo.png",
"alt": "{Description of the agent screenshot}"
}
],
"authors": [
{
"gitHubAccount": "{github-username}",
"pictureUrl": "https://avatars.githubusercontent.com/{github-username}",
"name": "{Author Name}"
}
],
"references": [
{
"name": "Microsoft Copilot",
"description": "Microsoft Copilot",
"url": "https://copilot.microsoft.com/"
}
]
}
]Key metadata rules:
name: Always copilotprompts-agent-{agent-name} where {agent-name} is the folder nameshortDescription and longDescription[0]: Should describe the agent's purpose; longDescription can be more detailedcreationDateTime and updateDateTime: Use YYYY-MM-DD format with the current dateproducts: Always ["Copilot"] for agent instruction samplessource: Always "pnp"url: Points to samples/agent-instructions/{agent-name} on GitHub main branchdownloadUrl: Uses the pnp partial download service URL pointing to the same pathpictureUrl for authors: Use https://avatars.githubusercontent.com/{username}thumbnails: Point to the required sample-specific static PNG and provide descriptive alt textAfter creating the files, remind the user to:
assets/demo.pngREADME.md aligned with that fileWhen helping a user craft their system prompt, encourage them to include these sections:
The system prompt should be detailed enough that anyone can paste it into Copilot Studio's Instructions field and get a working agent.
Before finalizing, verify:
samples/agent-instructions/ (NOT directly under samples/)README.md existsREADME.md contains the full system prompt in a fenced code block under the Instruction sectionassets/ folder existsassets/ contains at least one sample-specific static PNGassets/sample.json exists with valid JSONsample.json name field matches pattern copilotprompts-agent-{agent-name}sample.json products is ["Copilot"]sample.json URLs include the full path samples/agent-instructions/{agent-name}sample.json dates are in YYYY-MM-DD formatcopilotprompts-agent-{agent-name}samples/agent-instructions/{agent-name}/, never directly under samples/README.md, assets/sample.json, and at least one sample-specific static PNG in assets/products field in sample.json is always ["Copilot"] (these are Copilot Studio agents)sample.json feeds the M365 Solution Gallery — accuracy mattersagent-instructions folder for consistency© pnp, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. 1 hidden character (zero-width or bidirectional) removed. Raw file
Just SKILL.md in .github/skills/create-system-prompt of pnp/copilot-prompts.
Open the folder on GitHubat commit ce45963
Create System Prompt next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Create System Prompt this skillpnp/copilot-prompts | 892 | — | ~3.1k | Automated safety check: Pass | MIT | |
| Agent Prompt Engineeringagentailor/fullstack-langgraph-nextjs-agent | 132 | — | ~3.6k | Automated safety check: Pass | MIT | |
| Microsoft Foundrymicrosoft/GitHub-Copilot-for-Azure | 255 | 1 repos | ~6.7k | Automated safety check: Pass | MIT | |
| Senior Prompt Engineermaslennikov-ig/claude-code-orchestrator-kit | 260 | 4 repos | ~1.4k | Automated safety check: Pass | Custom licence | |
| DSPy Language Model ProgrammingOrchestra-Research/AI-Research-SKILLs | 13k | 10 repos | ~3.8k | Automated safety check: Pass | MIT | |
| Prompt Regressionagentscope-ai/OpenJudge | 868 | — | ~2.8k | Automated safety check: Pass | Apache-2.0 |
agentailor/fullstack-langgraph-nextjs-agent
Comprehensive guide for designing, refining, and auditing system prompts for autonomous AI agents based on Anthropic's production practices.
microsoft/GitHub-Copilot-for-Azure
Build, deploy, evaluate, optimize, fine-tune, and manage Microsoft Foundry agents, models, and resources end to end.
maslennikov-ig/claude-code-orchestrator-kit
Provides reference guides and Python scripts for prompt optimization, RAG evaluation, and agent orchestration when building or tuning LLM systems.
Orchestra-Research/AI-Research-SKILLs
Teaches an agent to build LM pipelines, RAG systems and agents in DSPy using signatures, modules and optimizers instead of hand-tuned prompts.
agentscope-ai/OpenJudge
A skill your agent uses when the user has changed a prompt (system prompt, RAG template, agent instruction, etc.) and wants to know whether the candidate is better or worse than the baseline.
undefined-ui/second-brain-os
Audit an agent's context layout against the four places: system prompt, tools, history, tail.
pnp/copilot-prompts
This skill should be used when the user asks to "create a new prompt sample", "add a new prompt sample", "scaffold a new prompt sample", "create a prompt contribution", "add a prompt", or needs to…
pnp/copilot-prompts
This skill should be used when the user asks to "create a new skill sample", "add a skill", "scaffold a new skill", "contribute a skill", "create a GitHub Copilot skill", "build a custom skill", or…
Categories
This skill should be used when the user asks to "create an agent instruction", "add agent instructions", "scaffold an agent sample", "create a system prompt sample", "add a system prompt", "create a…. Create System Prompt is an agent skill from pnp/copilot-prompts.json metadata inside the agent-instructions folder.
Create System Prompt fits situations like: asks to create an agent instruction; add agent instructions; scaffold an agent sample; create a system prompt sample.
Run `npx skills add pnp/copilot-prompts --skill create-system-prompt -a claude-code`. Or copy the skill folder (.github/skills/create-system-prompt in pnp/copilot-prompts) into .claude/skills/create-system-prompt in your project. Claude Code loads it when a task matches its description.
Run `npx skills add pnp/copilot-prompts --skill create-system-prompt -a codex`. Or copy the skill folder (.github/skills/create-system-prompt in pnp/copilot-prompts) into .agents/skills/create-system-prompt in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add pnp/copilot-prompts --skill create-system-prompt -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/create-system-prompt, .gemini/skills/create-system-prompt, .github/skills/create-system-prompt and .opencode/skills/create-system-prompt in your project.
SKILL.md names no scripts, command-line tools or credentials: Create System Prompt is instructions for the agent only.
SKILL.md names 6 domains. In commands or code: m365-visitor-stats.azurewebsites.net, avatars.githubusercontent.com, github.com, pnp.github.io and copilot.microsoft.com; the agent is likely to contact these when it follows the instructions. As links in the text: adoption.microsoft.com. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Create System Prompt is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.1k tokens (SKILL.md is roughly 13k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Create System Prompt: Agent Prompt Engineering (agentailor/fullstack-langgraph-nextjs-agent, 132 stars), Microsoft Foundry (microsoft/GitHub-Copilot-for-Azure, 255 stars), Senior Prompt Engineer (maslennikov-ig/claude-code-orchestrator-kit, 260 stars) and DSPy Language Model Programming (Orchestra-Research/AI-Research-SKILLs, 13k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
pnp (a GitHub organization) maintains it in pnp/copilot-prompts, which has 892 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on October 6, 2026.
Source: pnp/copilot-prompts on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.