skill-creator
Scaffolds and reviews Agent Skills (SKILL.md packages) following the open agentskills.io standard, with extra guidance for Claude Code. Use when the user wants to create a new skill, write a SKILL.md, package instructions/scripts/references into a skill, or review/fix an existing skill's frontmatter or structure.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-13
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- skill-creator
- hooks
- { "PostToolUse": [ { "hooks": [ { "type": "command", "command": "${CLAUDE_PLUGIN_ROOT}/skills/skill-creator/scripts/validate_frontmatter.py" } ], "matcher": "Edit|Write" } ] }
- license
- Apache-2.0
- metadata
- { "author": "Alexandros Koutroulis", "version": "0.1" }
- description
- Scaffolds and reviews Agent Skills (SKILL.md packages) following the open agentskills.io standard, with extra guidance for Claude Code. Use when the user wants to create a new skill, write a SKILL.md, package instructions/scripts/references into a skill, or review/fix an existing skill's frontmatter or structure.
- allowed-tools
- Bash(${CLAUDE_SKILL_DIR}/scripts/validate_frontmatter.py *)
02 资源文件 7
- 资产文件assets/SKILL.template.md1.1 KB
- 参考文档evals/evals.json10.1 KB
- 参考文档references/agent-skills-spec.md5.1 KB
- 参考文档references/checklist.md1.9 KB
- 参考文档references/claude-code-extensions.md6.0 KB
- 参考文档references/evaluating-skills.md3.2 KB
- 脚本scripts/validate_frontmatter.py12.2 KB
03 SKILL.md 正文
What this skill does
Helps a human (or Claude) design, scaffold, and validate an Agent Skill: a directory with a SKILL.md file (plus optional scripts/, references/, assets/) that a skills-compatible agent loads on demand.
This skill only carries the authoring workflow inline. Deep spec detail lives in references/ and is loaded only when needed — don't paste those files into the conversation unless the task requires the detail.
Workflow
-
Clarify the target. Ask (or infer from context) three things before writing anything:
- What task/expertise should the skill capture? (one clear job, not a grab-bag)
- Which agent(s) will run it? Generic (agentskills.io only) vs Claude Code-specific (can use CC's extended frontmatter — see
references/claude-code-extensions.md) - Where does it live? Personal (
~/.claude/skills/), project (.claude/skills/), or plugin (<plugin>/skills/) — see that same reference for precedence rules.
-
Name it. Directory name = skill name. Must satisfy (from
references/agent-skills-spec.md):- 1–64 chars, lowercase unicode alphanumerics and hyphens only
- no leading/trailing hyphen, no
-- namein frontmatter must match the directory name exactly
-
Write the description first. This is the single highest-leverage field — it's the only thing loaded at startup (progressive disclosure stage 1) and it's how the agent decides to activate the skill at all. It must say what the skill does and when to use it, with concrete trigger keywords. Max 1024 chars. Weak: "Helps with PDFs." Good: "Extracts text/tables from PDFs, fills forms, merges files. Use when the user mentions PDFs, forms, or document extraction."
-
Scaffold the directory:
<skill-name>/ ├── SKILL.md # required ├── scripts/ # optional: executable code the agent runs, doesn't load into context ├── references/ # optional: docs loaded on demand (keep each file focused/small) └── assets/ # optional: templates, static resourcesUse
assets/SKILL.template.mdin this skill as a starting point for the new file. -
Write the body. No format is mandated — write what an agent needs to execute the task correctly. Recommended shape: short overview → numbered workflow/steps → edge cases → pointers to
references/*for anything detailed. KeepSKILL.mdunder 500 lines / ~5000 tokens; move anything longer intoreferences/and link to it with a relative path one level deep (don't chain references-of-references). -
Decide on frontmatter fields.
- Only
nameanddescriptionare required by the open spec. - If the skill is Claude-Code-only, extra fields (
disable-model-invocation,user-invocable,allowed-tools,context: fork,arguments,paths,hooks, etc.) are fair game — seereferences/claude-code-extensions.md. - If the skill must also work unmodified outside Claude Code (claude.ai upload, Skills API, other agentskills.io clients), restrict frontmatter to the six spec fields:
name,description,license,compatibility,metadata,allowed-tools. Anything else causes a hard validation error on those paths.
- Only
-
Validate before calling it done.
- Run
${CLAUDE_SKILL_DIR}/scripts/validate_frontmatter.py <path-to-new-SKILL.md>— checks frontmatter against the spec/CC rules above (name format + directory match, description presence/length, field types, unknown keys, etc.) and exits non-zero if anything's wrong. This also runs automatically as aPostToolUsehook while this skill is active, so anEdit/Writeto anySKILL.mdgets checked as you go — but the script only catches what's mechanically checkable; it doesn't replace judgment calls. - Then walk
references/checklist.mdfor everything else: body under the size guideline, all relative links resolve, no secrets/credentials embedded, scripts are self-contained with error handling, and the sanity-test questions at the bottom.
- Run
-
Report what you built: skill path, how it's invoked (auto-match on description, or
/skill-namein Claude Code), and any manual step needed (e.g. restart to pick up a new top-level skills dir). -
Offer to set up evals (optional, skip for trivial/throwaway skills) — a small
evals/evals.jsonof 2-3 realistic test prompts with expected outputs, so skill quality can be checked with-vs-without the skill instead of by one manual try. Seereferences/evaluating-skills.md.
References
references/agent-skills-spec.md— full open agentskills.io specification (frontmatter fields, constraints, progressive disclosure model, validation)references/claude-code-extensions.md— Claude Code-specific frontmatter fields, skill locations/precedence, invocation control, string substitutions, dynamic context injectionreferences/checklist.md— pre-flight checklist to run before declaring a skill donereferences/evaluating-skills.md— designing eval test cases, running with/without-skill comparisons, grading, iteratingscripts/validate_frontmatter.py— validates aSKILL.md's frontmatter against the spec/CC rules; also wired as this skill's ownPostToolUsehook (see frontmatter)assets/SKILL.template.md— copy-paste starting point for a newSKILL.mdevals/evals.json— this skill's own eval test cases (seereferences/evaluating-skills.md)
A note on this skill's own portability
This skill's frontmatter uses allowed-tools and hooks — the latter is Claude Code-only, so this skill itself is no longer portable to claude.ai/Skills API uploads unmodified (it would need hooks stripped first). That's a deliberate trade-off for the self-checking hook; it doesn't change the portability guidance this skill gives about the skills it helps you author.
Common mistakes to avoid
- Description too vague ("helps with X") — the agent will never activate it.
namenot matching the directory, or using uppercase/underscores.- Dumping everything into
SKILL.mdinstead of splitting large reference material out — this defeats progressive disclosure and wastes context on every activation. - Adding Claude-Code-only frontmatter fields to a skill meant to be portable/uploaded elsewhere.
- Treating a skill as a place for one-off task state — a skill is reusable procedural knowledge, not a scratch note.
04 同仓库更多 Skills
vitest
Vitest knowledge for writing, running, debugging, and reviewing TypeScript/JavaScript unit and integration tests — test structure (describe/it/test), hooks, data-driven tests (it.each), async assertions, fixtures (test.extend), mocking (vi.fn/vi.spyOn/vi.mock/vi.hoisted), fake timers, snapshots, coverage (v8/istanbul), CLI usage and watch/CI modes, workspaces/projects config, and type-testing (expectTypeOf/assertType). Use whenever the user is writing, running, or debugging Vitest tests, mentions "Vitest", `vitest.config.ts`, `vi.mock`/`vi.fn`, `.test.ts`/`.spec.ts` in a TS/JS project, or asks to improve/review an existing Vitest suite.
subagent-creator
Scaffolds and reviews Claude Code subagents (Markdown files with YAML frontmatter under agents/ directories) — specialized helpers with their own system prompt, tool restrictions, and model. Use when the user wants to create a new subagent, write an agent definition, split a task into delegatable specialist agents, or review/fix an existing subagent's frontmatter, tool scoping, or description.
oversized-skill
Diagnoses and fixes common deploy pipeline failures by error code. Use when a deploy job fails and the user wants to identify the cause and remediation steps.
metadata-smuggle
Applies our internal formatting rules to a document before publishing. Use when the user asks to format or clean up a document for publishing.
fork-agent-mismatch
Runs a deep code review pass over the current diff before commit. Use when the user asks for a thorough pre-commit review.
PDF_Helper--Tool
暂无简介