skill-generator
๐ฏSkillfrom catlog22/claude-code-workflow
skill-generator skill from catlog22/claude-code-workflow
Part of
catlog22/claude-code-workflow(15 items)
Installation
npm install -g claude-code-workflowpip install -e .Skill Details
Meta-skill for creating new Claude Code skills with configurable execution modes. Supports sequential (fixed order) and autonomous (stateless) phase patterns. Use for skill scaffolding, skill creation, or building new workflows. Triggers on "create skill", "new skill", "skill generator", "็ๆๆ่ฝ", "ๅๅปบๆ่ฝ".
Overview
# Skill Generator
Meta-skill for creating new Claude Code skills with configurable execution modes.
Architecture Overview
```
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Skill Generator Architecture โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ โ ๏ธ Phase 0: Specification โ ้ ่ฏปๅนถ็่งฃ่ฎพ่ฎก่ง่ (ๅผบๅถๅ็ฝฎ) โ
โ Study SKILL-DESIGN-SPEC.md + ๆจกๆฟ โ
โ โ โ
โ Phase 1: Requirements โ skill-config.json โ
โ Discovery (name, type, mode, agents) โ
โ โ โ
โ Phase 2: Structure โ ็ฎๅฝ็ปๆ + ๆ ธๅฟๆไปถ้ชจๆถ โ
โ Generation โ
โ โ โ
โ Phase 3: Phase โ phases/*.md (ๆ นๆฎ mode ็ๆ) โ
โ Generation Sequential | Autonomous โ
โ โ โ
โ Phase 4: Specs & โ specs/.md + templates/.md โ
โ Templates โ
โ โ โ
โ Phase 5: Validation โ ้ช่ฏๅฎๆดๆง + ็ๆไฝฟ็จ่ฏดๆ โ
โ & Documentation โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
```
Execution Modes
Mode 1: Sequential (ๅบๅฎ้กบๅบ)
ไผ ็ป็บฟๆงๆง่กๆจกๅผ๏ผ้ถๆฎตๆๆฐๅญๅ็ผ้กบๅบๆง่กใ
```
Phase 01 โ Phase 02 โ Phase 03 โ ... โ Phase N
```
้็จๅบๆฏ:
- ๆตๆฐด็บฟๅผไปปๅก๏ผๆถ้ โ ๅๆ โ ็ๆ๏ผ
- ้ถๆฎต้ดๆๅผบไพ่ตๅ ณ็ณป
- ่พๅบ็ปๆๅบๅฎ
็คบไพ: software-manual, copyright-docs
Mode 2: Autonomous (ๆ ็ถๆ่ชไธป้ๆฉ)
ๆบ่ฝ่ทฏ็ฑๆจกๅผ๏ผๆ นๆฎไธไธๆๅจๆ้ๆฉๆง่ก่ทฏๅพใ
```
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Orchestrator Agent โ
โ (่ฏปๅ็ถๆ โ ้ๆฉ Phase โ ๆง่ก โ ๆดๆฐ) โ
โโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโผโโโโโโโโโโโโ
โ โ โ
โโโโโโโโโ โโโโโโโโโ โโโโโโโโโ
โPhase Aโ โPhase Bโ โPhase Cโ
โ(็ฌ็ซ) โ โ(็ฌ็ซ) โ โ(็ฌ็ซ) โ
โโโโโโโโโ โโโโโโโโโ โโโโโโโโโ
```
้็จๅบๆฏ:
- ไบคไบๅผไปปๅก๏ผๅฏน่ฏใ้ฎ็ญ๏ผ
- ้ถๆฎต้ดๆ ๅผบไพ่ต
- ้่ฆๅจๆๅๅบ็จๆทๆๅพ
็คบไพ: issue-manage, workflow-debug
Key Design Principles
- ๆจกๅผๆ็ฅ: ๆ นๆฎไปปๅก็นๆง่ชๅจๆจ่ๆง่กๆจกๅผ
- ้ชจๆถ็ๆ: ็ๆๅฎๆด็ฎๅฝ็ปๆๅๆไปถ้ชจๆถ
- ่ง่้ตๅพช: ไธฅๆ ผ้ตๅพช
_shared/SKILL-DESIGN-SPEC.md - ๅฏๆฉๅฑๆง: ็ๆ็ Skill ๆไบๆฉๅฑๅไฟฎๆน
---
โ ๏ธ Mandatory Prerequisites (ๅผบๅถๅ็ฝฎๆกไปถ)
> โ ็ฆๆญข่ทณ่ฟ: ๅจๆง่กไปปไฝ็ๆๆไฝไนๅ๏ผๅฟ ้กปๅฎๆด้ ่ฏปไปฅไธๆๆกฃใๆช้ ่ฏป่ง่็ดๆฅ็ๆๅฐๅฏผ่ด่พๅบไธ็ฌฆๅ่ดจ้ๆ ๅใ
ๆ ธๅฟ่ง่ (ๅฟ ่ฏป)
| Document | Purpose | Priority |
|----------|---------|----------|
| [../_shared/SKILL-DESIGN-SPEC.md](../_shared/SKILL-DESIGN-SPEC.md) | ้็จ่ฎพ่ฎก่ง่ - ๅฎไนๆๆ Skill ็็ปๆใๅฝๅใ่ดจ้ๆ ๅ | P0 - ๆ้ซ |
ๆจกๆฟๆไปถ (็ๆๅๅฟ ่ฏป)
| Document | Purpose |
|----------|---------|
| [templates/skill-md.md](templates/skill-md.md) | SKILL.md ๅ ฅๅฃๆไปถๆจกๆฟ |
| [templates/sequential-phase.md](templates/sequential-phase.md) | Sequential Phase ๆจกๆฟ |
| [templates/autonomous-orchestrator.md](templates/autonomous-orchestrator.md) | Autonomous ็ผๆๅจๆจกๆฟ |
| [templates/autonomous-action.md](templates/autonomous-action.md) | Autonomous Action ๆจกๆฟ |
| [templates/code-analysis-action.md](templates/code-analysis-action.md) | ไปฃ็ ๅๆ Action ๆจกๆฟ |
| [templates/llm-action.md](templates/llm-action.md) | LLM Action ๆจกๆฟ |
| [templates/script-bash.md](templates/script-bash.md) | Bash ่ๆฌๆจกๆฟ |
| [templates/script-python.md](templates/script-python.md) | Python ่ๆฌๆจกๆฟ |
่ง่ๆๆกฃ (ๆ้้ ่ฏป)
| Document | Purpose |
|----------|---------|
| [specs/execution-modes.md](specs/execution-modes.md) | ๆง่กๆจกๅผ่ง่ |
| [specs/skill-requirements.md](specs/skill-requirements.md) | Skill ้ๆฑ่ง่ |
| [specs/cli-integration.md](specs/cli-integration.md) | CLI ้ๆ่ง่ |
| [specs/scripting-integration.md](specs/scripting-integration.md) | ่ๆฌ้ๆ่ง่ |
Phase ๆง่กๆๅ (ๆง่กๆถๅ่)
| Document | Purpose |
|----------|---------|
| [phases/01-requirements-discovery.md](phases/01-requirements-discovery.md) | ๆถ้ Skill ้ๆฑ |
| [phases/02-structure-generation.md](phases/02-structure-generation.md) | ็ๆ็ฎๅฝ็ปๆ |
| [phases/03-phase-generation.md](phases/03-phase-generation.md) | ็ๆ Phase ๆไปถ |
| [phases/04-specs-templates.md](phases/04-specs-templates.md) | ็ๆ่ง่ๅๆจกๆฟ |
| [phases/05-validation.md](phases/05-validation.md) | ้ช่ฏๅๆๆกฃ |
---
Execution Flow
```
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ ๏ธ Phase 0: Specification Study (ๅผบๅถๅ็ฝฎ - ็ฆๆญข่ทณ่ฟ) โ
โ โ Read: ../_shared/SKILL-DESIGN-SPEC.md (้็จ่ฎพ่ฎก่ง่) โ
โ โ Read: templates/*.md (ๆๆ็ธๅ ณๆจกๆฟๆไปถ) โ
โ โ ็่งฃ: Skill ็ปๆ่ง่ใๅฝๅ็บฆๅฎใ่ดจ้ๆ ๅ โ
โ โ Output: ๅ ๅ่ง่่ฆๆฑ๏ผ็กฎไฟๅ็ปญ็ๆ็ฌฆๅๆ ๅ โ
โ โ ๆชๅฎๆ Phase 0 ็ฆๆญข่ฟๅ ฅ Phase 1 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Phase 1: Requirements Discovery โ
โ โ AskUserQuestion: Skill ๅ็งฐใ็ฎๆ ใๆง่กๆจกๅผ โ
โ โ Output: skill-config.json โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Phase 2: Structure Generation โ
โ โ ๅๅปบ็ฎๅฝ็ปๆ: phases/, specs/, templates/, scripts/ โ
โ โ ็ๆ SKILL.md ๅ ฅๅฃๆไปถ โ
โ โ Output: ๅฎๆด็ฎๅฝ็ปๆ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Phase 3: Phase Generation โ
โ โ Sequential: ็ๆ 01-xx.md, 02-xx.md, ... โ
โ โ Autonomous: ็ๆ orchestrator.md + actions/*.md โ
โ โ Output: phases/*.md โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Phase 4: Specs & Templates โ
โ โ ็ๆ้ขๅ่ง่: specs/{domain}-requirements.md โ
โ โ ็ๆ่ดจ้ๆ ๅ: specs/quality-standards.md โ
โ โ ็ๆๆจกๆฟ: templates/agent-base.md โ
โ โ Output: specs/.md, templates/.md โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Phase 5: Validation & Documentation โ
โ โ ้ช่ฏๆไปถๅฎๆดๆง โ
โ โ ็ๆ README.md ไฝฟ็จ่ฏดๆ โ
โ โ Output: ้ช่ฏๆฅๅ + README.md โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
```
Directory Setup
```javascript
const skillName = config.skill_name;
const skillDir = .claude/skills/${skillName};
// ๅๅปบ็ฎๅฝ็ปๆ
Bash(mkdir -p "${skillDir}/phases");
Bash(mkdir -p "${skillDir}/specs");
Bash(mkdir -p "${skillDir}/templates");
// Autonomous ๆจกๅผ้ขๅค็ฎๅฝ
if (config.execution_mode === 'autonomous') {
Bash(mkdir -p "${skillDir}/phases/actions");
}
```
Output Structure
Sequential Mode
```
.claude/skills/{skill-name}/
โโโ SKILL.md
โโโ phases/
โ โโโ 01-{step-one}.md
โ โโโ 02-{step-two}.md
โ โโโ 03-{step-three}.md
โโโ specs/
โ โโโ {domain}-requirements.md
โ โโโ quality-standards.md
โโโ templates/
โโโ agent-base.md
```
Autonomous Mode
```
.claude/skills/{skill-name}/
โโโ SKILL.md
โโโ phases/
โ โโโ orchestrator.md # ็ผๆๅจ๏ผ่ฏปๅ็ถๆ โ ้ๆฉๅจไฝ
โ โโโ state-schema.md # ็ถๆ็ปๆๅฎไน
โ โโโ actions/ # ็ฌ็ซๅจไฝ๏ผๆ ้กบๅบ๏ผ
โ โโโ action-{a}.md
โ โโโ action-{b}.md
โ โโโ action-{c}.md
โโโ specs/
โ โโโ {domain}-requirements.md
โ โโโ action-catalog.md # ๅจไฝ็ฎๅฝ๏ผๆ่ฟฐใๅ็ฝฎๆกไปถใๆๆ๏ผ
โ โโโ quality-standards.md
โโโ templates/
โโโ orchestrator-base.md # ็ผๆๅจๆจกๆฟ
โโโ action-base.md # ๅจไฝๆจกๆฟ
```
More from this repository10
project-analyze skill from catlog22/claude-code-workflow
review-code skill from catlog22/claude-code-workflow
prompt enhancer skill from catlog22/claude-code-workflow
copyright-docs skill from catlog22/claude-code-workflow
text-formatter skill from catlog22/claude-code-workflow
software-manual skill from catlog22/claude-code-workflow
parallel dev cycle skill from catlog22/claude-code-workflow
skill-tuning skill from catlog22/claude-code-workflow
issue-manage skill from catlog22/claude-code-workflow
ccw loop-b skill from catlog22/claude-code-workflow