agentleFS
taurgistaurgis/sfcc-dev-mcp/.github/skills/agent-authoring/SKILL.md

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

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
  1. Very specific:

    Create .github/agents/<agent-name>.agent.md (VS Code auto-detects this folder/extension).

    line 15
  2. Very specific:

    Add YAML frontmatter with only supported fields: name, description, tools, target, infer, mcp-servers, handoffs.

    line 16
  3. Distinctive:

    Keep it under ~200-300 lines.

    line 18
  4. Very specific:

    Read-only agent: omit editing tools.

    line 39
  5. Very specific:

    Use handoffs to guide sequential flows (e.g., Plan -> Implement -> Review).

    line 43
  6. Very specific:

    No unsupported frontmatter fields (reject argument-hint, etc.).

    line 47
  7. Distinctive:

    Prefer scoped commands over global installs.

    line 48
  8. Distinctive:

    Add guardrails for destructive commands (never propose git reset --hard).

    line 49
  9. Distinctive:

    Keep instructions ASCII and concise.

    line 50
  10. Distinctive:

    Keep agents in sync with repo workflows (scripts, test commands).

    line 64
  11. Distinctive:

    Remove stale handoffs when target agents are renamed or removed.

    line 65
  12. Distinctive:

    Prefer additive changes; avoid reformatting existing agents without need.

    line 66

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. Create .github/agents/<agent-name>.agent.md (VS Code auto-detects this folder/extension).
  2. Add YAML frontmatter with only supported fields: name, description, tools, target, infer, mcp-servers, handoffs.
  3. In the body, write concise instructions: task focus, guardrails, run/validate steps, and handoffs.
  4. 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-copilot for Copilot agents (default), vscode for 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; add fetch for 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 terminal for 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.