Skip to main content
Skill authoring 14 min read Updated

skill-creator

Create or update custom agent skills with concise discovery descriptions, matching invocation policies, supporting resources, and catalog checks.

npx skills add MAHDTech/agent-skills --skill skill-creator
View source

Skill Creator

A skill exists to wrangle determinism out of a stochastic system. Predictability - the agent taking the same process every run, not producing the same output - is the root virtue; every convention below serves it. Write the skill so the next run behaves like the last one.

Bold terms are defined in GLOSSARY.md; look them up there for the full meaning.

Where a skill lives

Every skill is a directory holding a SKILL.md, placed by what it does:

skills/<category>/<name>/SKILL.md
  • <category> is one of the ten topic buckets: engineering, game-development, planning, review, github, reflection, writing, authoring, tooling, guards. Category comes from the directory - never from a frontmatter key.
  • One lifecycle bucket sits inside the tree: in-progress/ holds drafts. Retired skills leave skills/ entirely for the top-level archive, skills-archive/<category>/<name>/, which keeps the original category.

Promotion is the payoff of living in a topic bucket: only skills under the ten categories appear in the generated README, index, and installer. A skill in in-progress/ is deliberately excluded - move it into a topic bucket to promote it. To retire one, use /skill-archive, which moves it to skills-archive/ where it stays readable on the dashboard but is never installed.

Naming

The name is prefix-free kebab-case, and it must equal the directory basename (skills/writing/unslop/ is named unslop).

  • Verb-first for an action the skill performs (sculpt-code, git-resolve-conflicts); a noun for a body of knowledge it holds (tdd, agent-guidelines).
  • Keep only a genuine subject scope as a prefix - gh- for GitHub API work, git- for git operations. These name a real tool the skill acts on; a project or subsystem name is a genuine scope too (acme- for skills that only make sense inside the Acme tool, so acme-deploy is correct). Drop taxonomy prefixes like cmd-, brain-, or sys-; the category directory already carries that signal.
  • 1 to 64 characters matching ^[a-z0-9]+(-[a-z0-9]+)*$, and it must not contain “anthropic” or “claude”.

Canonical frontmatter

The minimum is two keys:

---
name: kebab-case-name
description: What the skill does AND when to reach for it, in the user's own words.
---

name matches the directory (1 to 64 characters). description is model-facing and does the invocation work (1 to 1024 characters, see below). Optional keys, each added only when earned:

  • disable-model-invocation: true - requests explicit invocation in hosts that support this field (see below).
  • argument-hint - a short usage hint for a skill that takes an argument.
  • context: fork with agent: <type> (used together, e.g. agent: general-purpose) - runs the skill as a subagent in its own context, so a long or noisy run does not silt up the caller’s window.
  • metadata: - a flat string→string map for provenance and grouping. Use source and license on any skill adapted from an outside project (as this one carries source: mattpocock/skills, license: MIT). Use group: <group-name> to declare membership in a cohesive cross-reference group (standard groups: authoring, github, planning-pipeline, review, guards, nutanix, slop). Skills are self-contained by default; cross-references via /skill-name mentions, relative markdown links, or prose that names another skill are only permitted between skills in the same group (skill-router is exempt).
  • resources: - a YAML list of source URLs. It is functional, not decorative: ask skills download-resources reads it (implemented in crates/skills-core/src/downloader.rs) to (re)fetch vendored docs into the skill’s resources/auto/ directory (see the structure rule below), and reference skills rely on it. Keep it intact; never strip it.

That is the complete allowed set, so the frontmatter stays small. Every promoted custom skill also requires an agents/openai.yaml sidecar with an explicit invocation policy. These authoring requirements exclude vendor snapshots and archived skills. Distinct from the above are the legacy keys custom:, triggers:, category:, and type: - forbidden. Earlier skills carry them mid-migration; a new or edited skill drops them, putting triggers into the description prose and taking the category from the directory. Do not confuse these forbidden legacy keys with the real, functional resources: and metadata: keys above.

