name: skill-creator description: Design a new repo-owned skill from a concrete use case and produce a repo-ready skill package. Use when the user asks to create a new skill, define a skill's responsibility, draft SKILL.md, choose frontmatter, design supporting files, or prepare eval criteria for a new skill. Also trigger on "スキルを作りたい", "スキルを作って", "スキルを追加して", "新しいスキル", "SKILL.md生成". allowed-tools: Read, Grep, Glob, Bash, Write, Edit
Purpose
Create a new skill only after the use case is concrete enough.
Your job is to:
- identify the smallest useful responsibility
- define when the skill should trigger
- choose safe frontmatter defaults
- draft a minimal but strong
SKILL.md - propose supporting files only when they add clear value
- define an initial eval set
Safety constraints
Write output files only to .claude/skills/ unless the user explicitly specifies a different path.
Do not modify existing skills without user confirmation.
Note: this skill does not set disable-model-invocation: true because file creation is its primary purpose, not an incidental side effect. The settings.json deny list and user confirmation prompts provide sufficient guardrails.
Core rule
Do not create a broad or fuzzy skill.
Prefer:
- one responsibility
- one primary workflow
- one clear success condition
If the requested scope is too broad, split it into multiple skills.
Phase 0: Gate(ヒアリング)
Before drafting, confirm the following through interactive dialogue. Ask naturally — do not dump all questions at once.
- ゴール: このスキルで何を達成したいか?
- ユースケース: 具体的な利用シーン(2〜3個)
- カテゴリ判定: 以下のどれに最も近いか?
- Category 1: ドキュメント・アセット生成(テンプレート型)
- Category 2: ワークフロー自動化(ステップ型)
- Category 3: MCP連携強化(ツール活用型)
- トリガー: ユーザーがどんな言葉でこのスキルを呼び出すか?(日本語・英語両方)
- 入力: スキルが受け取る情報は何か?
- 出力: スキルが生成・実行する成果物は何か?
- allowed tools: 必要なツール
- auto vs manual: 自動起動か手動起動か
- 品質基準: 成功をどう判定するか?
- definition of done
If any item is unclear:
- ask the minimum focused questions, or
- inspect available files first if the answer can be found without asking
Do not draft the full skill until the gate passes.
Phase 1: Skill boundary design
Produce a short working summary with:
- skill name candidate
- single responsibility
- in-scope tasks
- out-of-scope tasks
- likely trigger language
- risk level
- pattern selection:
| パターン | 用途 |
|---|---|
| Sequential Workflow | 順序固定の多段階プロセス |
| Multi-MCP Coordination | 複数サービスを横断する連携 |
| Iterative Refinement | 品質を反復改善するループ |
| Context-aware Selection | 状況に応じてツール・手法を切り替え |
| Domain Intelligence | 専門知識を判断ロジックに埋め込み |
Reject designs that combine unrelated workflows.
Phase 2: Frontmatter & Progressive Disclosure設計
Choose frontmatter intentionally.
Defaults:
- include
name - include
description - omit extra fields unless clearly needed
Use:
disable-model-invocation: truefor side-effecting, sensitive, or timing-dependent workflowsallowed-toolsonly when safe pre-approval is clearly usefulmodelonly when there is a concrete reason to override the default
For every chosen field, state why it is needed.
Progressive Disclosure(3レベル情報開示)
Design information at three levels:
- Level 1(Frontmatter): 常にロードされる。トリガー判定に必要な最小限の情報
- Level 2(SKILL.md本文): スキル発動時にロードされる。コア指示
- Level 3(references/): 必要時のみ参照される詳細ドキュメント
Phase 3: Structure design
Draft the skill with this order:
- purpose
- gate
- workflow phases
- output contract
- review step
- failure handling
- additional resources
Keep the main file compact. Move heavy references, examples, and templates into separate files.
Use ${CLAUDE_SKILL_ROOT}/assets/basic-skill-template.md as the starting skeleton.
Phase 4: Eval design
Create an initial eval plan with:
- 10 to 20 realistic test prompts
- 3 to 6 pass/fail criteria
- likely failure modes
- what should be checked by code vs by reviewer
Include at least:
- one trigger test
- one under-specified request
- one boundary case
- one anti-pattern case
Use ${CLAUDE_SKILL_ROOT}/assets/eval-rubric-template.md as the rubric structure.
Phase 5: Review
Check the draft against:
${CLAUDE_SKILL_ROOT}/references/review-default.md${CLAUDE_SKILL_ROOT}/references/design-principles.md
Fix any issue before finalizing.
Phase 6: Registration & Quality Gates
After the skill files are written:
- verify the directory name matches the
namefield in frontmatter - verify
descriptionis under 1024 characters and includes trigger keywords - verify SKILL.md is under 500 lines
- verify all
${CLAUDE_SKILL_ROOT}/references point to existing files - check the repository CLAUDE.md or AGENTS.md for additional registration steps
- if the repository uses a skills index or registry, update it
Quality Gates
- SKILL.md本文が5,000語を超えたらreferences/への分離を提案
- descriptionが50文字未満なら「トリガーフレーズが不足」と警告
- descriptionが1024文字を超えたらトリミングを要求
- 利用例(Examples)が0件なら追加を促す
Phase 7: TDD検証(任意)
スキルの品質をRed→Green→Refactorサイクルで検証する。
Red: ベースライン確認
- スキルが解決すべきタスクを、スキルなしでエージェントに実行させる
- 失敗する箇所・品質が低い箇所を記録する
- これが「スキルが必要な理由」のエビデンスになる
Green: 効果検証
- SKILL.mdを配置した状態で同じタスクを再実行する
- ベースラインとの差分を確認する
Refactor: 改善サイクル
- 効果検証の結果を基にSKILL.mdを改善
- undertrigger(トリガーされるべき時にされない)を確認
- overtrigger(トリガーされるべきでない時にされる)を確認
- descriptionのトリガーフレーズを調整
Output format
Return exactly these sections:
Skill summary
Recommended directory structure
SKILL.md draft
Supporting files to add
Eval plan
Known risks
Anti-patterns
Do not:
- create a "do everything" skill
- invent company-specific rules
- write a vague description
- skip the gate
- omit eval planning
- hide trade-offs
- put all content in SKILL.md without references/ separation
- create README.md inside skill folder (unnecessary — SKILL.md is the entry point)
Failure handling
If the request is too broad:
- propose 2 to 4 smaller skills
- explain the split by responsibility
- recommend which one to build first