Agent skill

Create Skill

by SethGammon in SethGammon/Citadel

Creates new skills from the user's repeating patterns. An agent skill from SethGammon/Citadel.

MITAuto-check passedAgent Workflows

Install Create Skill

skills CLI
$ npx skills add SethGammon/Citadel --skill create-skill -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install SethGammon/Citadel create-skill --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/SethGammon/Citadel.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/create-skill .claude/skills/create-skill && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
create-skill
GitHub stars
922
Token cost
~1.9k tokens
SKILL.md length
853 words
Files
3
Skills in repo
48
Repo updated
First seen
Licence
MIT

At a glance

Creates new skills from the user's repeating patterns. An agent skill from SethGammon/Citadel.

  • Works in 6 steps: DISCOVER — The Three Questions → ANALYZE — Extract the Skill's DNA → GENERATE — Write the SKILL.md → …
  • A user wants to encode a repeating workflow
  • SKILL.md covers Orientation, Protocol, Contextual Gates and Quality Gates, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Create Skill is an agent skill from SethGammon/Citadel. 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.

Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files (for example `__benchmarks__/repeated-pattern.md` and `__benchmarks__/vague-pattern.md`).

It sits in Agent Workflows. The repository describes itself as: The operating layer for Claude Code + OpenAI Codex: persistent project memory, intent routing, safety hooks, cost telemetry, and parallel agent fleets. The licence is MIT.

When your agent uses it

  • A user wants to encode a repeating workflow
  • Do NOT use for one-off tasks
  • Modifying existing skills

Example prompts

  • “Use the create-skill skill to create new skills from the user's repeating patterns. An agent skill from SethGammon/Citadel”
  • “/create-skill”

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. DISCOVER — The Three Questions
  2. ANALYZE — Extract the Skill's DNA
  3. GENERATE — Write the SKILL.md
  4. INSTALL & REGISTER
  5. VERIFY — Test on a Real Target
  6. TEACH — Explain What Was Built

What it can do on your machine

Read from SKILL.md and the folder at commit e41ff1d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Create Skill loads about 1.9k tokens when it runs. Until then it costs about 88 tokens; SKILL.md has 853 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~88
When it runs · the whole SKILL.md, loaded when a task matches
~1.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from SethGammon/Citadel at commit e41ff1d, republished under its MIT licence (© SethGammon). 853 words, ~1,915 tokens.

Download SKILL.mdSave it as .claude/skills/create-skill/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
create-skill
description
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.
license
MIT
user-invocable
true
auto-trigger
false
trigger_keywords
create skill, new skill, make a skill, teach the harness, custom skill, my own skill, skill for, automate this pattern, repeated pattern

/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.

markdown
---
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.
Show full SKILL.md (302 more words)Show less
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}

© SethGammon, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files in skills/create-skill of SethGammon/Citadel.

  • SKILL.md
  • __benchmarks__/repeated-pattern.md
  • __benchmarks__/vague-pattern.md

Open the folder on GitHubat commit e41ff1d

Compare with similar skills

Create Skill next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Create Skill compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Create Skill this skillSethGammon/Citadel922—~1.9kAutomated safety check: PassMIT
Diagnosing Superpowers Sessionsobra/superpowers296k3 repos~1.7kAutomated safety check: PassMIT
Grillingbestofjs/bestofjs3.1k30 repos~464Automated safety check: PassMIT
CodeGraph Agent Evalcolbymchenry/codegraph73k—~950Automated safety check: PassMIT
Improvefossasia/eventyay-interpretation1.6k10 repos~3.7kAutomated safety check: WarnMIT
Kayba Stage 1 API Analysiskayba-ai/agentic-context-engine2.6k—~1.1kAutomated safety check: PassApache-2.0

