Skip to content

Commit 656cb51

Browse files
authored
Merge pull request #59 from ryanmac/feat/improve-documentation-map-integration
feat: Integrate documentation map into agent workflow
2 parents fd8a007 + d6f247b commit 656cb51

File tree

5 files changed

+40
-3
lines changed

5 files changed

+40
-3
lines changed

.conductor/roles/CLAUDE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ New skill requirement detected?
5656

5757
### 1. Observe - Understanding Existing Roles
5858
Automatically read and analyze:
59+
- **Documentation Map**: First check if `../.conductor/documentation-map.yaml` exists and load it for project context
5960
- **Structure**: Each role has sections for Overview, Responsibilities, Skills, Task Selection, etc.
6061
- **Patterns**: Notice how specialized roles build on the `_core.md` foundation
6162
- **Contracts**: Check `../contracts.md` for how roles interact

.conductor/roles/_core.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Every Code-Conductor agent follows this core reasoning and acting pattern:
1616

1717
### 1. 🔍 **Observe**
1818
- Read task specification and success criteria
19+
- Load project context from `.conductor/documentation-map.yaml` if it exists
1920
- Check repository state (`git status`, recent commits)
2021
- Review CI/CD status (`gh run list --limit 5`)
2122
- Scan relevant files and documentation

.conductor/roles/dev.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ The setup process detected your project's stack. Prioritize using:
4545
### 1. 🔍 **Context Loading**
4646
```bash
4747
# Start every task with context
48+
# First, check for documentation map
49+
if [ -f ".conductor/documentation-map.yaml" ]; then
50+
echo "Loading project documentation map..."
51+
cat .conductor/documentation-map.yaml | head -50
52+
fi
4853
gh pr checks # Current CI status
4954
git log --oneline -10 # Recent changes
5055
cat .conductor/workflow-state.json | jq '.active_work'

.conductor/scripts/conductor

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,11 +248,30 @@ $TASK_BODY
248248
### Working Directory
249249
$WORKTREE_PATH
250250
251+
### Project Documentation Map
252+
EOF
253+
254+
# Check if documentation map exists and include it
255+
if [ -f "$PROJECT_ROOT/.conductor/documentation-map.yaml" ]; then
256+
echo "**IMPORTANT**: A documentation map exists with comprehensive project analysis." >> "$WORKTREE_PATH/.conductor-context"
257+
echo "Loading first 100 lines for context:" >> "$WORKTREE_PATH/.conductor-context"
258+
echo '```yaml' >> "$WORKTREE_PATH/.conductor-context"
259+
head -100 "$PROJECT_ROOT/.conductor/documentation-map.yaml" >> "$WORKTREE_PATH/.conductor-context"
260+
echo '```' >> "$WORKTREE_PATH/.conductor-context"
261+
echo "" >> "$WORKTREE_PATH/.conductor-context"
262+
echo "Full map available at: $PROJECT_ROOT/.conductor/documentation-map.yaml" >> "$WORKTREE_PATH/.conductor-context"
263+
else
264+
echo "No documentation map found. Run the [INIT] task to create one." >> "$WORKTREE_PATH/.conductor-context"
265+
fi
266+
267+
cat >> "$WORKTREE_PATH/.conductor-context" << EOF
268+
251269
### Next Steps
252270
1. Review the task requirements above
253-
2. Make necessary changes in this worktree
254-
3. Commit your changes
255-
4. Run: ./conductor complete
271+
2. Check the documentation map if available
272+
3. Make necessary changes in this worktree
273+
4. Commit your changes
274+
5. Run: ./conductor complete
256275
257276
### Available Commands
258277
- ./conductor status - Check current progress

CLAUDE.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,17 @@ Code Conductor is an AI agent coordination system designed to orchestrate multip
88

99
**IMPORTANT**: This is a template repository. When you encounter Code Conductor files in a project, they have been imported to enable automated agent coordination. Work autonomously based on GitHub Issues with the `conductor:task` label and the guidance in these files.
1010

11+
## Documentation Map
12+
13+
**CRITICAL**: When starting work on any task, check if `.conductor/documentation-map.yaml` exists. This file contains:
14+
- Comprehensive project analysis and structure
15+
- Technology stack details and dependencies
16+
- List of completed vs. pending features
17+
- Implementation status and critical paths
18+
- Architectural decisions and constraints
19+
20+
If this file exists, load it to understand the project context before beginning work. This map is created by the `[INIT]` discovery task and provides essential context for all subsequent tasks.
21+
1122
## Key Development Commands
1223

1324
### Running Tests

0 commit comments

Comments
 (0)