Skip to content
extension-generator logo

Extension Generator

extension-generator

Claude Codeの拡張機能(スキル、サブエージェント、プロジェクト設定)をユーザーの自然言語指示から自動生成するスキル。「○○を作るスキルを作って」「○○エージェントを作って」「CLAUDE.mdを設定して」などのリクエスト時に使用。v2.1.1以降、スラッシュコマンドとスキルは統合されたため、すべてスキルとして作成。

SKILL.md

Full skill instructions

Extension Generator

ユーザーの自然言語指示からClaude Codeの拡張機能を提案・生成するスキル。

ワークフロー

Step 1: 要件ヒアリング

ユーザーの指示から以下を確認(不明な場合は質問):

  1. 目的: 何を解決したいか?
  2. トリガー: いつ使いたいか?(明示的 or 自動検出)
  3. 複雑さ: 単純なプロンプト?複数ステップ?外部ツール連携?
  4. 独立性: メイン会話で実行?独立コンテキストが必要?
  5. 再利用性: 個人用?チーム共有?

Step 2: 構成を提案

要件に基づいて何を作るべきか提案する:

【提案テンプレート】

ご要件を整理すると:
- 目的: ○○
- トリガー: ○○
- 複雑さ: ○○

以下の構成を提案します:

📁 .claude/​skills/​skill-name/
├── SKILL.md          ← [必須] メイン定義
├── references/       ← [任意] 参照ドキュメント
│   └── xxx.md
└── scripts/          ← [任意] 自動化スクリプト
    └── xxx.py

または

📁 .claude/​agents/
└── agent-name.md     ← サブエージェント

理由: ○○

この構成でよろしいですか?

Step 3: 生成実行

承認後、各ファイルを生成。


構成要素ガイド

スキル構造 (.claude/​skills/)

skill-name/
├── SKILL.md          # 必須
├── references/       # 任意: 参照ドキュメント
├── scripts/          # 任意: 自動化スクリプト
└── assets/           # 任意: テンプレート等
SKILL.md(必須)

スキルのメイン定義ファイル。

  • フロントマター(name, description, allowed-tools等)
  • ワークフロー/手順
  • 使用例

いつ作る: 常に必須

references/(任意)

補足情報・チェックリスト・詳細ガイドを格納。

作るべき時例
チェックリストが必要SECURITY.md, PERFORMANCE.md
ドメイン知識が必要API_SPEC.md, CODING_STYLE.md
複数パターンがあるPATTERNS.md, EXAMPLES.md
SKILL.mdが長くなりすぎる分割して参照

参照方法: See [references/​xxx.md](references/​xxx.md)

scripts/(任意)

自動化スクリプトを格納。

作るべき時例
外部ツール実行が必要run-linters.sh
データ処理が必要analyze.py
ファイル生成が必要generate.py
検証/バリデーションが必要validate.sh

実行方法: !./​scripts/​xxx.sh または allowed-tools: Bash(./​scripts/​*)


サブエージェント (.claude/​agents/)

独立コンテキストで動作する特化型AI。

agent-name.md         # 単一ファイル
作るべき時理由
独立したコンテキストが必要メイン会話を汚さない
異なるモデルを使いたいmodel: haiku で高速化
複雑なマルチステップタスク専門家として動作
ツールセットを制限したいtools: で明示指定

複雑さ別の推奨構成

シンプル(単一プロンプト)

skill-name/
└── SKILL.md

例: コミットメッセージ生成、簡単な説明

中程度(チェックリスト・ガイド付き)

skill-name/
├── SKILL.md
└── references/
    ├── CHECKLIST.md
    └── EXAMPLES.md

例: コードレビュー、ドキュメント生成

複雑(外部ツール連携)

skill-name/
├── SKILL.md
├── references/
│   ├── SECURITY.md
│   └── PERFORMANCE.md
└── scripts/
    ├── run-linters.sh
    └── analyze.py

例: 包括的コードレビュー、CI/​CD連携

独立実行が必要

.claude/​agents/
└── specialist.md

例: デバッガー、データサイエンティスト、探索エージェント


スキル vs サブエージェント 選択基準

要件→選択
知識・ガイドを追加したい→スキル
ワークフローを標準化したい→スキル
メイン会話で実行したい→スキル
独立コンテキストが必要→サブエージェント
異なるモデルを使いたい→サブエージェント
複雑な探索・調査タスク→サブエージェント

参照ドキュメント

詳細なパターンとテンプレート:


生成スクリプト

スケルトン生成用:

# スキル作成
python scripts/​generate_extension.py skill <name> [--simple]

# サブエージェント作成
python scripts/​generate_extension.py agent <name> [--scope user|project]

# プロジェクト設定作成
python scripts/​generate_extension.py project

See scripts/​generate_extension.py

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View