| name | codify-to-knowhow |
| description | Manifest-driven knowledge asset generator โ converts any structured package into maestro knowhow + spec entries with ref linking. Triggers on "codify-to-knowhow", "style to knowhow", "็ฅ่ฏๅบๅ". |
| allowed-tools | ["Bash","Edit","Glob","Grep","Read","Write","todo"] |
| auto-continue | true |
| session-mode | none |
Codify to Knowhow
้็จ manifest ้ฉฑๅจ็็ฅ่ฏ่ตไบง็ๆๅจใ่ฏปๅ knowhow-manifest.json๏ผๆๅฃฐๆๅๅปบ knowhow ๆไปถๅ spec ๆก็ฎ๏ผ้่ฟ ref ๅปบ็ซ็ดขๅผ-่ฏฆๆๆกฅๆขใ
้็จๅบๆฏ: ไปปไฝๅทฅไฝๆตไบงๅบ้่ฆๅบๅไธบ็ฅ่ฏ่ตไบงๆถไฝฟ็จใไธๆธธ skill๏ผๅฆ maestro-impeccable --codify๏ผ่ด่ดฃ็ๆ manifest๏ผๆฌ skill ่ด่ดฃๆง่ก็ฅ่ฏๅๅ
ฅใ
Architecture Overview
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Codify to Knowhow (SKILL.md) โ Manifest-Driven โ
โ โ Read manifest โ Create knowhow โ Create specs โ Verify โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโฌโโโโโโโโโโโโผโโโโโโโโโโโโฌโโโโโโโโโโโ
โ โ โ โ โ
โโโโโโโโโโ โโโโโโโโโโ โโโโโโโโโโ โโโโโโโโโโ โ
โPhase 1 โ โPhase 2 โ โPhase 3 โ โPhase 4 โ โ
โ Load โ โGenerateโ โGenerateโ โ Index โ โ
โManifestโ โKnowhow โ โ Specs โ โ Verify โ โ
โโโโโฌโโโโโ โโโโโฌโโโโโ โโโโโฌโโโโโ โโโโโฌโโโโโ โ
โ โ โ โ โ
manifest AST-/DCS- spec-entry verified โ
parsed files + ref assets โ
Key Design Principles
- Manifest ้ฉฑๅจ: ๆๆ่กไธบ็ฑ
knowhow-manifest.json ๅฃฐๆ๏ผไธๅซ็กฌ็ผ็ ้ขๅ็ฅ่ฏ
- ๅน็ญๆง่ก: ๆฏไธชๅๅ
ฅๅๆ slug ๆฃๆฅๅทฒๅญๅจ่ตไบง๏ผๅญๅจๅ่ทณ่ฟ
- ref ๆกฅๆข: spec-entry ้่ฟ
ref ๅผ็จ knowhow ่ฏฆๆ
- ้ญๅๆ ็ญพ: ๆๆๆก็ฎไฝฟ็จ
<spec-entry>/<knowhow-entry> ้ญๅๆ ็ญพ
- ไธๆธธ็ๆ manifest: ๆฌ skill ไธๅ็ฅ่ฏๆๅ๏ผๅชๅ็ฅ่ฏๅๅ
ฅ
Manifest Format
knowhow-manifest.json ็ฑไธๆธธ skill ็ๆ๏ผๆพๅจ package ็ฎๅฝไธญ๏ผ
{
"slug": "my-style-v1",
"domain": "ui-design",
"roles": ["implement", "review"],
"packagePath": ".workflow/reference_style/my-style-v1",
"knowhow": [
{
"prefix": "AST",
"fileSlug": "tokens",
"title": "Design Tokens",
"category": "asset",
"assetType": "design-tokens",
"codePaths": ["src/styles/"],
"tags": ["design-tokens", "colors"],
"entries": [
{
"category": "pattern",
"keywords": "colors,tokens",
"title": "Color System",
"body": "## Colors\n\n..."
}
]
}
],
"specs": [
{
"category": "coding",
"keywords": "colors,design-tokens",
"title": "้ข่ฒ็ผ็ ็บฆๅฎ",
"ref": "knowhow/AST-my-style-v1-tokens.md",
"body": "ไธป่ฒไฝฟ็จ var(--color-primary)..."
}
]
}
Execution Flow
Input: <package-path> (must contain knowhow-manifest.json)
Phase 1: Load and Validate Manifest
โโ Ref: phases/01-load-manifest.md
โโ Validate package path and manifest existence
โโ Parse knowhow-manifest.json
โโ Output: manifest object
Phase 2: Generate Knowhow Assets
โโ Ref: phases/02-generate-knowhow.md
โโ Idempotency check per file
โโ Write knowhow files per manifest.knowhow[]
โโ Output: knowhowPaths[]
Phase 3: Generate Spec Entries
โโ Ref: phases/03-generate-specs.md
โโ Idempotency check per entry
โโ Write spec entries per manifest.specs[]
โโ Output: specEntryCount
Phase 4: Index and Verify
โโ Ref: phases/04-index-verify.md
โโ Output: verification report
Phase Reference Documents:
Core Rules
- Manifest ๅฟ
้: ๆ manifest ๅๆฅ้้ๅบ
- ๅน็ญๅๅ
ฅ: ๅ slug ๆไปถๅญๅจๅ่ทณ่ฟ
- ้ญๅๆ ็ญพ: ๆๆ entry ไฝฟ็จ้ญๅๆ ็ญพๆ ผๅผ
- Auto-Continue: Phase ๅฎๆๅ่ชๅจๆง่กไธไธ Phase
- ไธๆๅ็ฅ่ฏ: ๆฌ skill ๅชๅๅ
ฅ๏ผ็ฅ่ฏๆๅ็ฑไธๆธธๅฎๆ
Data Flow
Input (packagePath)
โ
Phase 1 โ manifest: { slug, knowhow[], specs[] }
โ
Phase 2 โ knowhowPaths: string[], knowhowIds: string[]
โ
Phase 3 โ specEntryCount: number
โ
Phase 4 โ verificationResult
โ
Completion report
todo({ action: "update" }) Pattern
[
{"content": "Phase 1: ๅ ่ฝฝ Manifest", "status": "in_progress"},
{"content": "Phase 2: ็ๆ Knowhow ่ตไบง", "status": "pending"},
{"content": "Phase 3: ็ๆ Spec ๆก็ฎ", "status": "pending"},
{"content": "Phase 4: ็ดขๅผ้ช่ฏ", "status": "pending"}
]
Error Handling
- Manifest ไธๅญๅจ: ๆฅๅ้่ฏฏ๏ผๆ็คบไธๆธธ skill ้ๅ
็ๆ manifest
- Manifest ๆ ผๅผ้่ฏฏ: ๆฅๅ็ผบๅคฑๅญๆฎต
- ๅน็ญๅฒ็ช: ่ทณ่ฟๅทฒๅญๅจ่ตไบง๏ผๆฅๅ่ทณ่ฟๆฐ้
- CLI ๅคฑ่ดฅ: ๅ้ๅฐ Write tool ็ดๆฅๅๆไปถ
Related Commands
ไธๆธธ: maestro-impeccable --codify, learn decompose, ๆไปปไฝ็ๆ manifest ็ skill
ๅ็ปญ: maestro wiki list --category coding, maestro load --type spec --keyword <slug>