agent-authoring
Skill27 starsChanged 10 months agoMITView on GitHub
How to design, structure, and validate custom Copilot agents for this workspace.
- Deletes or force-pushes
3 other projects use a version of this.
Adopted by
Most recently taken up by
- DAAF-Contribution-Community/daaftheir own version, first seen Nov 3, 2026
- GGGODLIN/gggodlin-cc-harnesstheir own version, first seen Oct 20, 2026
- 6SNT-RADIO/6SNT-Studiotheir own version, first seen Jun 7, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- DAAF-Contribution-Community/daaf★ 239same name
- GGGODLIN/gggodlin-cc-harness★ 73same name
- 6SNT-RADIO/6SNT-Studio★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ai-instructions/AGENTS.mdAGENTS.md
- mcp-developmentSkill
- mcp-log-debuggingSkill
- mcp-programmatic-testingSkill
- mcp-yaml-testingSkill
- salesforce-developer-site-scraperSkill
- salesforce-help-site-scraperSkill
- skill-authoringSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 7 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
Create .github/agents/<agent-name>.agent.md (VS Code auto-detects this folder/extension).
- Very specific: line 16
Add YAML frontmatter with only supported fields: name, description, tools, target, infer, mcp-servers, handoffs.
- Distinctive: line 18
Keep it under ~200-300 lines.
- Very specific: line 39
Read-only agent: omit editing tools.
- Very specific: line 43
Use handoffs to guide sequential flows (e.g., Plan -> Implement -> Review).
- Very specific: line 47
No unsupported frontmatter fields (reject argument-hint, etc.).
- Distinctive: line 48
Prefer scoped commands over global installs.
- Distinctive: line 49
Add guardrails for destructive commands (never propose git reset --hard).
- Distinctive: line 50
Keep instructions ASCII and concise.
- Distinctive: line 64
Keep agents in sync with repo workflows (scripts, test commands).
- Distinctive: line 65
Remove stale handoffs when target agents are renamed or removed.
- Distinctive: line 66
Prefer additive changes; avoid reformatting existing agents without need.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Agent Authoring Skill
Guidelines for creating and maintaining custom GitHub Copilot agents (.agent.md) tailored to this repository.
When to Use
- You need a new Copilot agent focused on a workflow (e.g., Storybook tests, log triage).
- You want to adjust tools/persona for existing agents.
- You are adding workspace-level agents under .github/agents or profile-level agents for reuse.
Quick Start
- Create
.github/agents/<agent-name>.agent.md(VS Code auto-detects this folder/extension). - Add YAML frontmatter with only supported fields:
name,description,tools,target,infer,mcp-servers,handoffs. - In the body, write concise instructions: task focus, guardrails, run/validate steps, and handoffs.
- Keep it under ~200-300 lines; link out to docs instead of pasting everything.
Frontmatter Cheatsheet
name: Display name; defaults to file name if omitted.description: Placeholder text in chat input; keep short.tools: List allowed tools. For MCP servers, use<server>/*to include all tools or enumerate specific ones.target:github-copilotfor Copilot agents (default),vscodefor VS Code target.infer: Allow subagent use (default true). Set false if you want to restrict subagents.mcp-servers: For Copilot agents, point to MCP server configs (paths to server JSON). Use only if you need to pin servers.handoffs: Optional array of next-step buttons{ label, agent, prompt?, send? }.
Body Structure (recommended)
- Purpose and scope: What this agent does and what it must not do.
- Operating defaults: Where to run commands, what to inspect first, preferred scripts.
- Playbooks: Ordered steps for common flows (run, debug, fix, validate).
- Guardrails: Safe-edit rules (scope, no unrelated changes, ask before destructive ops).
- Validation: How to verify work (tests/linters), how to summarize outputs.
- Links: Point to repo docs or skills for deeper detail.
Tool Selection Patterns
- Editing agent: include
workspace,terminal,search; addfetchfor docs; add MCP toolsets only if required. - Read-only agent: omit editing tools; keep
fetch/search. - Narrow the tool list to prevent unsafe actions (e.g., no
terminalfor planning-only agents).
Handoffs
Use handoffs to guide sequential flows (e.g., Plan -> Implement -> Review). Keep labels short and make prompts actionable. Use send: false unless you want auto-submit.
Quality Bar
- Minimal, task-focused instructions; avoid boilerplate.
- No unsupported frontmatter fields (reject
argument-hint, etc.). - Prefer scoped commands over global installs; mention working directory if non-root.
- Add guardrails for destructive commands (never propose
git reset --hard). - Keep instructions ASCII and concise; use fenced code blocks for commands.
Validation Checklist
- Supported frontmatter only; fields spelled correctly.
- Tools list matches the agent’s intent; no over-broad capabilities.
- Clear run/validate steps with default commands.
- Guardrails called out.
- Links resolve (relative paths within repo or official docs).
Examples
- Location:
.github/agents/storybook-interaction-tests.agent.md(interaction test fixer playbook). - Planning agent: frontmatter with
tools: ['fetch', 'search'], body instructs to gather context and produce a plan, handoff to implementation agent.
Maintenance Tips
- Keep agents in sync with repo workflows (scripts, test commands). Update after script changes.
- Remove stale handoffs when target agents are renamed or removed.
- Prefer additive changes; avoid reformatting existing agents without need.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

