This file provides guidance to Claude Code (claude.ai/code) when working with the AutoSDLC implementation.
AutoSDLC is an AI-powered system that orchestrates 5 specialized agents to automate the entire software development lifecycle. This is the main implementation repository - we are building the actual system from scratch based on the comprehensive documentation in /Docs.
The AutoSDLC system uses 5 specialized agents that run as Claude Code instances:
- Customer Agent: Requirements and product vision
- PM Agent: Technical specifications and coordination
- Coder Agent: Implementation using strict TDD
- Code Reviewer: Quality assurance and standards
- Tester Agent: Automated testing and CI/CD
Model Context Protocol (MCP) enables agent communication:
- Each agent acts as both MCP client and server
- Bidirectional communication network
- Real-time status sharing via Agent_Output.md files
Critical: System enforces strict Test-Driven Development:
- Tests written BEFORE implementation
- No mocks - real databases, APIs, services
- 100% test coverage required
- "Red-Green-Refactor" cycle strictly followed
We are implementing the system based on documentation in /Docs/. Key reference files:
Docs/02-Architecture.md: Complete system designDocs/10-Agent-Framework.md: Agent communication patternsDocs/20-MCP-Integration.md: Inter-agent protocol details
Docs/63-TDD-Implementation-Guide.md: Strict TDD methodologyDocs/60-Development-Workflow.md: Development processesDocs/25-Claude-Code-Integration.md: Headless agent execution
Docs/30-API-Specification.md: REST, GraphQL, WebSocket APIsDocs/31-WebSocket-Events.md: Real-time communicationDocs/21-GitHub-Integration.md: Version control workflow
Start with minimal viable system that can:
- Initialize basic agent structure
- Establish MCP communication between agents
- Demonstrate TDD workflow with one simple feature
- Run locally via Docker Compose
- Write failing tests first based on specifications
- Verify ALL tests are red before implementation
- Implement minimal code to make tests green
- Refactor while keeping tests green
- Achieve 80%+ coverage (block < 80%)
- Create GitHub Project for sprint planning
- Break work into 1-week phases
- Each phase delivers demonstrable progress
- Use labels: phase:N, feature, tdd, quick-win
- Columns: Backlog → Tests Red → In Progress → Review → Done
- Node.js v20+: Runtime environment
- TypeScript: Primary language
- Docker Compose: Local development stack
- PostgreSQL: Primary database
- Redis: Caching and message queue
- Claude Code: Headless execution (
cc -p) - MCP: Inter-agent communication protocol
- File-based status: Agent_Output.md for coordination
- Jest/Vitest: Test runner
- Real implementations: No mocks policy
- Coverage reporting: Must meet 80% minimum
/
├── agents/ # Agent implementations
│ ├── customer-agent/
│ ├── pm-agent/
│ ├── coder-agent/
│ ├── reviewer-agent/
│ └── tester-agent/
├── core/ # Shared libraries
│ ├── mcp-client/
│ ├── mcp-server/
│ └── agent-base/
├── infrastructure/ # Docker, DB, etc.
├── tests/ # Test suites
├── docs/ # Implementation docs
└── scripts/ # Build/deploy scripts
# Install dependencies
npm install
# Start complete development environment
npm run dev
# This command automatically:
# - Builds TypeScript code
# - Starts Docker services (PostgreSQL, Redis)
# - Runs database migrations
# - Starts MCP server# Run complete test cycle with zero footprint
npm run test
# This command automatically:
# - Starts test environment
# - Runs all tests with real implementations
# - Cleans up test resources
# For development testing
npm run test:watch
# Check coverage
npm run test:coverage- Basic project structure
- Docker Compose stack
- Database schema and migrations
- MCP client/server foundation
- Basic agent lifecycle
- Agent base classes
- MCP communication between agents
- Agent_Output.md status system
- Simple agent coordination
- Complete TDD cycle for one feature
- All 5 agents collaborating
- GitHub integration basics
- End-to-end demonstration
- TDD First: No production code without failing tests
- Real Implementations: No mocks in any tests
- Agent Coordination: Status-based communication working
- Demonstrable Progress: Each week shows working features
- Documentation: Keep implementation docs current
- After finishing successfully each issue on GitHub, you have to leave a comment of what you've done in short and check off the tasks mentioned in the issue.