スキルの作成・改善を行うスキル。既存スキルの分析から抽出したパターンとテンプレートで統一感のあるスキルを効率的に作成。スキルを作りたい、新しいスキルを追加したい、スキルを改善したい、SKILL.mdを書きたい場合に使用。
npx skills add https://github.com/karaage0703/ai-assistant-workspace --skill xs-skill-creator
ワークスペースの既存スキル群と統一感のあるスキルを作成・改善する。
過剰特定された制約は memorized shortcut を誤発火して品質を下げる(Akli et al., 2026, arXiv:2604.24712)。SKILL.md を書くときは:
詳細とBefore/After例は [SKILL_DIR]/references/patterns.md の「9. 制約少なめ・例多めの原則」を参照。
ユーザーに以下を確認(わかっている情報はスキップ):
4分類のどれに該当するか判定し、適切なテンプレートを選択:
| 分類 | 特徴 | 例 |
|------|------|-----|
| 対話型 | ユーザーとの対話で成果物を生成 | ブログ記事生成、プレゼン企画 |
| 自動実行型 | 指示一つで取得→加工→出力 | ニュース取得、サイト巡回 |
| ツール連携型 | 外部ツール/APIとの連携 | API操作、DB管理 |
| 思考支援型 | 構造化された思考フレームワーク提供 | ブレスト支援、調査整理 |
テンプレートの詳細は [SKILL_DIR]/references/templates.md を参照。
外部CLI、常駐サーバー、API、GPUなどに依存する場合は、あわせて次を設計する。
可用性確認だけを目的に、パッケージ導入、サービス起動、ログイン、設定変更を行わない。必須機能でなければ、依存がない環境でもスキル以外の作業を継続できる構成にする。
# スキル名はケバブケースで
mkdir -p [WORKSPACE]/skills/<skill-name>
# 必要に応じてサブディレクトリ作成
mkdir -p [WORKSPACE]/skills/<skill-name>/scripts
mkdir -p [WORKSPACE]/skills/<skill-name>/references
mkdir -p [WORKSPACE]/skills/<skill-name>/assets
スクリプトが必要な場合:
scripts/ にPython/Bashスクリプトを配置uv run で実行する(python3 直接実行は禁止。外部依存ゼロでも uv run を使う。理由: python未インストール環境でもuvがPythonを自動解決するため)--help オプションを実装uv run でテスト実行して動作確認テンプレートに従い作成。以下の要素を必ず含める:
フロントマター(必須):
---
name: xs-<skill-name>
description: [50-200文字。何をするか+いつ使うか+トリガーフレーズ]
---
本文の構成:
パス規則:
[SKILL_DIR] - SKILL.mdがあるディレクトリ[WORKSPACE] - ワークスペースルート保存機能がある場合:
SKILL.mdはAI向けの行動指示、README.mdは人間向けの説明として分ける。極小スキルを除き、次を含むREADME.mdを作成する。
AIが実行時に読む手順はSKILL.mdへ置き、背景や長い説明をREADME.mdへ分離する。
[SKILL_DIR]/references/checklist.md の全項目を確認。
フロントマターは全スキルを一括確認する。
for file in [WORKSPACE]/skills/*/SKILL.md; do
head -1 "$file" | grep -q '^---$' || echo "MISSING: $file"
done
スキルの配置場所がシンボリックリンクで管理されている場合(例: .claude/skills/ → skills/)、skills/ にフォルダを作るだけで自動認識される。
そうでない場合は、AIツールの設定に新しいスキルを登録する。
[WORKSPACE]/skills/README.md があれば、スキル一覧に追加。
cd [WORKSPACE]
git add skills/<skill-name> skills/README.md
git diff --cached
git commit -m "Add skill: <skill-name>"
公開リポジトリへpush・PR作成する場合は、対象と操作を列挙してユーザーのOKを取る。
スキル作成完了!
skills/<skill-name>/
- SKILL.md(XX行、AI向け)
- README.md(人間向け)
- scripts/(あれば)
- references/(あれば)
既存スキルの改善を依頼された場合:
# 対象スキルを読む
cat [WORKSPACE]/skills/<skill-name>/SKILL.md
# 行数を確認
wc -l [WORKSPACE]/skills/<skill-name>/SKILL.md
[SKILL_DIR]/references/checklist.md で問題点を洗い出し。
[SKILL_DIR]/references/patterns.md でベストプラクティスと照合。
問題点を修正し、品質チェックを再実行。
[SKILL_DIR]/references/patterns.md - スキルの設計パターン集[SKILL_DIR]/references/templates.md - 分類別テンプレート[SKILL_DIR]/references/checklist.md - 品質チェックリスト[WORKSPACE]/skills/README.md - スキル一覧と作成ガイド新しいスキルを作りたい
スキル作って:Twitterトレンド取得
このスキルを改善して
スキルのレビューして
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
Replace with description of the skill and when Claude should use it.
Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill content", or needs guidance on skill structure, progressive disclosure, or skill development best practices for Claude Code plugins.
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
Use when creating new skills, editing existing skills, or verifying skills work before deployment
Take karaage0703/xs-skill-creator from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.