agentleFS
oocxoocx/tfplan2md/.agents/skills/create-agent-skill/SKILL.md

create-agent-skill

Skill174 starsChanged 2 months agoMITView on GitHub

Create a new Agent Skill following project standards and templates. Use this when you need to encapsulate a new capability or workflow.

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

23 rules. 0 are common, 11 are distinctive, and 12 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 11

    Distinctive

    This author's own choices. Worth a look.

  • 12

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Complex Tooling: When an agent needs to run a sequence of scripts or commands that are too long for the main agent prompt.

    line 14
  2. Distinctive:

    Shared Capabilities: When multiple agents need the same capability (e.g., "Run UAT" used by UAT Tester and Quality Engineer).

    line 15
  3. Distinctive:

    Strict Procedures: When a process requires exact adherence to a checklist or script (e.g., Release process).

    line 16
  4. Very specific:

    Create the skill in .agents/skills/<skill-name>/.

    line 22
  5. Very specific:

    Use kebab-case for the skill name.

    line 23
  6. Very specific:

    Ensure the skill name matches the parent directory name exactly.

    line 24
  7. Very specific:

    Ensure name is 1–64 characters, lowercase letters/numbers/hyphens only.

    line 25
  8. Very specific:

    Ensure name does not start or end with - and does not contain consecutive hyphens (--).

    line 26
  9. Very specific:

    Create scripts/ and templates/ subdirectories only if needed.

    line 29
  10. Very specific:

    Use the provided template for SKILL.md.

    line 30
  11. Very specific:

    Update docs/workflow.md to register the new skill in the "Available Skills" table.

    line 31
  12. Very specific:

    Create skills in the root .github/ directory.

    line 35
  13. Distinctive:

    Use spaces or special characters in the skill name.

    line 36
  14. Very specific:

    Leave the description empty.

    line 37
  15. Distinctive:

    Prefer a small number of stable wrapper commands over many one-off commands.

    line 45
  16. Distinctive:

    Prefer tool-based reads (editor tools) over shell commands for read-only actions when available.

    line 47
  17. Distinctive:

    If a workflow is inherently risky (force-push, merge, deleting branches), keep it explicit and gated, but still consolidate the surrounding …

    line 49
  18. Distinctive:

    Ask the user for:

    line 55
  19. Distinctive:

    Run the following command to create the skill directory:

    line 64
  20. Distinctive:

    If your skill includes scripts or templates, add those directories explicitly:

    line 70
  21. Very specific:

    Read the template from .agents/skills/create-agent-skill/templates/SKILL.md and create the new SKILL.md file:

    line 79
  22. Very specific:

    Add the new skill to the "Available Skills" table in docs/workflow.md.

    line 89
  23. Distinctive:

    Check that the file structure looks like this:

    line 93

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “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

Create Agent Skill

Purpose

Standardize the creation of new Agent Skills to ensure they are consistent, discoverable, and follow best practices.

When to Create a Skill

  • Complex Tooling: When an agent needs to run a sequence of scripts or commands that are too long for the main agent prompt.
  • Shared Capabilities: When multiple agents need the same capability (e.g., "Run UAT" used by UAT Tester and Quality Engineer).
  • Strict Procedures: When a process requires exact adherence to a checklist or script (e.g., Release process).

Hard Rules

Must

  • Create the skill in .agents/skills/<skill-name>/.
  • Use kebab-case for the skill name.
  • Ensure the skill name matches the parent directory name exactly.
  • Ensure name is 1–64 characters, lowercase letters/numbers/hyphens only.
  • Ensure name does not start or end with - and does not contain consecutive hyphens (--).
  • Include a SKILL.md with valid YAML frontmatter.
  • Include a description in the frontmatter (max 1024 chars).
  • Create scripts/ and templates/ subdirectories only if needed.
  • Use the provided template for SKILL.md.
  • Update docs/workflow.md to register the new skill in the "Available Skills" table.

Must Not

  • Create skills in the root .github/ directory.
  • Use spaces or special characters in the skill name.
  • Leave the description empty.

Best Practices

  • Self-Contained: A skill should include all necessary scripts and templates within its folder.
  • Progressive Disclosure: the harness only loads the skill body when the description matches the user's intent. Keep descriptions specific.
  • Verification: Confirm the skill loads by asking for the task it covers in a fresh session and checking that the skill is invoked.
  • Approval Minimization: Design skills to reduce the number of Maintainer approval prompts (terminal command approvals) so agents can execute workflows with minimal interruptions.
    • Prefer a small number of stable wrapper commands over many one-off commands.
    • Batch related operations into a single command where practical (and safe).
    • Prefer tool-based reads (editor tools) over shell commands for read-only actions when available.
    • Reuse existing repo scripts (e.g., scripts/uat-*.sh) instead of duplicating multi-step command sequences.
    • If a workflow is inherently risky (force-push, merge, deleting branches), keep it explicit and gated, but still consolidate the surrounding steps.

Actions

1. Gather Information

Ask the user for:

  • Skill Name: Short, descriptive, kebab-case (e.g., run-uat, deploy-docs).
  • Description: One sentence explaining what the skill does and when an agent should load it.
  • Purpose: Detailed explanation of the skill's goal.
  • Approval Plan: Which commands will run, and how to structure them to minimize approvals (prefer a small number of stable wrappers).

2. Create Directory Structure

Run the following command to create the skill directory:

mkdir -p .agents/skills/`<skill-name>`

If your skill includes scripts or templates, add those directories explicitly:

mkdir -p .agents/skills/`<skill-name>`/scripts
mkdir -p .agents/skills/`<skill-name>`/templates

3. Create SKILL.md

Read the template from .agents/skills/create-agent-skill/templates/SKILL.md and create the new SKILL.md file:

cp .agents/skills/create-agent-skill/templates/SKILL.md .agents/skills/`<skill-name>`/SKILL.md

Then, edit the file to replace the placeholders ({{skill-name}}, {{description}}, {{purpose}}) with the gathered information.

4. Update Documentation

Add the new skill to the "Available Skills" table in docs/workflow.md.

5. Verify

Check that the file structure looks like this:

.agents/skills/`<skill-name>`/
├── SKILL.md
├── scripts/
└── templates/

References

Specifications & Documentation

ResourceWhat You'll Find
VS Code Agent SkillsOfficial documentation: SKILL.md format, YAML frontmatter fields, progressive disclosure architecture, and complete examples.
Agent Skills StandardThe open specification: formal schema, interoperability with other AI tools (Claude, Cursor, OpenAI Codex), and integration guides.
Agent Skills SpecificationDetailed field definitions, validation rules, and edge cases for SKILL.md files.

Example Repositories

RepositoryWhat You'll Find
anthropics/skillsReference skills from Anthropic: well-structured examples covering common patterns like debugging, documentation, and code review.
github/awesome-copilotCommunity collection of skills, custom agents, instructions, and prompts. Good source of real-world patterns.

Practical Guides

ResourceWhat You'll Find
Teaching AI Your Repository PatternsHands-on tutorial: real-world example (Selenium testing), key components that work (Clear Rules, Golden Examples, Templates), and verification tips.
GitHub Changelog AnnouncementFeature overview, availability across VS Code/CLI/coding agent, and links to community resources.

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.