Invocation

Choose how the skill should be selected, then encode the same choice for Claude Code and Codex:

  • Automatic: focused references and bounded task helpers that the agent needs during an authorized task. Omit disable-model-invocation or set it to false, and set policy.allow_implicit_invocation: true in agents/openai.yaml.
  • Explicit only: publishing, lifecycle operations, large orchestration workflows, and catalogs intended for deliberate user initiation. Set disable-model-invocation: true and policy.allow_implicit_invocation: false.

Judge the entry point and its role, not just its length or interactivity. A design interview helper such as grilling can remain automatic for an explicitly requested design interview or a bounded interview step required by an authorized parent workflow. Likewise, git-resolve-conflicts can remain automatic when an authorized Git operation encounters conflicts. Give each a narrow description that names that trigger. This skill is automatic for the same reason: it is the conventions reference for any skill edit, while promoting, archiving, or regenerating the catalog happens only when the user asks.

Automatic selection loads guidance; it does not authorize publishing, deletion, messages, or other actions. Follow the user’s authorized scope and the skill’s action gates after loading it.

Enforcement varies by host. Claude Code supports disable-model-invocation; Codex uses its sidecar policy; OpenCode V2 supports the Claude field as an alias. OpenCode 1 and the inspected native Goose loader do not enforce it. Antigravity has no documented equivalent for disabling implicit selection; its CLI disable-slash-command field hides explicit slash invocation while keeping model invocation available. See provider evidence and limitations when choosing host-specific controls.

For explicit-only skills, keep the trigger in the shared description and add this standing instruction near the start of the body:

**Invocation:** Start only when the user explicitly requests this workflow.

On hosts without an invocation control, that instruction and the description are advisory guidance, not an enforced restriction. Do not promise universal zero context cost, removal from every model’s catalog, or that other workflows can never reach the skill.

Writing the description

A shared description tells the model what the skill does and when it applies. All supported hosts use it for discovery, subject to their invocation controls and catalog budgets. Codex’s interface.short_description is separate user-facing UI text and does not replace it.

Write one or two sentences, usually aiming for 100-220 characters. This is an editing guideline, not a new validation ceiling. Name the capability and its concrete trigger; include a boundary only when it resolves a likely ambiguity. Explicit-only skills should say that the user must request the workflow.

description: Explain repository module boundaries and interface tradeoffs. Use when designing a module or reviewing where an abstraction should live.
  • Front-load the capability and main trigger. Hosts may shorten descriptions when many skills are installed.
  • Avoid keyword inventories. Collapse synonyms and feature lists into the task the user is trying to complete.
  • Keep the boundary concrete. Distinguish adjacent workflows by their inputs or intended result; keep implementation detail in the body.
  • Lead with the capability verb (Build..., Audit..., Deploy...) and apply the vocabulary rules in Voice and anti-slop discipline; ask skills lint rejects openers like “This skill provides…” or “Expert guidance for…”.
  • Replace em-dashes (U+2014) with hyphens, colons, commas, or parentheses; ask skills lint --fix rewrites them.

Structure and progressive disclosure

A skill’s content is ranked by how immediately the agent needs it - the information hierarchy, a ladder with three rungs:

  1. In-skill step - an ordered action in SKILL.md: what the agent does, in order. The primary tier.
  2. In-skill reference - a definition, rule, or fact in SKILL.md, consulted on demand. Often a flat peer-set (every rule of a review on one rung), which is a fine arrangement, not a smell.
  3. External reference - reference pushed out of SKILL.md into a sibling file, reached by a context pointer and loaded only when the pointer fires (this skill discloses its definitions to GLOSSARY.md).

Progressive disclosure is the move down the ladder - out of SKILL.md into a linked file - so the top stays legible. Siblings live beside SKILL.md under resources/, which splits by ownership:

