agentleFS
LindseyBLindseyB/skills/write-skill/SKILL.md

write-skill

Skill1 starsChanged 7 days agoUnlicenseView on GitHub

Generate a new skill definition file with proper structure and best practices. Use when the user says "create a skill for [task]", "write a new skill", "make a skill that does [x]", or any variation asking to define a new AI skill.

25 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use grill, write-docs and 8 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • renatorozasSkill

    grill

    Adversarial code review. Don't let me ship until the changes pass your scrutiny.

    Also in 5 projects that use this

  • SentrySkill

    write-docs

    Create or update documentation pages for the Abacus docs site. Use when adding new documentation, updating existing pages, or ensuring docs stay in sync with code changes. Ensures pages follow Starlight patterns and build correctly.

    Also in 3 projects that use this

  • AWSSkill

    ship

    Finalize dev work on an issue branch — update docs, push, and open a PR.

    Also in 4 projects that use this

  • Google CloudSkill

    triage

    Gather context on a change or bug and plan the implementation.

    Also in 4 projects that use this

  • SentrySkill

    review

    Fixture review skill.

    Also in 5 projects that use this

  • AWSSkill

    retro

    Conduct a retrospective on a coding session.

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

23 rules. 0 are common, 18 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 23 edited versions we read keep these.

  • 18

    Distinctive

    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. Distinctive:

    Create a well-structured skill definition that an AI agent can follow to perform a specific task reliably and consistently.

    line 8
  2. Distinctive:

    When to invoke the skill (trigger patterns)

    line 13
  3. Distinctive:

    Ask clarifying questions if needed:

    line 20
  4. Very specific:

    Avoid generic names like helper or utility

    line 32
  5. Distinctive:

    Start with YAML frontmatter that defines:

    line 36
  6. Distinctive:

    Start with what the skill produces or accomplishes

    line 46
  7. Distinctive:

    Keep it under 3 sentences

    line 49
  8. Distinctive:

    Start with an H1 that's slightly more descriptive than the name.

    line 56
  9. Distinctive:

    Use code blocks for commands, examples, or output formats

    line 71
  10. Very specific:

    Start each with [Issue]:

    line 81
  11. Distinctive:

    Write instructions like you're guiding a junior engineer:

    line 87
  12. Distinctive:

    Be explicit: Don't say "handle appropriately" — say exactly what to do

    line 89
  13. Distinctive:

    Show examples: When output format matters, include a concrete example

    line 90
  14. Distinctive:

    Read through the skill as if you're an AI agent with no prior context:

    line 95
  15. Very specific:

    Create a new folder: skills/[skill-name]/

    line 103
  16. Very specific:

    Write the skill to: skills/[skill-name]/SKILL.md

    line 105
  17. Distinctive:

    After creating the file, show a summary:

    line 107
  18. Distinctive:

    Use numbered steps for sequential operations

    line 122
  19. Distinctive:

    Write in second person ("you check", "parse the results")

    line 124
  20. Distinctive:

    Leave format ambiguous ("format appropriately", "do something reasonable")

    line 129
  21. Distinctive:

    Write vague instructions like "handle errors gracefully"

    line 132
  22. Very specific:

    Command examples: should be concrete and runnable.

    line 138
  23. Distinctive:

    Edge cases: should focus on the top 3-5 common failure modes, not every possible scenario.

    line 140

“Common” is measured: kept by at least 6 in 10 of the 23 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

Skill Writer

Create a well-structured skill definition that an AI agent can follow to perform a specific task reliably and consistently.

Goal

Produce a SKILL.md file that clearly defines:

  1. When to invoke the skill (trigger patterns)
  2. What the skill does (goal/outcome)
  3. How to execute it (step-by-step instructions)
  4. Edge cases and gotchas

Step 1: Understand the Task

Ask clarifying questions if needed:

  • What is the core task this skill should accomplish?
  • What inputs does it need from the user?
  • What should the output look like?
  • Are there any tools or commands it should use?
  • What are common edge cases or failure modes?

Step 2: Choose a Skill Name

Pick a short, descriptive name using kebab-case:

  • Use 1-3 words max
  • Focus on the action or output (e.g., daily-standup, write-skill, deploy-service)
  • Avoid generic names like helper or utility

Step 3: Write the Frontmatter

Start with YAML frontmatter that defines:

---
name: skill-name
description: [One sentence describing what the skill does and when to trigger it. Include example trigger phrases like 'Use when the user says "do X", "create Y", or any variation asking for Z.']
---

Description tips:

  • Start with what the skill produces or accomplishes
  • Include 3-5 natural trigger phrases users might say
  • Be specific about the context (e.g., "based on calendar", "from a transcript file")
  • Keep it under 3 sentences

Step 4: Write the Skill Body

Structure the skill in clear sections:

Title

Start with an H1 that's slightly more descriptive than the name.

Goal (optional but recommended)

A 1-3 sentence summary of what the skill achieves and why.

Steps

Number each major step clearly. Use descriptive headers like:

  • ## Step 1: Fetch Data
  • ## Step 2: Process Results
  • ## Step 3: Generate Output

For each step:

  • State the objective clearly
  • Show exact commands or tool calls if applicable
  • Explain what to do with the results
  • Use code blocks for commands, examples, or output formats

Output/Formatting Section

Define exactly what the final output should look like:

  • Structure and format
  • Where to write it (file, console, artifact)
  • Rendering or post-processing steps

Gotchas Section

List common edge cases, failure modes, or special handling:

  • Start each with **[Issue]**:
  • Be specific about what to skip, ignore, or handle differently
  • Include examples where helpful

Step 5: Use Clear, Direct Language

Write instructions like you're guiding a junior engineer:

  • Use imperatives: "Fetch the data", "Parse the results", "Skip declined events"
  • Be explicit: Don't say "handle appropriately" — say exactly what to do
  • Show examples: When output format matters, include a concrete example
  • One action per bullet: Break complex operations into sub-bullets

Step 6: Test the Mental Model

Read through the skill as if you're an AI agent with no prior context:

  • Can you execute each step without ambiguity?
  • Are all inputs clearly defined?
  • Is the output format unambiguous?
  • Are edge cases covered?

Output

Create a new folder: skills/[skill-name]/

Write the skill to: skills/[skill-name]/SKILL.md

After creating the file, show a summary:

Created new skill: [skill-name]

Location: skills/[skill-name]/SKILL.md
Triggers: [list key trigger phrases]
Output: [describe what it produces]

To activate: Add the skills folder to your AI assistant's configuration and say "[example trigger phrase]"

Best Practices

DO:

  • Use numbered steps for sequential operations
  • Include example commands, output formats, and edge cases
  • Write in second person ("you check", "parse the results")
  • Be opinionated about format and structure
  • Front-load the most common use case

DON'T:

  • Leave format ambiguous ("format appropriately", "do something reasonable")
  • Assume the agent knows context outside the skill
  • Make steps dependent on unspecified configuration
  • Write vague instructions like "handle errors gracefully"
  • Overcomplicate simple tasks

Gotchas

  • Trigger phrases in the description should be natural language, not technical jargon. Think about how a user would actually ask for this.
  • Command examples should be concrete and runnable. Use placeholder syntax like $VARIABLE for dynamic values.
  • Output format is critical — if the skill produces structured output, show exactly what it should look like with a real example.
  • Edge cases should focus on the top 3-5 common failure modes, not every possible scenario.
  • File paths — if the skill creates files, specify the path pattern clearly (e.g., artifacts/1on1-[date].md).

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.