mirror of
https://github.com/cexll/myclaude.git
synced 2026-02-10 03:14:32 +08:00
Replace external inject-spec.py hook with built-in zero-config skill detection in codeagent-wrapper. The system auto-detects project type from fingerprint files (go.mod, package.json, etc.), maps to installed skills, and injects SKILL.md content directly into sub-agent prompts. Key changes: - Add DetectProjectSkills/ResolveSkillContent in executor/prompt.go - Add Skills field to TaskSpec with parallel config parsing - Add --skills CLI flag for explicit override - Update /do SKILL.md Phase 4 with per-task skill examples - Remove on-stop.py global hook (not needed) - Replace inject-spec.py with no-op (detection now internal) - Add 20 unit tests covering detection, resolution, budget, security Security: path traversal protection via validSkillName regex, 16K char budget with tag overhead accounting, CRLF normalization. Generated with SWE-Agent.ai Co-Authored-By: SWE-Agent.ai <noreply@swe-agent.ai>
169 lines
5.1 KiB
JSON
169 lines
5.1 KiB
JSON
{
|
|
"version": "1.0",
|
|
"install_dir": "~/.claude",
|
|
"log_file": "install.log",
|
|
"modules": {
|
|
"bmad": {
|
|
"enabled": false,
|
|
"description": "BMAD agile workflow with multi-agent orchestration",
|
|
"operations": [
|
|
{
|
|
"type": "merge_dir",
|
|
"source": "agents/bmad",
|
|
"description": "Merge BMAD commands and agents"
|
|
}
|
|
]
|
|
},
|
|
"requirements": {
|
|
"enabled": false,
|
|
"description": "Requirements-driven development workflow",
|
|
"operations": [
|
|
{
|
|
"type": "merge_dir",
|
|
"source": "agents/requirements",
|
|
"description": "Merge requirements workflow commands and agents"
|
|
}
|
|
]
|
|
},
|
|
"essentials": {
|
|
"enabled": false,
|
|
"description": "Core development commands and utilities",
|
|
"operations": [
|
|
{
|
|
"type": "merge_dir",
|
|
"source": "agents/development-essentials",
|
|
"description": "Merge essential development commands"
|
|
}
|
|
]
|
|
},
|
|
"omo": {
|
|
"enabled": false,
|
|
"description": "OmO multi-agent orchestration with Sisyphus coordinator",
|
|
"operations": [
|
|
{
|
|
"type": "copy_file",
|
|
"source": "skills/omo/SKILL.md",
|
|
"target": "skills/omo/SKILL.md",
|
|
"description": "Install omo skill"
|
|
},
|
|
{
|
|
"type": "copy_file",
|
|
"source": "skills/omo/references/oracle.md",
|
|
"target": "skills/omo/references/oracle.md",
|
|
"description": "Install oracle agent prompt"
|
|
},
|
|
{
|
|
"type": "copy_file",
|
|
"source": "skills/omo/references/librarian.md",
|
|
"target": "skills/omo/references/librarian.md",
|
|
"description": "Install librarian agent prompt"
|
|
},
|
|
{
|
|
"type": "copy_file",
|
|
"source": "skills/omo/references/explore.md",
|
|
"target": "skills/omo/references/explore.md",
|
|
"description": "Install explore agent prompt"
|
|
},
|
|
{
|
|
"type": "copy_file",
|
|
"source": "skills/omo/references/frontend-ui-ux-engineer.md",
|
|
"target": "skills/omo/references/frontend-ui-ux-engineer.md",
|
|
"description": "Install frontend-ui-ux-engineer agent prompt"
|
|
},
|
|
{
|
|
"type": "copy_file",
|
|
"source": "skills/omo/references/document-writer.md",
|
|
"target": "skills/omo/references/document-writer.md",
|
|
"description": "Install document-writer agent prompt"
|
|
},
|
|
{
|
|
"type": "copy_file",
|
|
"source": "skills/omo/references/develop.md",
|
|
"target": "skills/omo/references/develop.md",
|
|
"description": "Install develop agent prompt"
|
|
}
|
|
]
|
|
},
|
|
"sparv": {
|
|
"enabled": false,
|
|
"description": "SPARV workflow (Specify→Plan→Act→Review→Vault) with 10-point gate",
|
|
"operations": [
|
|
{
|
|
"type": "copy_dir",
|
|
"source": "skills/sparv",
|
|
"target": "skills/sparv",
|
|
"description": "Install sparv skill with all scripts and hooks"
|
|
}
|
|
]
|
|
},
|
|
"do": {
|
|
"enabled": true,
|
|
"description": "7-phase feature development workflow with codeagent orchestration",
|
|
"operations": [
|
|
{
|
|
"type": "copy_dir",
|
|
"source": "skills/do",
|
|
"target": "skills/do",
|
|
"description": "Install do skill with hooks"
|
|
}
|
|
]
|
|
},
|
|
"course": {
|
|
"enabled": false,
|
|
"description": "课程开发工作流,包含 dev、产品需求和测试用例技能",
|
|
"operations": [
|
|
{
|
|
"type": "copy_dir",
|
|
"source": "skills/dev",
|
|
"target": "skills/dev",
|
|
"description": "Install dev skill with agents"
|
|
},
|
|
{
|
|
"type": "copy_file",
|
|
"source": "skills/product-requirements/SKILL.md",
|
|
"target": "skills/product-requirements/SKILL.md",
|
|
"description": "Install product-requirements skill"
|
|
},
|
|
{
|
|
"type": "copy_dir",
|
|
"source": "skills/test-cases",
|
|
"target": "skills/test-cases",
|
|
"description": "Install test-cases skill with references"
|
|
},
|
|
{
|
|
"type": "copy_file",
|
|
"source": "skills/codeagent/SKILL.md",
|
|
"target": "skills/codeagent/SKILL.md",
|
|
"description": "Install codeagent skill"
|
|
},
|
|
{
|
|
"type": "run_command",
|
|
"command": "bash install.sh",
|
|
"description": "Install codeagent-wrapper binary",
|
|
"env": {
|
|
"INSTALL_DIR": "${install_dir}"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"claudekit": {
|
|
"enabled": false,
|
|
"description": "ClaudeKit workflow: skills/do + global hooks (pre-bash, inject-spec, log-prompt, on-stop)",
|
|
"operations": [
|
|
{
|
|
"type": "copy_dir",
|
|
"source": "skills/do",
|
|
"target": "skills/do",
|
|
"description": "Install do skill with 5-phase workflow"
|
|
},
|
|
{
|
|
"type": "copy_dir",
|
|
"source": "hooks",
|
|
"target": "hooks",
|
|
"description": "Install global hooks (pre-bash, inject-spec, log-prompt, on-stop)"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|