Similar skills

  • Investigates a session where Superpowers went wrong, reads the transcripts on disk and produces an evidence-cited report, optionally prepared as a bug report for the maintainers.

    296k GitHub starsUsed in 3 repos~1.7k tokens
    Agent WorkflowsAuto-check passed
  • Grilling

    bestofjs/bestofjs

    Grill the user relentlessly about a plan, decision, or idea.

    3.1k GitHub starsUsed in 30 repos~464 tokens
    Agent WorkflowsAuto-check passed
  • CodeGraph Agent Eval

    colbymchenry/codegraph

    Benchmarks how much CodeGraph helps a coding agent on a real repository, comparing runs with and without it for a chosen local or published version.

    73k GitHub stars~950 tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Improve

    fossasia/eventyay-interpretation

    Survey any codebase as a senior advisor and produce prioritized, self-contained implementation plans for OTHER models/agents to execute.

    1.6k GitHub starsUsed in 10 repos~3.7k tokens
    Agent WorkflowsAuto-check: warnings
  • Kayba Stage 1 API Analysis

    kayba-ai/agentic-context-engine

    Fetch pre-computed insights from the Kayba API and build a structured summary.

    2.6k GitHub stars~1.1k tokensUpdated 13 days ago
    Agent WorkflowsAuto-check passed
  • Agent QA Authoring

    vostride/agent-qa

    A skill your agent uses when creating, editing, validating, or running agent-qa tests, suites, or hooks.

    902 GitHub stars~569 tokensUpdated 2 mo ago
    Agent WorkflowsAuto-check passed

More from SethGammon/Citadel

All 48 skills in this repo
  • Houseclean

    SethGammon/Citadel

    Cross-drive storage audit and cleanup. An agent skill from SethGammon/Citadel.

    922 GitHub stars~2.2k tokensUpdated 6 days ago
    Auto-check passed
  • Loop

    SethGammon/Citadel

    Bounded foreground repetition for the current session. An agent skill from SethGammon/Citadel.

    922 GitHub stars~1.4k tokensUpdated 6 days ago
    Auto-check passed
  • Triage

    SethGammon/Citadel

    GitHub issue and PR investigator. An agent skill from SethGammon/Citadel.

    922 GitHub stars~2.7k tokensUpdated 6 days ago
    Auto-check passed
  • Watch

    SethGammon/Citadel

    File sentinel that monitors the working directory for changes and marker comments, then auto-triggers appropriate skills.

    922 GitHub stars~2.9k tokensUpdated 6 days ago
    Auto-check passed
  • Archon

    SethGammon/Citadel

    Autonomous multi-session campaign agent. An agent skill from SethGammon/Citadel.

    922 GitHub stars~5.4k tokensUpdated 6 days ago
    Auto-check passed
  • Fleet

    SethGammon/Citadel

    Parallel campaign orchestrator. An agent skill from SethGammon/Citadel.

    922 GitHub stars~6.3k tokensUpdated 6 days ago
    Auto-check passed

Questions about Create Skill

What does Create Skill do?

Creates new skills from the user's repeating patterns. An agent skill from SethGammon/Citadel. Create Skill is an agent skill from SethGammon/Citadel. Creates new skills from the user's repeating patterns.

When should I use Create Skill?

Create Skill fits situations like: A user wants to encode a repeating workflow; do NOT use for one-off tasks; modifying existing skills.

How do I install Create Skill in Claude Code?

Run `npx skills add SethGammon/Citadel --skill create-skill -a claude-code`. Or copy the skill folder (skills/create-skill in SethGammon/Citadel) into .claude/skills/create-skill in your project. Claude Code loads it when a task matches its description.

How do I install Create Skill in Codex?

Run `npx skills add SethGammon/Citadel --skill create-skill -a codex`. Or copy the skill folder (skills/create-skill in SethGammon/Citadel) into .agents/skills/create-skill in your project. Codex loads it when a task matches its description.

Can I use Create Skill in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add SethGammon/Citadel --skill create-skill -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/create-skill, .gemini/skills/create-skill, .github/skills/create-skill and .opencode/skills/create-skill in your project.

What does Create Skill need to run?

SKILL.md names no scripts, command-line tools or credentials: Create Skill is instructions for the agent only.

Does Create Skill access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Create Skill safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Create Skill use?

Create Skill is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Create Skill use?

About 1.9k tokens (SKILL.md is roughly 7.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Create Skill?

Skills that share tags, products or a category with Create Skill: Diagnosing Superpowers Sessions (obra/superpowers, 296k stars), Grilling (bestofjs/bestofjs, 3.1k stars), CodeGraph Agent Eval (colbymchenry/codegraph, 73k stars) and Improve (fossasia/eventyay-interpretation, 1.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Create Skill?

SethGammon (a GitHub user) maintains it in SethGammon/Citadel, which has 922 GitHub stars. The repository holds 48 skills in this directory. The repository was last updated on October 1, 2026.

Source: SethGammon/Citadel on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.