An AI-first development repository for building software through PRD-driven documentation, reusable system constraints, and staged specification generation. The project focuses on turning a single PRD into an executable document system that can later drive coding, testing, and acceptance.
CodeTrace-AI explores a modular workflow in which AI agents collaborate through explicit rules, skills, commands, memory, and staged specifications. The repository emphasizes:
- PRD-Driven Planning: Start from one PRD and derive the document system from actual project boundaries
- Specification-Driven Development: Build global, domain, testing, and acceptance documents before implementation
- Reusable AI Constraints: Keep system prompts, rules, commands, skills, and memory under version control
- Resumable Workflow: Track progress so work can continue from the latest completed document task
- Product Requirements Document (PRD)
- AI Development Workflow
- PRD to Coding Orchestration
- PRD-Pipeline Interface
- Document System Todo Plan
This repository is designed for AI-assisted development where the document system comes first. The current setup focuses on planning and generating the specification tree from the PRD before moving into code.
- Access to AI development tools that can read repository files and follow structured instructions
- A project PRD as the primary source of truth
- Basic familiarity with staged specification workflows
- Read the PRD and Workflow.
- Use
docs/PRD.md,docs/Workflow.md, and.codex/modules/PRD-Pipeline/docs/together to understand the intended document pipeline. - Use the reusable assets under
.codex/modules/PRD-Pipeline/:agents/for system-prompt rolesskills/for task-specific generation workflowscommands/for reusable task entry pointsrules/for repository constraintsmemory/for stable project contextdocs/for internal orchestration and planning documents
- Generate
specs/ref/,specs/global/,specs/domains/,specs/testing/, andspecs/acceptance/in stages. - Use
/prd-pipelinewhen you want the full document workflow to run end to end with checkpoint-based resume.
CodeTrace-AI/
├── .codex/
│ └── modules/
│ └── PRD-Pipeline/
│ ├── agents/
│ ├── commands/
│ ├── docs/
│ ├── memory/
│ ├── rules/
│ └── skills/
├── docs/
│ ├── PRD.md # Product Requirements Document
│ ├── Workflow.md # High-level workflow reference
├── LICENSE
└── README.md
The repository currently includes the document-system foundation for:
- PRD boundary analysis
- document-tree planning
- Phase 0 reference generation
- global specification generation
- domain planning and one-domain-at-a-time expansion
- testing-plan generation
- acceptance-criteria generation
Implementation code generation is intentionally downstream from these document phases.
Contributions should preserve the AI-first workflow. Please:
- Follow the rules in
.codex/modules/PRD-Pipeline/rules/. - Keep reusable system-constraint files in English unless there is a documented exception.
- Use a task-appropriate branch instead of reusing an unrelated branch.
- Update progress-tracking documents when document-generation work is completed.
This project is licensed under the MIT License - see the LICENSE file for details.
- Inspired by modular AI-assisted development practices
- Built to demonstrate how PRD-driven document systems can structure later coding work