Step-by-step guide to building Conductor for Claude Code
This blueprint outlines the phased approach to implementing Conductor as a Claude Code plugin.
- Create plugin manifest
- Set up directory structure
- Implement basic command scaffolding
mkdir -p conductor-claude/{.claude-plugin,commands,agents,skills,hooks,templates}.claude-plugin/plugin.json
{
"name": "conductor",
"version": "0.1.0",
"description": "Context-Driven Development framework",
"commands": ["./commands/"],
"agents": "./agents/",
"skills": "./skills/",
"hooks": "./hooks/hooks.json"
}Start with simplified versions of each command:
- setup.md - Project initialization
- new-track.md - Track creation
- implement.md - Task execution
- status.md - Progress display
- revert.md - Smart rollback
- Install plugin locally
- Test each command runs without errors
- Verify namespace (
/conductor:*) works
- Create dedicated agents for planning, implementation, review
- Wire commands to delegate to agents
- Test agent handoffs
agents/planner.md
Focus on:
- Requirements extraction
- Spec.md generation
- Plan.md generation with TDD structure
agents/implementer.md
Focus on:
- TDD cycle execution
- Plan progress tracking
- Quality gate enforcement
agents/reviewer.md
Focus on:
- Test coverage verification
- Manual verification plans
- Checkpoint creation
Modify commands to use Task tool with agents:
## Specification Generation
Delegate to the planner agent:
- Use Task tool with subagent_type='planner'
- Provide the track description as context
- Wait for spec.md content- Test planning flow creates valid specs
- Test implementation follows TDD
- Test review creates checkpoints
- Create auto-discovered capabilities
- Implement context awareness
- Port code styleguides
skills/context-awareness/SKILL.md
Auto-loads conductor context when directory detected.
skills/tdd-workflow/SKILL.md
Provides TDD guidance during implementation.
skills/code-styleguides/
- SKILL.md (auto-activation skill, reads from project)
templates/code-styleguides/
- typescript.md (template copied to project during setup)
- python.md
- go.md
- javascript.md
- html-css.md
- Verify skills auto-discover in conductor projects
- Test TDD skill activates during implementation
- Test styleguide skill with different languages
- Implement event-driven behaviors
- Auto-load context on session start
- Remind about in-progress work
hooks/hooks.json
Implement:
- SessionStart: Load conductor context
- PostToolUse: Track plan modifications
- Stop: Remind about in-progress tracks
- Start new session in conductor project
- Verify context message appears
- Make changes to plan.md
- Verify tracking works
- End session
- Verify reminder appears
- Create default templates
- Add comprehensive error handling
- Write documentation
Port from original Conductor:
- workflow.md
- product.md template
- product-guidelines.md template
- Code styleguide templates
Add to all commands:
- Pre-flight checks for conductor directory
- Validation of required files
- Graceful failure with helpful messages
- README.md with installation instructions
- Command reference
- Configuration options
- Troubleshooting guide
- End-to-end testing
- Performance optimization
- Release preparation
Full workflow test:
- Fresh project → /conductor:setup
- Create track → /conductor:new-track
- Implement → /conductor:implement
- Check status → /conductor:status
- Revert if needed → /conductor:revert
Test:
- Brownfield project detection
- Resume interrupted setup
- Multiple tracks
- Phase completion checkpoints
- Git revert scenarios
- Minimize unnecessary file reads
- Optimize hook execution
- Test with large projects
- Tag version 1.0.0
- Publish to GitHub
- Add to Claude Code plugin registry (if available)
Use JSON files for state, loaded via hooks:
// conductor/setup_state.json
{
"last_successful_step": "2.3_tech_stack",
"project_type": "brownfield",
"created_at": "2024-12-22T10:00:00Z"
}Use structured approach for user interaction:
Present options to user:
1. Read current state
2. Generate options based on context
3. Present as clear choices
4. Process response
5. Update state
6. Continue or loopLeverage Bash tool for git operations:
## Commit Changes
1. Stage files: `git add <files>`
2. Create commit: `git commit -m "<type>(<scope>): <description>"`
3. Add git note: `git notes add -m "<summary>" <sha>`
4. Update plan with SHAEvery command should:
- Check preconditions first
- Fail fast with clear messages
- Preserve state for resume
- Suggest next steps
# Install plugin locally
cd ~/.claude/plugins/
ln -s /path/to/conductor-claude conductor
# Or add to settings.json
{
"plugins": ["/path/to/conductor-claude"]
}- Modify command/agent/skill
- Restart Claude Code session
- Test changes
- Repeat
Use verbose mode to see hook output:
claude --verboseCheck hook execution in debug logs:
~/.claude/debug/
- All 5 commands work correctly
- Agents delegate appropriately
- Skills auto-discover
- Hooks fire on events
- State persists across sessions
- Clear error messages
- Graceful failure handling
- Consistent UI patterns
- Good documentation
- Commands complete in reasonable time
- Minimal token overhead
- Efficient file operations