agentleFS
paultyngpaultyng/skill-issue/skills/create-skill/SKILL.md

create-skill

Skill8 starsChanged 4 months agoMITView on GitHub

Use when creating, writing, or authoring a new Cursor agent skill, or when asking about skill structure, SKILL.md format, or skill best practices.

100 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use trigger-dev, cost-reducer and 9 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.
  • xfstudioSkill

    trigger-dev

    Trigger.dev expert for background jobs, AI workflows, and reliable async execution with excellent developer experience and TypeScript-first design. Use when: trigger.dev, trigger dev, background task, ai background job, long running task.

    Also in 4 projects that use this

  • daianepepes-labSkill

    cost-reducer

    Analyze and reduce costs across cloud infrastructure, code, and services. Use when asked to cut costs, optimize spending, reduce bills, or improve cost efficiency.

    Also in 4 projects that use this

  • daianepepes-labSkill

    know-me

    Build and maintain persistent memory about the user — preferences, context, decisions, and working style. Use when asked to remember something, recall past context, or update user profile.

    Also in 5 projects that use this

  • vikneshwaran16032005-altSkill

    build-premium-website

    Build a premium, animated marketing website (React + Vite + Tailwind + GSAP) for any industry. Use when the user asks to "build a website", "make a landing page for [business]", "build a marketing site", or wants a high-end animated company website. Adapts color, copy, services, and signature animation to the industry.

    Also in 3 projects that use this

  • vikneshwaran16032005-altSkill

    instantly-campaign

    Create a new Instantly cold-email campaign in the proven 5-email structure of the user's top-performing campaign (~16% reply rate). Use when the user wants to launch a new outbound campaign, write a cold email sequence, create an Instantly campaign, draft outreach for a new service or niche, or set up a sales sequence.

    Also in 3 projects that use this

  • ffsshhttiikkSkill

    scalability

    Core foundational concepts and principles for Scalability

    Also in 4 projects that use this

  • +1 more from daianepepes-lab

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. 0 are common, 8 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 93 edited versions we read keep these.

  • 8

    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:

    Trigger scenarios: when should the agent apply this skill

    line 23
  2. Very specific:

    Prefer verb-first or gerund form: create-skill > skill-creation, analyze-sessions > session-analysis

    line 33
  3. Very specific:

    Avoid: helper, utils, tools, misc

    line 35
  4. Very specific:

    Keep SKILL.md under 500 lines.

    line 93
  5. Distinctive:

    When including utility scripts:

    line 130
  6. Distinctive:

    Self-documenting constants: no magic numbers -- comment why each value was chosen

    line 133
  7. Very specific:

    Always use fully qualified names: ServerName:tool_name

    line 139
  8. Distinctive:

    When incorporating content from web sources or OSS into a skill:

    line 148
  9. Distinctive:

    Run a representative scenario WITHOUT the skill.

    line 163
  10. Distinctive:

    Write the skill addressing those specific failures.

    line 170
  11. Distinctive:

    Don't just state the rule -- forbid specific workarounds

    line 187
  12. Distinctive:

    Create a red flags list for self-checking

    line 189
  13. Very specific:

    Windows-style paths: always use forward slashes (scripts/helper.py)

    line 211

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

Skill Types

Categorize before writing -- this determines structure, degrees of freedom, and testing approach:

  • Technique: concrete method with steps (e.g. condition-based-waiting)
  • Pattern: mental model / way of thinking (e.g. flatten-with-flags)
  • Reference: API docs, syntax guides, tool documentation
  • Workflow: multi-step process with decision points (e.g. ship-it)

Requirements Gathering

Infer from conversation context when possible. If clarification is needed, use AskQuestion (or ask conversationally if unavailable). Capture:

  1. Purpose and scope: what specific task or workflow
  2. Storage location: personal (~/.cursor/skills/) or project (.cursor/skills/)
  3. Trigger scenarios: when should the agent apply this skill
  4. Domain knowledge: what the agent wouldn't already know
  5. Output format: templates, styles, or conventions required
  6. Existing patterns: examples or conventions to follow

Design

Name

  • Lowercase letters, numbers, hyphens only. Max 64 chars
  • Prefer verb-first or gerund form: create-skill > skill-creation, analyze-sessions > session-analysis
  • Name by what you DO or core insight, not generic labels
  • Avoid: helper, utils, tools, misc

Description (CSO-Critical)

The description determines whether the agent loads this skill. Max 1024 chars, third person.

Start with "Use when..." -- describe ONLY triggering conditions (symptoms, situations, contexts).

NEVER summarize the skill's workflow or process. Testing shows agents follow descriptions as shortcuts, skipping the full skill body. A description saying "does X then Y" causes agents to do exactly X then Y without reading the actual detailed instructions.

Include concrete triggers: error messages, symptoms, tool names, synonyms.

# BAD: workflow summary -- agent will shortcut to this
description: Analyzes code diffs, generates commit messages, and pushes to remote.

# BAD: too vague
description: Helps with documents.

# GOOD: triggering conditions only
description: Use when reviewing pull requests, examining code changes, or when asked for a code review.

# GOOD: specific triggers with keywords
description: Use when tests have race conditions, timing dependencies, or pass/fail inconsistently.

Directory Layout

skill-name/
├── SKILL.md              # Required -- main instructions
├── reference.md          # Optional -- detailed docs (progressive disclosure)
└── scripts/              # Optional -- utility scripts
    └── validate.py

Authoring Principles

Express requirement levels in skill instructions with RFC 2119 key words (MUST / SHOULD / MAY), sparingly and only where the level matters. See the normative-language rule.

