agentleFS
SethGammonSethGammon/Citadel/skills/create-skill/SKILL.md

create-skill

Skill922 starsChanged 2 months agoMITView on GitHub

Creates new skills from the user's repeating patterns. Interview-driven: discovers the task, analyzes failure modes, generates a production SKILL.md, installs it, tests it on a real target, and teaches the user how to use it. Use when a user wants to encode a repeating workflow; do NOT use for one-off tasks or modifying existing skills.

100 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use create-rule, trigger-dev and 10 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.
  • 32103210Skill

    create-rule

    Create Cursor rules for persistent AI guidance. Use when you want to create a rule, add coding standards, set up project conventions, configure file-specific patterns, create RULE.md files, or asks about .cursor/rules/ or AGENTS.md.

    Also in 9 projects that use this

  • 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

  • +1 more from daianepepes-lab

The file

We split this skill into the rules it gives an agent

10 rules. 0 are common, 6 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 93 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Ask these three questions and wait for answers before proceeding.

    line 45
  2. Distinctive:

    Every section required. File MUST be under 500 lines.

    line 78
  3. Distinctive:

    No hedge language — "do X" not "consider X".

    line 124
  4. Distinctive:

    No filler — delete sections that add no new information.

    line 125
  5. Distinctive:

    Verify file exists and is readable

    line 133
  6. Very specific:

    Run /reload-skills if the running Claude Code version supports it.

    line 139
  7. Very specific:

    Run the skill's protocol following the SKILL.md exactly — pretend you are a different AI session with no memory of this conversation.

    line 144
  8. Very specific:

    If it fails or produces thin output, fix SKILL.md (common fixes: step too vague, step assumed context, gate not checkable, exit output …

    line 146
  9. Distinctive:

    Run again after fixes. Must pass on second attempt.

    line 147
  10. Very specific:

    Add step: new ### Step N in Protocol

    line 160

“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 Creator

Orientation

Use when:

  • The user says "I keep doing this same thing" or "automate this for me"
  • The user wants to encode a workflow they have refined through repetition
  • The user says "create a skill for X" or "make a skill that does Y"

Do NOT use when:

  • The user wants a one-off task done (just do it)
  • The pattern has only happened once
  • An existing skill already covers this
  • The user wants to modify an existing skill (edit directly)

Output: A complete .claude/skills/{name}/SKILL.md in the project directory, tested and working.

Protocol

Step 1: DISCOVER — The Three Questions

Ask these three questions and wait for answers before proceeding.

Q1: "What do you keep repeating?" Listen for: trigger, steps in order, scope, frequency. If vague, probe: "Walk me through the last time you did this."

Q2: "What mistakes happen when you do it manually?" Listen for: forgotten steps, ordering mistakes, convention drift, edge cases. These become guardrails and quality gates.

Q3: "What does 'done right' look like?" Listen for: observable outputs, quality signals, anti-patterns. These become quality gates and exit protocol.

Step 2: ANALYZE — Extract the Skill's DNA

Internal working material — do not show to user.

2a. Identity statement: "You are a {role} that {does what} to ensure {outcome}." Must distinguish this skill from all others.

2b. Trigger keywords (5-10): Specific enough to avoid false matches. Check existing .claude/skills/ for conflicts.

2c. Protocol steps: Transform "what I do" into numbered steps where:

  • Each step has a clear input and output
  • Decision points have explicit criteria ("IF x THEN y, ELSE z")
  • Steps reference concrete things (file paths, commands, patterns)

Bad: "3. Review the code for issues." Good: "3. Read every function. For each, check: (a) return type explicit, (b) error cases handled, (c) no input mutations. List violations with line numbers."

2d. Quality gates: Yes/no verifiable questions, no subjective criteria. Map each to a user "done right" criterion or common mistake.

2e. Pitfalls: From Q2. Become warnings or guard clauses in the protocol.

Step 3: GENERATE — Write the SKILL.md

Every section required. File MUST be under 500 lines.

---
name: {kebab-case-name}
description: >-
  {One to three sentences. Start with verb. Use when X; do NOT use for Y.}
user-invocable: true
auto-trigger: false
trigger_keywords:
  - {keyword 1}
  - {keyword 2}
---

# /{name} — {Readable Title}

## Orientation

**Use when:**
- {condition}

**Do NOT use when:**
- {exclusion}

**What this skill needs:**
- {required input}

## Protocol

### Step 1: {VERB — Name}
{Exact instructions. What to read, what to produce. No vague directives.}

### Step 2: {VERB — Name}
{Continue...}

## Quality Gates

- [ ] {Verifiable gate}

## Exit Protocol

{Exact output format}

Writing rules:

  1. Steps must be reproducible by a different AI session with no memory of this conversation.
  2. No hedge language — "do X" not "consider X".
  3. No filler — delete sections that add no new information.
  4. Include examples only where the pattern is non-obvious.
  5. Encode the user's taste: "I hate when it does Z" → explicit prohibition.

Step 4: INSTALL & REGISTER

  1. Create .claude/skills/{name}/
  2. Write the SKILL.md
  3. Verify file exists and is readable
  4. Register with router: a. Read .claude/harness.json, Citadel's shared config path for all runtimes including Codex (create with {} if missing) b. Add skill name to registeredSkills array c. Update registeredSkillCount to match array length
  5. Only add the skill to an active project instruction file that already has an explicit skills section. Codex uses AGENTS.md. Claude Code uses CLAUDE.md when present; with confirmed AGENTS.md support, it uses AGENTS.md by default if no project CLAUDE.md exists, or both when configured under Project instructions. Check the active setting before editing and preserve user-authored guidance.
  6. Run /reload-skills if the running Claude Code version supports it; the skill is live without a session restart. If unsupported, tell the user a fresh session is required before /{name} resolves.

Step 5: VERIFY — Test on a Real Target

  1. Find a real target in the current project the skill applies to.
  2. Run the skill's protocol following the SKILL.md exactly — pretend you are a different AI session with no memory of this conversation.
  3. Evaluate: did every step have enough information? Did any step require missing context? Did quality gates catch real issues?
  4. If it fails or produces thin output, fix SKILL.md (common fixes: step too vague, step assumed context, gate not checkable, exit output missing fields).
  5. Run again after fixes. Must pass on second attempt. If it fails twice, discuss scope with user.

Step 6: TEACH — Explain What Was Built

A. How to invoke:

  • Direct: /{name} or /{name} [target]
  • Via router: /do {natural language matching trigger keywords}

B. How it works (30-second version):

  • Steps summary, quality gates summary, exit output summary

C. How to modify:

  • File: .claude/skills/{name}/SKILL.md
  • Add step: new ### Step N in Protocol
  • Change quality standards: edit Quality Gates checkboxes
  • Change trigger words: edit trigger_keywords in frontmatter
  • Split if too large: create two skills, move steps between them

Contextual Gates

Disclosure: "Creating skill '{name}'. Will create skills/{name}/SKILL.md." Reversibility: green — creates skills/{name}/SKILL.md only; undo by deleting the directory. Trust gates:

  • Any: full skill creation, install, and teach workflow.

Quality Gates

  • Three discovery questions asked and answered
  • Generated SKILL.md follows exact format (frontmatter + required sections)
  • Frontmatter has: name, description, user-invocable, trigger_keywords
  • Description includes use-when / do-not-use orientation
  • Protocol steps specific enough for a different AI session to follow
  • No steps contain vague directives ("review", "consider", "ensure quality")
  • Quality gates all yes/no verifiable
  • Trigger keywords do not conflict with existing skills
  • SKILL.md is under 500 lines
  • Skill tested on a real target in the current project
  • Test produced meaningful output
  • User taught invocation, mechanics, and modification
  • File installed at .claude/skills/{name}/SKILL.md

Exit Protocol

SKILL CREATED

Name: {name}
Path: .claude/skills/{name}/SKILL.md
Invoke: /{name} [target]
Route via: /do {example natural language}

What it does:
  {One sentence description}

Steps: {N} steps
Quality gates: {N} gates
Lines: {line count}/500

Tested on: {target description}
Test result: PASS

Trigger keywords: {comma-separated list}
Reversibility: green — delete skills/{name}/ to undo
Try it now: /{name} {suggested first target}

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.