skill-creator
Skill0 starsChanged 3 months agoMITView on GitHub
ktaroabobon/agent-skills リポジトリにスキルを新規作成・改善する。Claude Code の機能(frontmatter の hooks / allowed-tools / context fork / 動的コンテキスト注入 / 同梱スクリプト)を取りこぼさず組み込み、frontmatter と構造を検証してから公開まで導く。「スキルを作りたい」「skill を新規作成」「このワークフローをスキルにして」「SKILL.md を書いて」「既存スキルを改善したい」「スキルに hook を追加したい」時に使用。スキルの話が少しでも出たら使う。
189 other projects use a version of this.
Adopted by
Most recently taken up by
- SebastienDegodez/copilot-instructionstheir own version, first seen Nov 8, 2026
- idavidov13/agentic-playwrighttheir own version, first seen Nov 8, 2026
- HughYau/AcademicForgetheir own version, first seen Nov 8, 2026
- Ar9av/obsidian-wikitheir own version, first seen Nov 8, 2026
- rvdbreemen/OTGW-firmwaretheir own version, first seen Nov 8, 2026
- scenario-labs/skillstheir own version, first seen Nov 7, 2026
Used with
Projects with it also use taskflow-inbox-triage, mermaid-diagram-generator and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
AtomicBot-aiSkilltaskflow-inbox-triage
Also in 6 projects that use this
shalombSkillmermaid-diagram-generator
Guide on creating and editing Mermaid charts safely. Use when asked to draw a diagram, flowchart, or architecture chart. Triggers on: 'mermaid', 'diagram', 'flowchart', 'visualize'.
Also in 5 projects that use this
naman10parikhSkillecosystem-reference
Quick-access directory of Claude Code ecosystem repos, skills, plugins, MCPs, and patterns. Use when improving the harness.
Also in 5 projects that use this
naman10parikhSkillfractal-delegation
Also in 5 projects that use this
Liang-MHSkillstock_analysis
获取 A 股、基金和港股的实时行情和技术分析数据
Also in 5 projects that use this
nicepkgSkillcommunity-led-growth
Expert in community-led growth (CLG) - leveraging user communities to drive acquisition, retention, and expansion. Covers building developer communities, user groups, ambassador programs, and turning customers into advocates. Knows the difference between community as a feature vs community as a growth engine, and how to measure community ROI. Use when "community-led, CLG, ambassador program, champion program, user community, developer community, word of mouth, user group, " mentioned.
Also in 5 projects that use this
- +6 more from naman10parikh
Other versions189 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 189
- moltbot/clawdbot★ 394ksame name
- steipete/warelay★ 394ksame name
- steipete/clawdis★ 394ksame name
- moltbot/moltbot★ 394ksame name
- clawdbot/clawdbot★ 394ksame name
- openclaw/openclaw★ 394ksame name
- molt-bot/clawdbot★ 391ksame name
- anthropics/skills★ 189ksame name
- openai/codex★ 134ksame name
- google-gemini/gemini-cli★ 109ksame name
179 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository16 other files it gives its agents.
- skills/agents-onboarding/templates/AGENTS.mdAGENTS.md
- agents-onboardingSkill
- browser-useSkill
- commit2prSkill
- commit2pushSkill
- commitSkill
- create-issueSkill
- explainSkill
- find-skillsSkill
- goalSkill
- handoffSkill
- note-writeSkill
- openapi-rfc-complianceSkill
- pr-request-changesSkill
- rules-reviewSkill
- sanitize-artifactsSkill
The file
Files
skill-creator
このリポジトリにスキルを追加・改善する。Anthropic 公式 skill-creator の骨格に、このリポジトリの流儀と Claude Code 機能の取りこぼし防止を足したもの。
素朴に書くと、スキルは「長い散文の指示書」になりがちで、hook・disallowed-tools・context: fork といった決定的に効く仕掛けが丸ごと抜け落ちる。Step 3 の棚卸しゲートはそれを防ぐためにある。
参照資料(いつ読むか)
| 資料 | 読むタイミング |
| references/frontmatter.md | frontmatter を書く / 直すとき。配布経路による制約と YAML の落とし穴は必ず読む |
| references/hooks.md | Step 3 で hook を「使う」と判断したとき。イベント・matcher・入出力・レシピ集 |
| references/capabilities.md | Step 3 の棚卸し全般。hooks 以外の機能の使いどころ |
| references/patterns.md | Step 2 と Step 4。設計パターンとアンチパターン |
| references/repo-conventions.md | Step 4 以降。配置・書き方・検証・PR・公開 |
Step 1: 何を作るのか確定する
会話に既に材料があることが多い(「この手順をスキルにして」)。まず会話履歴から拾えるものを拾い、足りないぶんだけ聞く。一度に大量の質問を投げない。
確定すること:
- 何ができるようになるのか(1 文で言えるか)
- いつ発火してほしいか — ユーザーが実際に打つ言い回しを 3 つ以上
- 発火してほしくない近接ケース — キーワードが被るが別の対応が要る依頼
- 出力は何か — レポート? ファイル生成? コード変更? 判定だけ?
- やらないこと — 境界を決めないと誤発火する
- 繰り返し発生する定型作業はあるか — 毎回同じコードを書くなら
scripts/、毎回同じ資料を引くならreferences/ - 判断の要になる概念は何か — 「塊」「漏れ」のように解釈で結果が変わる語があるなら、定義できるか(patterns.md の用語定義)
既存スキルの改善なら: 現物を読み、validate_skill.py を通し、直近で困った具体例を聞いてから Step 2 へ。
Step 2: 何を同梱するか決める
Step 1 の具体例それぞれについて「ゼロから実行するとしたら何をするか」を考え、繰り返し必要になるものを洗い出す。
| 症状 | 同梱するもの |
| 毎回同じコードを書き直す | scripts/ |
| 毎回同じ仕様・スキーマ・規約を調べ直す | references/ |
| 出力に使う定型ファイルがある | assets/ |
| 生成先リポジトリに展開する雛形がある | templates/ |
| 検出漏れ・偽陽性が起きうる | examples/ に fixture と期待結果 |
自由度の設定(patterns.md)もここで決める。壊れやすい手順はスクリプトか hook に落とし、判断が要る部分は散文で残す。
Step 3: 機能棚卸しゲート(必須)
表を埋めてからでないと SKILL.md を書き始めない。 「使わない」を選ぶのは構わないが、理由を 1 行書く。書かないと素通りする。
| 機能 | 使うべき典型 | 使う? | 理由 |
hooks(frontmatter) | 本文で「〜するな」と書いている禁止事項がある / 作業後に必ず走らせたい検査がある | ||
disallowed-tools | 判定・レビュー系で書き込みを禁じたい | ||
allowed-tools | 同梱スクリプトや定型コマンドを許可プロンプトなしで動かしたい | ||
disable-model-invocation | 副作用がある(commit / deploy / 送信 / 課金) | ||
user-invocable: false | ユーザーが直接呼ぶ意味のない背景知識 | ||
argument-hint / arguments / $ARGUMENTS | 引数を取る | ||
context: fork + agent + background | スキル全体を隔離実行したい。長い調査 | ||
| 本文からのサブエージェント委譲 | 独立した観点を並列で検査したい | ||
!`cmd` 動的コンテキスト注入 | 実行時の状態(ブランチ・差分・バージョン)が毎回要る | ||
${CLAUDE_SKILL_DIR} | 同梱スクリプトを cwd に依存せず参照する | ||
paths | 特定のファイル種別を扱うときだけ自動ロードしたい | ||
model / effort / ultrathink | 判定が本質的に難しい | ||
scripts/ | 決定的な処理・繰り返し書かれるコード | ||
references/ | 詳細資料。SKILL.md が 500 行に近づいた | ||
assets/ / templates/ | 出力に使う素材 | ||
examples/ + 期待結果 | 検出漏れ・偽陽性が問題になる | ||
agents/openai.yaml | Codex の一覧に表示名・既定プロンプトを出したい / disable-model-invocation を Codex でも効かせたい |
判断材料は capabilities.md、hook を使うなら hooks.md。
hook を必ず検討する
このゲートで最も見落とされるのが hooks。 SKILL.md の下書きに「〜してはいけない」「必ず〜する」と書いた箇所を数え、そのそれぞれについて次を判定する:
| 本文の記述 | hook 化できるか |
| 「生成物を編集しない」 | ✅ PreToolUse で exit 2 |
| 「secrets をコミットしない」 | ✅ PreToolUse |
| 「編集したら型検査を通す」 | ✅ PostToolUse で decision: block |
| 「完了と言う前にテストを通す」 | ✅ Stop hook(差し戻し回数に上限を付ける) |
| 「force push しない」 | ✅ PreToolUse + if: "Bash(git *)" |
| 「この規約に沿って設計する」 | ✗ 判断が要る。本文の指示のまま |
配布するスキルの hook は settings.json ではなく frontmatter の hooks に書く。settings.json は配布物に含まれない。
両対応の確認
このリポジトリのスキルは Claude Code と Codex の両方を対象にする。Claude Code 専用機能を使ったら、それが無くても本文だけで成立するかを確認する。成立しないなら SKILL.md に対象環境を明記する。
Step 4: 生成して書く
python3 skills/skill-creator/scripts/init_skill.py <skill-name>雛形(SKILL.md / references / scripts / hooks / examples)が skills/<skill-name>/ に作られる。使わないディレクトリは消す。
書く順序は 同梱リソース → SKILL.md。scripts / references の中身が決まらないと、SKILL.md に「いつ何を読むか」を書けない。
書くときに守ること(patterns.md に詳細):
- 命令形。理由を書く。
ALWAYS/NEVERを並べる前に理由に言い換える - 「いつ使うか」は本文ではなく
descriptionに書く(本文は発火後にしか読まれない) - 同じ情報を SKILL.md と references の両方に書かない
- 本文はセッション中ずっと残るので、「一度きりの手順」ではなく「以後ずっと効く指示」として書く
- 冒頭に核となる原則を 1 つ書く。手順で迷ったときの戻り先になる
- 副作用があるスキルは、「何もしない」が正解になる条件と、最終報告の形式(やったこと / やらなかったことと理由 / 実行した検証)を書く
- 成果物を出すスキルは、制約・例示・修正経緯を成果物に漏らさず、成果物を先に出す
- スキル内に
README.mdを置かない
frontmatter は frontmatter.md を見ながら書く。[ で始まる値は必ずクォートする。
Step 5: 検証(必須)
# 1. frontmatter・構造・配布互換性
python3 skills/skill-creator/scripts/validate_skill.py skills/<name>
# 2. リポジトリ全体の publish 検証(1 スキル壊れると全体が publish 不能になる)
gh skill publish --dry-runvalidate_skill.pyが 0 errorgh skill publish --dry-runが exit 0- 同梱した全スクリプトを実行した(引数なし・正常系・異常系)
- 同梱した全 hook にサンプル JSON を流し、ブロック対象が
exit 2、通過対象がexit 0になることを確認したbash echo '{"tool_input":{"file_path":"<ブロック対象>"}}' | bash skills/<name>/hooks/<h>.sh; echo "exit=$?" echo '{"tool_input":{"file_path":"<通過対象>"}}' | bash skills/<name>/hooks/<h>.sh; echo "exit=$?" - SKILL.md に書いた全コマンドを実行し、実在と exit code を確認した
references/が全て SKILL.md からリンクされ、「いつ読むか」が書かれている- fixture がある場合、期待結果と突き合わせた
- Step 3 の棚卸し表で「使う」にした機能が実際に実装されている
発火の確認
Step 1 で挙げた「発火してほしい 3 つ」「発火してほしくない 3 つ」を並べ、description にキーワードが含まれているかを確認する。曖昧なら description を直す。
Claude はスキルを過小に使う傾向がある。迷ったら description を少し押しの強い書き方にする。
より厳密に description を最適化したい場合は、Anthropic 公式 skill-creator が持つトリガー最適化ループ(
run_loop.py)を使う。このスキルは再実装しない。
実タスクで一度使う
作ったスキルを実際のタスクに 1 回使う。うまくいかなかった箇所が改善点。特に見るのは「スキルが余計な回り道をさせていないか」— させているなら、その指示を削って様子を見る。
Step 6: 公開
repo-conventions.md の手順に従う。要点:
- ルート
README.mdの Skills 表とインストール例に 1 行ずつ追加 - ブランチ
claude/<topic>、コミットは Conventional Commits + 日本語 - PR 本文は 概要 / 背景 / 設計上の判断 / 成果物 / 検証 / 未検証。検証していないことは「未検証」と明記する
- マージ後に
gh skill publish --tag vX.Y.Z
反復
使って詰まったら直す。改善するときの考え方:
- 一般化する。 目の前の 1 例だけで動く継ぎ足しをしない。スキルは何千回も使われる
- 削る。 効いていない指示を消す。長さは質ではない
- 理由を書く。 守られない指示は、たいてい理由が書かれていない
- 繰り返しを見つけたら同梱する。 毎回同じスクリプトを書いているなら
scripts/に出す - 指示で守られないものは hook にする。 3 回言って守られないなら、それは指示で解く問題ではない
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

