skill-creator について
再利用可能なスキルの作成ガイドです。AI エージェント向けのプロジェクト固有パターンやワークフローの説明について、構成、命名、内容、登録方法を扱います。
主な機能
- 01スキル作成の判断基準
- 02ディレクトリとファイル構成
- 03命名規則
- 04assets と references の使い分け
- 05Frontmatter と内容のチェックリスト
- 06AGENTS.md への登録
活用シーン
- 01繰り返し使うプロジェクトパターンの記録
- 02手順付きワークフローガイドの作成
- 03テンプレートとローカル参照資料の追加
- 04エージェントが見つけられるようスキルを登録
インストール
コマンドをコピーしてターミナルで実行します。
$
npx skills add https:/ / github.com/ gentleman-programming/ gentleman-skills --skill skill-creatorインストール後、Claude Code で/skill-creatorを入力して読み込まれたか確認します。
同梱ファイルassets/SKILL-TEMPLATE.md
詳細
スキルを作成するタイミング
次の場合にスキルを作成します。
- パターンが繰り返し使われ、AI にガイダンスが必要な場合
- プロジェクト固有の規約が一般的なベストプラクティスと異なる場合
- 複雑なワークフローに手順ごとの指示が必要な場合
- AI が適切なアプローチを選ぶ際に、判断ツリーが役立つ場合
次の場合はスキルを作成しないでください。
- すでにドキュメントがある場合(代わりにリファレンスを作成してください)
- パターンが単純、または説明不要な場合
- 一度限りのタスクの場合
スキルの構成
skills/{skill-name}/
├── SKILL.md # Required - main skill file
├── assets/ # Optional - templates, schemas, examples
│ ├── template.py
│ └── schema.json
└── references/ # Optional - links to local docs
└── docs.md # Points to docs/developer-guide/*.mdx
SKILL.md テンプレート
---
name: {skill-name}
description: >
{One-line description of what this skill does}.
Trigger: {When the AI should load this skill}.
license: Apache-2.0
metadata:
author: gentleman-programming
version: "1.0"
---
## When to Use
{Bullet points of when to use this skill}
## Critical Patterns
{The most important rules - what AI MUST know}
## Code Examples
{Minimal, focused examples}
## Commands
```bash
{Common commands}
リソース
- テンプレート:{description}についてはassets/を参照してください
- ドキュメント:ローカルのドキュメントについてはreferences/を参照してください
---
## Naming Conventions
| Type | Pattern | Examples |
|------|---------|----------|
| Generic skill | `{technology}` | `pytest`, `playwright`, `typescript` |
| Prowler-specific | `prowler-{component}` | `prowler-api`, `prowler-ui`, `prowler-sdk-check` |
| Testing skill | `prowler-test-{component}` | `prowler-test-sdk`, `prowler-test-api` |
| Workflow skill | `{action}-{target}` | `skill-creator`, `jira-task` |
---
## Decision: assets/ vs references/
コードのテンプレートが必要ですか? → assets/ JSON スキーマが必要ですか? → assets/ 設定例が必要ですか? → assets/ 既存のドキュメントへのリンクですか? → references/ 外部ガイドへのリンクですか? → references/(ローカルパスを指定)
**Key Rule**: `references/` should point to LOCAL files (`docs/developer-guide/*.mdx`), not web URLs.
---
## Decision: Prowler-Specific vs Generic
パターンはあらゆるプロジェクトに適用されますか? → 汎用スキル(例:pytest、typescript) パターンは Prowler 固有ですか? → prowler-{name} スキル 汎用スキルに Prowler の情報が必要ですか? → Prowler のドキュメントを参照する references/ を追加
---
## Frontmatter Fields
| Field | Required | Description |
|-------|----------|-------------|
| `name` | Yes | Skill identifier (lowercase, hyphens) |
| `description` | Yes | What + Trigger in one block |
| `license` | Yes | Always `Apache-2.0` for Prowler |
| `metadata.author` | Yes | `gentleman-programming` |
| `metadata.version` | Yes | Semantic version as string |
---
## Content Guidelines
### DO
- Start with the most critical patterns
- Use tables for decision trees
- Keep code examples minimal and focused
- Include Commands section with copy-paste commands
### DON'T
- Add Keywords section (agent searches frontmatter, not body)
- Duplicate content from existing docs (reference instead)
- Include lengthy explanations (link to docs)
- Add troubleshooting sections (keep focused)
- Use web URLs in references (use local paths)
---
## Registering the Skill
After creating the skill, add it to `AGENTS.md`:
```markdown
| `{skill-name}` | {Description} | [SKILL.md](skills/{skill-name}/SKILL.md) |
作成前のチェックリスト
- スキルがすでに存在していない(
skills/を確認) - パターンが再利用可能(一度限りではない)
- 名前が規約に従っている
- フロントマターが完成している(説明にトリガーキーワードを含む)
- 重要なパターンが明確になっている
- コード例が最小限になっている
- Commands セクションがある
- AGENTS.md に追加している
リソース
- テンプレート:SKILL.md テンプレートについてはassets/を参照してください
コメント
Markdown 対応