/autorun-skills:ai-skill-builderfrom autorun-skills
Guides creation, audit, and improvement of portable Agent Skills using the shared SKILL.md format and Anthropic methodology, covering structure, frontmatter, security, testing, and cross-harness compatibility.
Ships in autorun-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Build Agent Skills using the shared SKILL.md format and Anthropic's methodology: the smallest
portable core that works in every named target, plus explicit runtime adapters. Portability is a
tested compatibility claim, not a formatting style.
references/sources.md cites host documentation for Claude Code, Codex, and Qwen Code; every
other host is untested here, so verify the one you target (Step 1).
This methodology deliberately requires consistent semantic XML regions inside the Markdown body. That is a quality policy for reducing ambiguity in complex operational instructions, supported by current Anthropic prompting guidance and checked by the forward tests in Step 4. It is not a parser requirement of the portable Agent Skills specification, an authorization boundary, or a claim that XML alone prevents prompt injection.
Primary methodology source: "The Complete Guide to Building Skills for Claude" (Anthropic, January 2026)
references/ai-skill-builder-guide.mdPortable format source: https://agentskills.io/specification
To create a skill from scratch, follow the 4-phase process below.
To improve an existing skill, read references/refining-skills.md.
To validate structure, run scripts/audit-skill.sh.
Invoke with: ask for ai-skill-builder; hosts may expose it as
/ai-skill-builder, $ai-skill-builder, or through their skills picker.
Every skill this methodology produces meets all thirteen. Cite them by ID in audits and reviews.
SKILL.md in a directory whose name
matches its portable name; include a specific description that says what the skill does and
when to use it. Use standard optional fields only when needed.<purpose>, <requirements>,
<workflow>, <examples>, and <output_contract>. Keep Markdown inside those regions and
literal source in fenced code blocks. This mandatory methodology rule aims for the
highest-quality instruction separation; it is not an Agent Skills parser requirement or a
security boundary. scripts/audit-skill.sh fails a body with no region, an unbalanced or
mis-nested tag, or a ## heading outside every region.Region names follow the task rather than one universal taxonomy: workflows use <workflow>,
reference skills may use <decision_guide>, multi-mode skills <routing>, strict result contracts
<output_contract>, inline reference material <reference>, and pointers to bundled files and
sources <resources>. Tags must be consistent, descriptive, balanced, and no more deeply nested
than the task requires. The standard-versus-extension matrix, the claim audit, and the per-host
validation receipt live in references/portability-and-claim-audit.md.
Four-phase methodology from the Anthropic guide. Each phase carries a Definition of Done: the condition that must hold before the next phase starts.
| Phase | Activity | Definition of Done |
|---|---|---|
| 1: Planning & Design | Define target hosts, use cases, category, success criteria | Criteria are measurable and the category is chosen |
| 2: Implementation | Create folder, write SKILL.md, add resources | audit-skill.sh reports no failures |
| 3: Testing | Triggering, functional, performance, compatibility, forward tests | Every named host passes with a validation receipt; baseline recorded |
| 4: Distribution | Package, document, publish | Install verified from a clean root |
Phase 1 covers Steps 1–2 below; Phases 2–4 correspond to Steps 3–5.
How long a phase takes depends on who or what runs it, so this skill states no wall-clock estimates and the skills you build should not either.
Research the domain first — use the host's web tools to verify current best practices before writing instructions. Outdated guidance is worse than none: an agent follows it confidently.
Retain all sources: record every URL consulted with a note of what it confirmed. Unsourced guidance cannot be verified or updated.
For research strategies, source quality standards, and the required Sources section
format: references/research.md
| Category | INPUT → OUTPUT | Examples |
|---|---|---|
| 1: Document & Asset Creation | Data/specs → document, code, report | API test generator, meeting notes summarizer |
| 2: Workflow Automation | Task params → completed multi-step process | Deploy pipeline, code review workflow |
| 3: MCP Enhancement | MCP tool outputs → smarter orchestration | Smart file search, BigQuery assistant |
For in-depth category guidance: references/categories.md
For interactive discovery questions: references/discovery.md
Design using progressive disclosure — 3 loading levels:
| Level | When loaded | Target length | Content |
|---|---|---|---|
| 1: Metadata | Always (~100 words) | name + description | Trigger conditions |
| 2: SKILL.md body | When skill triggers | under 5,000 words (ideally under 2,000) | Core workflow + pointers |
| 3: references/ files | As needed | Unlimited | Deep detail, schemas, examples |
For progressive disclosure writing tips and success metrics: references/best-practices.md
Critical Rules:
SKILL.md (not README.md)my-skill not My Skill)name and description; put a version under metadata< or >) in any frontmatter field — a host restriction from
Anthropic's skill guide, not a YAML rule; the body is unaffected<purpose>, <requirements>, <workflow>, <examples>, <output_contract>), Markdown
inside, literal source in fenced code blocks (SKILL-REQ004). The H1 title may stay outside.my_skill → my-skill)Frontmatter: required fields:
---
name: your-skill-name # kebab-case only; no spaces, capitals, or underscores
description: What it does. Use when user asks to "specific phrase", "another phrase".
# MUST include: what it does + when to use it (trigger conditions)
# Under 1024 characters. No XML angle brackets.
# Do NOT start with "claude" or "anthropic" (reserved namespaces).
---
For every optional field (license, compatibility, allowed-tools, metadata) with
host-portability notes: references/best-practices.md
Positioning language ("generate tests 87% faster") belongs in the repo README, never in
description. See references/best-practices.md.
Folder structure (annotated Claude Code standalone example: references/best-practices.md,
section "Folder Structure Patterns"):
| Directory | Load into context? | Use for |
|---|---|---|
references/ | Yes, as needed | Schemas, API docs, policies, workflow guides |
references/examples/ | As needed | Working code users copy and adapt |
scripts/ | No (run directly) | Validators, scaffolders, utilities |
assets/ | No (used in output) | Images, fonts, HTML templates the skill pastes into output |
Note: Plugin skills (in plugin-name/skills/) may place examples/ at the top level — that is
plugin-dev convention. For standalone ~/.claude/skills/ skills, put examples inside references/.
To scaffold a new skill: bash scripts/scaffold-skill.sh my-skill-name
(set SKILLS_DIR to target another host's root)
To start from template: copy references/examples/SKILL-template.md
Five testing approaches (run in order):
skill-creator/scripts/quick_validate.py), test installer reruns, multiple roots, symlink
targets, modified user files, and uninstall, and record a validation receipt per host
(references/portability-and-claim-audit.md).Debugging trigger issues:
Ask the agent: "When would you use the [skill name] skill?"
The agent should quote its description back. Adjust based on what's missing or too vague.
Fixing undertriggering: Add more specific trigger phrases and relevant technical terms.
Fixing overtriggering: Add negative triggers to the description:
description: Processes PDF legal documents for contract review. Use for "review this contract",
"analyze legal document", "extract contract clauses". Do NOT use for general PDF viewing,
image extraction, or non-legal documents (use doc-converter skill instead).
For the full diagnosis-and-fix guide covering all four failure modes: references/troubleshooting.md
To validate structure:
bash scripts/audit-skill.sh /path/to/YOUR-SKILL
For automated quality review on a host that provides Anthropic's skill-creator skill:
"Use the skill-creator skill to review the skill I just built and suggest improvements"
Claude Code with the plugin-dev plugin installed also offers a skill-reviewer agent that checks description quality.
For detailed test case templates and the Testing Triangle methodology: references/testing.md
Three channels — individual install into a host's skills root, organization-wide deployment,
and the Messages API — are described with commands in references/distribution.md, together
with the GitHub repo layout, the README template, versioning, and community channels.
An installer that places the skill must own exact generated paths, preserve manual edits, support multiple configured skill roots, and remove only its own links or files (SKILL-REQ010). Report the portable core and every runtime extension, the compatibility matrix and its evidence status, install/update/uninstall ownership, validation and forward-test results, and context/runtime costs. Do not claim "universal," "secure," or "supported" without a named contract and direct evidence.
| Pitfall | ❌ Wrong | ✅ Correct |
|---|---|---|
| File naming | my_skill/README.md | my-skill/SKILL.md |
| Description field | Outcome-focused: "generates tests 87% faster" | Trigger phrases: "create a skill", "improve my skill" |
| README positioning | Trigger phrases in GitHub README | Outcome-focused: "generate tests 87% faster" |
| No progressive disclosure | Monolithic wall of text | 3-level: hook (50-100w) → workflow (200-400w) → detail |
| No testing | Write → publish immediately | Triggering + functional + performance + compatibility + forward tests |
| Missing success criteria | "Build a skill that helps with APIs" | "Cut API test writing from 3 h to 45 min, median of 3 runs" |
| Feature-focused description | "Uses OpenAPI parser and Jinja2 templates" | Trigger phrases + concise capability summary |
| Unmeasured claim | "Works with any agent host", a bare "40% faster" | The hosts and versions you tested; the workload, baseline, and unit behind the number. The 87% in the rows above is correct placement only if it was measured |
Signs a skill needs refinement:
## heading outside every region (P1 —
scripts/audit-skill.sh fails it; see SKILL-REQ004)For the 5-step refinement process (audit → prioritize → fix → validate → document), migration
scenarios, and before/after examples: references/refining-skills.md
references/research.md — before writing any domain instruction → source-tier judgement, sources.md entriesreferences/discovery.md — when requirements are unclear → 22-question plan: name, triggers, use cases, inputs, outputs, testsreferences/categories.md — when Step 1's category is not obvious → category, structure, Level 2 templatereferences/best-practices.md — while writing body and frontmatter → description format, every optional field, level targets, 6 anti-patternsreferences/patterns.md — when 4 phases are not enough → orchestration, multi-MCP, refinement loops, runtime branching, domain rulesreferences/testing.md — at Step 4 → T1-T6 triggering cases, F1-F4 functional cases, baseline comparison, per-host compatibility steps, forward-test kindsreferences/troubleshooting.md — when a built skill misbehaves → fixes for no trigger, over-trigger, skipped instructions, context overloadreferences/refining-skills.md — when improving an existing skill → P0-P3 audit, migration checklistreferences/distribution.md — at Step 5 → distribution channels, repo layout, README, versioningreferences/portability-and-claim-audit.md — when a skill targets more than one host, or a claim about frontmatter, XML, roots, symlinks, or security needs checking → standard-vs-extension matrix, claim audit table, per-host validation receiptreferences/sources.md — when checking what a claim rests on, or adding one → citations, and claims with no retrievable sourcereferences/changelog.md — when changing ai-skill-builder itself → its release history, not the history of the skill you are buildingengineer-agent-skills — an earlier standalone skill. Its P0 requirements
(SKILL-REQ001–013), portable-standard vs runtime-extension claim matrix, per-host validation
receipt, and install/uninstall ownership rules now live in this skill; do not install both.scripts/audit-skill.sh — structure smoke test. Gate on zero FAILs; the percentage
scores only the mechanically decidable checks, and proxy checks are listed unscored.
bash scripts/audit-skill.sh /path/to/YOUR-SKILL
scripts/scaffold-skill.sh — create a skill directory that already passes the audit
SKILLS_DIR=~/.claude/skills bash scripts/scaffold-skill.sh my-skill-name
agents/openai.yaml (opens in a new tab)references/ai-skill-builder-guide.md (opens in a new tab)references/best-practices.md (opens in a new tab)references/categories.md (opens in a new tab)references/changelog.md (opens in a new tab)references/discovery.md (opens in a new tab)references/distribution.md (opens in a new tab)references/examples/SKILL-template.md (opens in a new tab)references/patterns.md (opens in a new tab)references/portability-and-claim-audit.md (opens in a new tab)references/refining-skills.md (opens in a new tab)references/research.md (opens in a new tab)references/sources.md (opens in a new tab)references/testing.md (opens in a new tab)references/troubleshooting.md (opens in a new tab)scripts/audit-skill.sh (opens in a new tab)scripts/scaffold-skill.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
skill-development, agent-skills, portable-skills, skill-audit
npx claudepluginhub ahundt/autorun --plugin autorun-skills11 skills in this plugin
/cli-demo-recorderCreate demo videos for CLI and TUI tools. Use when user asks to "record a demo", "make a demo GIF", "create a demo video", "record my CLI tool", "asciinema demo", "demo recording script". Covers asciinema+agg+ffmpeg pipeline, tmux recording, multi-shell, and dual-purpose demo+test harnesses in Python, Rust, TypeScript, and Bash./function-signature-and-parameter-guidanceDesign and review caller-facing names and contracts: functions, tools, commands, CLI flags,
parameters, config keys, env vars, profiles, event types, and node/edge identifiers.
Check names, descriptions, help, docstrings, schemas, defaults, bounds, units, errors,
outputs, mutation, and whether values reach behavior.
Use when asked to "name a parameter", "parameter naming", "name this tool or command",
"choose a flag, option, or config key", "design an options object", "one tool or two",
"bool or enum here", "name a profile, field, event, node, or edge",
"make names clear and unambiguous", "check ISO, platform, or language naming",
"audit CLI/MCP/JSON-Schema help", "define accepted values or defaults",
"what should this return on failure", "rename this without breaking callers",
"improve an error message", "why did the caller pass the wrong argument",
"why did this parameter do nothing", or "red-team these descriptions".
Not for local variables, general prose, README copy, release notes, or commits.
/mermaid-diagramsRender Mermaid diagrams to SVG using beautiful-mermaid and bun. Use when the user asks to "render mermaid", "generate diagram", "create flowchart", "update diagrams", "render SVG from mermaid", "beautiful-mermaid", "regenerate diagrams", or needs to convert Mermaid diagram syntax into styled SVG files. Supports all Mermaid diagram types with 15 themes including tokyo-night./streamline-textEdit prose for brevity and scanability without losing facts. Use for requests to "revise", "rewrite", "edit", "polish", "clean up", "clarify", "simplify", "condense", "tighten", "shorten", "streamline", "de-fluff", remove bloat/repetition or unnecessary newlines, fix spelling/typos without changing meaning, make text concise/compact/skimmable, or finalize drafts, messages, notes, docs, reports, issues, or reviews. Activate for "too verbose", "very verbose", or "remove unnecessary newlines", and proactively when text is verbose, wordy, meandering, dense, hard to scan, or has duplicates, vague claims, undefined terms, or cold-reader problems. Preserve evidence, qualifiers, requirements, commands, numbers, and scope with a fact index and restore/cold-reader audit. For public Reddit, Hacker News, social posts, or release notes use public-facing-writing; for PRs use write-maintainer-ready-prs; pair with avoid-ai-isms when text sounds generated./synthesize-project-requirementsCreate one evidence-backed project requirements and gotchas note from cumulative notes, current repository state, git history, and human-authored messages found with AI Session Search. Use when asked to "go through all the notes", "recover project requirements", "mine prior sessions", "collect requirements and gotchas", "make a project memory note", "prepare a project handoff", or preserve decisions and corrections for a handoff. Do not use for a one-off log summary or direct factual answer unless durable project memory or a handoff is requested. Default to the project's notes directory; publish to its documentation only when requested and add a guidance-file pointer only with permission./task-lifecycle-workflowRun a full evidence-to-completion lifecycle for long, correction-heavy, multi-artifact, or release-bound work. Use when asked to "coordinate dependent work", "preserve cumulative requirements", "recover off-rails work", "cold-read the result", or "continue until fully ready". Do not use for planning alone, factual answers, typos, or reversible one-owner work with one check; use Autorun's focused plan skills for those.Other plugins' skills for the same job