skills/<category>/<name>/
  SKILL.md          # entry point - steps and top-tier reference
  agents/           # required for promoted custom skills
    openai.yaml     # OpenAI Codex / ChatGPT app UI metadata and policy
  resources/        # optional; holds ONLY these two subdirectories:
    auto/           # downloader-owned - (re)fetched from the `resources:` URLs; never hand-edit
    manual/         # hand-authored scripts, docs, references, and static files

Never place a file directly in resources/: every resource lives under auto/ (managed by ask skills download-resources, safe to wipe and reproduce) or manual/ (yours, tooling never touches it). ask skills lint enforces this, and ask skills clean-resources deletes only auto/.

Markdown and Linking Rules:

  • Code fence language tags (MD040): Never use bare triple backticks. Always declare a language tag (```bash, ```json, ```text, ```rust).
  • Blank lines around fences (MD031): Every code block must be preceded and followed by a blank line, including when nested inside lists.
  • No absolute file links: Never use file:/// URLs referencing local paths. Always use relative repository paths (e.g. ../../review/code-review/SKILL.md).
  • No Markdown links to auto-downloaded resources: Never create Markdown links targeting resources/auto/ files; reference resources/auto/ paths via inline code spans (`resources/auto/...`) or directory search so ask skills clean-resources and upstream URL changes never break links (fragile-auto-resource-link).
  • Heading formatting: Headings must use plain text sentence case without bold markup (e.g. ### 1. Audit environment, never ### 1. **Phase 1: Initial Assessment**). Bold markup inside headings is prohibited and flagged by ask skills lint.
  • No tautological list items: Never use bold list lead-ins that merely repeat the item name (e.g. - **Performance:** Optimize performance...). State concrete details or use direct prose.

Branching is the disclosure test: inline what every branch needs, and push behind a pointer what only some branches reach. A pointer’s wording, not its target, decides when and how reliably the agent follows it - a must-have behind a weak pointer is a variance bug, so sharpen the wording before pulling material back inline.

Completion criteria

Every step ends on a completion criterion - the condition that tells the agent the work is done. Make it:

  • Checkable - can the agent tell done from not-done? “Understanding reached” cannot; “every changed file has a test” can.
  • Exhaustive where it matters - “every modified model accounted for”, not “produce a change list”. A vague bound invites premature completion.

A demanding criterion drives thorough legwork - the digging the agent does within a step - and it binds flat reference too (“every rule applied”), which is how a skill with no steps still carries an exhaustiveness bar.

Leading words

A leading word is a compact concept already living in the model’s pretraining that the agent thinks with while running the skill (e.g. seam, fog of war, tracer bullet). Repeated as a token - never re-explained as a sentence - it accumulates a distributed definition and anchors a whole region of behaviour in the fewest tokens, by recruiting priors the model already holds.

It serves predictability twice. In the body it anchors execution: the agent reaches for the same behaviour every time the word appears. In the description it anchors invocation: when the same word lives in your prompts, docs, and code, the agent links that shared language to the skill and fires it more reliably. Reach for an existing word first; a coined one recruits no priors and costs definition tokens.

Hunt for restatements a leading word retires: a triad spelled out three times, or a sentence gesturing at one idea, each collapses into a single token - fewer tokens and a sharper hook.

Prompt the positive

State the target behaviour, not the banned one. Negation backfires: don’t think of an elephant names the elephant and makes it more available. Describe what to do (“write one-line comments”) so the forbidden pattern is never spoken. Keep a prohibition only as a hard guardrail you cannot phrase positively - and even then pair it with the positive target.

Voice and anti-slop discipline

A skill is an operational manual for an agent, not a corporate marketing deck, tutorial, or textbook. Keep instructions dense, procedural, and falsifiable:

  • Concrete mechanisms over vague qualifiers. Ban lazy modifiers like “proper”, “properly”, “appropriate”, or “thorough” unless paired with an exact invariant, command, or threshold. Instead of “Ensure proper error handling”, specify “Return an explicit fallback error and log the response status code on network timeouts”.
  • Eliminate AI crutch vocabulary. Avoid buzzwords like “utilize”, “leverage”, “seamlessly”, “furthermore”, “delve”, “testament to”, “pivotal”, or “evolving landscape”. Prefer plain words: “use”, “if”, “because”, or name the exact mechanism.
  • No corporate roadmap padding. Omit fake roadmaps (“Immediate Next Steps within 48 hours / 1 week / 1 month”), generic “Best Practices” lists filled with platitudes, or hypothetical Q&A sections. Replace them with concrete verification steps and unambiguous completion criteria.
  • The copy-paste test. If a sentence or bullet could appear in an unrelated project without changing a word, it contains zero specific signal. Delete it or anchor it to exact codebase paths, data models, and tools.

Stay host-agnostic

A skill runs across multiple agent runtimes - Claude Code, OpenCode, Goose, Antigravity CLI and IDE, and OpenAI Codex. Keep its procedure independent of a host’s tooling. Name the capability, not the product: “your task-tracking tool”, “your agent’s subagent mechanism”, never one runtime’s command, tool name, or built-in. Never bake in a personal or absolute path; keep paths repo-relative. Put Codex UI metadata and policy in agents/openai.yaml, and mirror invocation intent in the supported SKILL.md field. A shared file does not make every host honor every optional field.

Standalone install. A consumer can install one skill with npx skills add and nothing else. Keep the body free of this repository’s tooling (ask, skills --action, repo paths, devenv as a hard requirement) unless the skill exists for that tool, and free of other skills outside its group. When a skill leans on a group sibling, keep the minimum it needs to work inline (one template line, one safety check) and point to the sibling for the full rules.

Harness compatibility: agents/openai.yaml

While SKILL.md is the universal, runtime-agnostic entry point, individual harnesses may define metadata sidecars under the agents/ directory. OpenAI Codex and the ChatGPT desktop application read agents/openai.yaml to configure UI presentation, invocation policies, and tool dependencies:

interface:
  display_name: "Skill Creator"
  short_description: "Create or update skills with progressive disclosure"
  default_prompt: "Use $skill-creator to create a new agent skill."

policy:
  allow_implicit_invocation: true

Key rules for agents/openai.yaml:

  • display_name: Human-facing Title Case name for skill lists, pickers, and badges.
  • short_description: User-facing UI summary, 25-64 characters under this repository’s authoring convention. Keep routing triggers in SKILL.md description. No HTML angle brackets (< or >), no em-dashes, and unslop.
  • default_prompt: Suggested prompt template for user invocation; must reference the skill name using $skill-name syntax.
  • policy.allow_implicit_invocation: Required explicit YAML boolean for every promoted custom skill. Set to false exactly when disable-model-invocation: true; otherwise set to true. Codex defaults an omitted policy to true, but this repository requires the choice to be written down.
  • dependencies.tools: Optional list declaring external tools such as MCP servers (type: "mcp", value, description, transport: "streamable_http", url).
  • Formatting: Keys must be unquoted, all string values must be quoted in double quotes, and indentation must be 2 spaces.

When to split

Granularity is how finely you divide skills; each cut spends one of the two loads, so split only when the cut earns it. Two cuts:

  • By invocation - split off a model-invoked skill when a distinct task should trigger it on its own, or another authorized workflow needs it. The new description increases catalog context, so that independent reach has to be worth it.
  • By sequence - split a run of steps when the steps still ahead (a step’s post-completion steps) tempt the agent to rush the one in front of it. Use a real context boundary, such as a new session or an isolated subagent on a supporting host. Explicit invocation alone does not clear earlier context.

Failure modes

Diagnose a misbehaving skill against these (the bold terms are defined in GLOSSARY.md):

Failure ModeBad Pattern (Anti-Pattern)Good Pattern (Remedy)
Premature Completion“Make sure all files are properly formatted.”“Run cargo fmt --check and verify exit code is 0 before proceeding.”
Negation“Do not use unwrap() or leave errors unhandled.”“Handle every Result branch explicitly using match or ?.”
No-Op“Be thorough and pay close attention to detail.”“Inspect every caller across the workspace with search tools before changing the signature.”
DuplicationDefining the same review checklist in three different sub-steps.Extract the checklist into resources/manual/CHECKLIST.md and link via a context pointer.
SprawlA 400-line body where half is static reference tables.Move the tables to resources/manual/ and keep the steps and a pointer in SKILL.md.
SedimentLeaving references to deprecated tools or dead directories.Audit every line against current tooling; delete stale references aggressively.
Trigger Ambiguitydescription: Helps with tests.description: Write tests before implementation using red-green-refactor. Use when the user requests a test-first feature or a regression test for a bug.
Host Leakage“Run the OpenCode subagent tool with argument X.”“Delegate the subtask to your agent’s subagent mechanism.”
Verification Absence“Finish the task and notify the user.”“Run devenv --no-tui test and ask skills lint; confirm zero failures before reporting.”
AI Slop / Pufferydescription: Expert guidance for developing robust, scalable apps.description: Build and test scalable web services. Use when configuring...
Heading Bloat### 1. **Phase 1: Comprehensive Initial Discovery**### 1. Discover existing schema
Tautological Labeling- **Security:** Implement proper security measures.- **Security:** Sanitize inputs and restrict CORS origins to authorized hosts.
Generic FillerAdding a 20-line 48-hour checklist of generic development steps.Define checkable invariants, command executions, and exact exit criteria.

For premature completion, sharpen the completion criterion first; split the sequence only if it is irreducibly fuzzy and you observe the rush. Prune sentence by sentence: run the no-op test on each sentence in isolation, and when one fails, delete the whole sentence rather than trim words from it. Be aggressive - most prose that fails should go, not be rewritten.

After adding, renaming, or editing a skill

Leave no cruft behind: every derived artifact regenerated, every old name swept, every new file tracked.

  1. Re-read the skill against Writing the description and Voice and anti-slop discipline.
  2. Create or update agents/openai.yaml: display_name, short_description (25-64 chars), and a policy.allow_implicit_invocation boolean that is the inverse of disable-model-invocation.
  3. Update the /skill-router index so a new or renamed skill has exactly one entry and the old name has none.
  4. For a rename, sweep the old name everywhere it can linger: rg -n '<old-name>' skills docs README.md CONTRIBUTING.md AGENTS.md --glob '!skills/vendor/**'. Repoint or drop each hit.
  5. If the frontmatter has resources:, run devenv --no-tui shell -- ask skills download-resources (it acts on every skill but, without --force, only fetches files that are missing; after changing a URL, delete that skill’s own resources/auto/ files first) and open the output: every file under resources/auto/ must be real documentation, not an HTML shell, redirect stub, or marketing page. Replace any URL that fails.
  6. devenv --no-tui shell -- ask skills lint (add --fix to rewrite em-dashes).
  7. devenv --no-tui shell -- ask skills sync - regenerates README, agents/AGENTS.md, skills.sh.json, and dashboard content, and refreshes local installs.
  8. Add new technical words the spell checker rejects to project-words.txt.
  9. git add the skill, the regenerated artifacts, and any touched docs (the hooks only check tracked files), then run devenv --no-tui test.

Done when devenv --no-tui test passes (it runs lint, the invocation-policy test, sync drift, markdownlint, spelling, and link checks), a second ask skills sync leaves no diff, and the router names the skill exactly once. Leave vendor snapshots and archived historical files unchanged.

Adapted from mattpocock/skills (MIT).