feat(03-02): add codebase intelligence to subagent prompts
- Add load_codebase_intelligence step to gsd-planner.md - Add load_codebase_intelligence step to gsd-executor.md - Include .planning/intel/summary.md in plan context template - Subagents now use detected conventions during planning/execution
This commit is contained in:
@@ -52,6 +52,21 @@ git check-ignore -q .planning 2>/dev/null && COMMIT_PLANNING_DOCS=false
|
||||
Store `COMMIT_PLANNING_DOCS` for use in git operations.
|
||||
</step>
|
||||
|
||||
<step name="load_codebase_intelligence">
|
||||
Check for codebase intelligence:
|
||||
|
||||
```bash
|
||||
cat .planning/intel/summary.md 2>/dev/null
|
||||
```
|
||||
|
||||
If exists:
|
||||
- Follow detected naming conventions when writing code
|
||||
- Place new files in directories that match their purpose
|
||||
- Use established patterns (camelCase, PascalCase, etc.)
|
||||
|
||||
This context helps maintain codebase consistency during execution.
|
||||
</step>
|
||||
|
||||
<step name="load_plan">
|
||||
Read the plan file provided in your prompt context.
|
||||
|
||||
|
||||
@@ -416,6 +416,9 @@ Output: [What artifacts will be created]
|
||||
@.planning/ROADMAP.md
|
||||
@.planning/STATE.md
|
||||
|
||||
# Codebase intelligence (if exists)
|
||||
@.planning/intel/summary.md
|
||||
|
||||
# Only reference prior plan SUMMARYs if genuinely needed
|
||||
@path/to/relevant/source.ts
|
||||
</context>
|
||||
@@ -1036,6 +1039,25 @@ If exists, load relevant documents based on phase type:
|
||||
| (default) | STACK.md, ARCHITECTURE.md |
|
||||
</step>
|
||||
|
||||
<step name="load_codebase_intelligence">
|
||||
Check for codebase intelligence:
|
||||
|
||||
```bash
|
||||
cat .planning/intel/summary.md 2>/dev/null
|
||||
```
|
||||
|
||||
If exists, this provides:
|
||||
- File count and structure overview
|
||||
- Detected naming conventions (use these when creating new files)
|
||||
- Key directories and their purposes
|
||||
- Export patterns
|
||||
|
||||
**How to use:**
|
||||
- Follow detected naming conventions when planning new exports
|
||||
- Place new files in directories that match their purpose
|
||||
- Reference existing patterns when describing implementation
|
||||
</step>
|
||||
|
||||
<step name="identify_phase">
|
||||
Check roadmap and existing phases:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user