* feat(#1135): migrate planning hooks to capabilities * chore(#1135): add phase 6 planning capabilities changeset * fix(#1135): satisfy lint for agent hook rendering
This commit is contained in:
31
capabilities/pattern-mapper/capability.json
Normal file
31
capabilities/pattern-mapper/capability.json
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"id": "pattern-mapper",
|
||||
"role": "feature",
|
||||
"title": "Pattern mapping",
|
||||
"description": "Optional codebase-pattern mapping before planning; owns the pattern mapper agent and workflow.pattern_mapper activation key.",
|
||||
"tier": "full",
|
||||
"requires": ["research"],
|
||||
"skills": [],
|
||||
"agents": ["gsd-pattern-mapper"],
|
||||
"hooks": [],
|
||||
"config": {
|
||||
"workflow.pattern_mapper": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"description": "Run the pattern mapper before planning when context or research is available."
|
||||
}
|
||||
},
|
||||
"steps": [
|
||||
{
|
||||
"point": "plan:pre",
|
||||
"ref": { "agent": "gsd-pattern-mapper" },
|
||||
"fragment": { "path": "fragments/plan-pre.md" },
|
||||
"produces": ["PATTERNS.md"],
|
||||
"consumes": ["RESEARCH.md"],
|
||||
"when": "workflow.pattern_mapper",
|
||||
"onError": "skip"
|
||||
}
|
||||
],
|
||||
"contributions": [],
|
||||
"gates": []
|
||||
}
|
||||
14
capabilities/pattern-mapper/fragments/plan-pre.md
Normal file
14
capabilities/pattern-mapper/fragments/plan-pre.md
Normal file
@@ -0,0 +1,14 @@
|
||||
<pattern_mapping_context>
|
||||
**Phase:** {phase_number} - {phase_name}
|
||||
**Phase directory:** {phase_dir}
|
||||
**Padded phase:** {padded_phase}
|
||||
|
||||
<files_to_read>
|
||||
- {context_path} (USER DECISIONS from /gsd:discuss-phase)
|
||||
- {research_path} (Technical Research)
|
||||
</files_to_read>
|
||||
|
||||
**Output file:** {phase_dir}/{padded_phase}-PATTERNS.md
|
||||
|
||||
Extract the list of files to be created/modified from CONTEXT.md and RESEARCH.md. For each file, classify by role and data flow, find the closest existing analog in the codebase, extract concrete code excerpts, and produce PATTERNS.md.
|
||||
</pattern_mapping_context>
|
||||
Reference in New Issue
Block a user