Conciseness

The context window is shared. Only add what the agent doesn't already know. Challenge each paragraph: "Does this justify its token cost?"

# GOOD (~50 tokens): assumes agent knows what PDFs are
## Extract PDF text
Use pdfplumber:
  import pdfplumber
  with pdfplumber.open("file.pdf") as pdf:
      text = pdf.pages[0].extract_text()

# BAD (~150 tokens): explains what a PDF is
PDF (Portable Document Format) files are a common file format...

Progressive Disclosure

Keep SKILL.md under 500 lines. Put detailed reference material in separate files the agent reads only when needed. Keep references one level deep from SKILL.md -- deeply nested references may be partially read.

## Advanced features
**Form filling**: See [FORMS.md](FORMS.md) for complete guide
**API reference**: See [REFERENCE.md](REFERENCE.md) for all methods

For reference files over 100 lines, include a table of contents at the top.

Degrees of Freedom

Match specificity to task fragility:

  • High freedom (text instructions): multiple valid approaches, context-dependent. Example: code review guidelines
  • Medium freedom (pseudocode/templates): preferred pattern with acceptable variation. Example: report generation
  • Low freedom (exact scripts): fragile operations, consistency critical. Example: database migrations -- "Run exactly this. Do not modify."

Token Efficiency

  • Move details to --help flags or reference files
  • Cross-reference other skills instead of repeating content
  • One excellent example beats many mediocre ones
  • Compress examples: show minimal input/output, not verbose narratives

Common Patterns

Brief summary below. See best-practices.md for detailed examples with good/bad comparisons.

  • Template: provide output format templates (strict for APIs, flexible for analysis)
  • Examples: input/output pairs showing desired style and detail level
  • Workflow/Checklist: sequential steps with copy-paste progress checklist
  • Conditional workflow: decision points guiding to different paths
  • Feedback loop: validate → fix → re-validate cycle for quality-critical tasks

Script Guidelines

When including utility scripts:

  • Solve, don't punt: handle errors explicitly instead of failing and letting the agent figure it out
  • Self-documenting constants: no magic numbers -- comment why each value was chosen
  • Clear intent: state whether the agent should execute the script ("Run analyze.py") or read it as reference ("See analyze.py for the algorithm")
  • Pre-made scripts are more reliable than generated code, save tokens, and ensure consistency

MCP Tool References

Always use fully qualified names: ServerName:tool_name

Use the GitHub:create_issue tool to create issues.
Use the Atlassian:getJiraIssueTypeMetaWithFields tool to discover custom fields.

External Content and Licensing

When incorporating content from web sources or OSS into a skill:

  • Inline the content -- skills should be self-contained with no runtime web lookups
  • Always cite the source URL even when content is fully inlined
  • Comply with licensing terms: MIT/Apache/etc. require copyright notice preserved
  • Include a Sources section in the skill with attribution and license type
  • For OSS: link to the repo/file, note the license, credit the author(s)
  • For web content (docs, blog posts): link to the source URL for reference

Testing and Validation

Skills are TDD applied to process documentation. If you didn't watch an agent fail without the skill, you don't know if the skill teaches the right thing.

RED -- Baseline

Run a representative scenario WITHOUT the skill. Document:

  • What choices did the agent make?
  • What rationalizations did it use (verbatim)?
  • Which pressures triggered violations?

GREEN -- Write Minimal Skill

Write the skill addressing those specific failures. Run the same scenario WITH the skill. The agent should now comply.

REFACTOR -- Close Loopholes

Agent found a new rationalization? Add an explicit counter. Re-test until the skill is robust.

Testing by Skill Type

  • Discipline-enforcing (rules/requirements): pressure scenarios combining time + sunk cost + exhaustion
  • Technique (how-to guides): application scenarios + edge cases + missing-information tests
  • Pattern (mental models): recognition scenarios + counter-examples (when NOT to apply)
  • Reference (documentation): retrieval scenarios + application scenarios + gap testing

Bulletproofing Discipline Skills

For skills that enforce rules, agents will rationalize under pressure:

  • Don't just state the rule -- forbid specific workarounds
  • Build a rationalization table: | Excuse | Reality |
  • Create a red flags list for self-checking
  • Address "spirit vs letter" arguments: "Violating the letter of the rules IS violating the spirit"

Verification Checklist

Before finalizing:

  • Description starts with "Use when..." -- triggering conditions only, no workflow summary
  • SKILL.md body is under 500 lines
  • Consistent terminology throughout (pick one term, use it everywhere)
  • File references are one level deep from SKILL.md
  • No time-sensitive information (use "old patterns" section if needed)
  • Examples are concrete, not abstract
  • Tested with a representative scenario (baseline → with skill)
  • External content is inlined with source attribution

Anti-Patterns

  • Narrative storytelling: "In session 2025-10-03, we found..." -- too specific, not reusable
  • Multi-language dilution: one excellent example in the most relevant language beats mediocre examples in five languages
  • Workflow summary in description: causes agents to shortcut past the actual skill body
  • Generic labels: helper1, step3, pattern4 -- labels should have semantic meaning
  • Windows-style paths: always use forward slashes (scripts/helper.py)
  • Too many options: provide a default with an escape hatch, not a menu of five libraries
  • Vague names: helper, utils, tools -- name by what the skill does
  • Inconsistent terminology: pick one term (e.g. always "API endpoint", not mixing "URL", "route", "path")

Sources

Content in this skill and best-practices.md incorporates material from:

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.