project_root/
├── project_specification/
│ ├── project_overview.md
│ ├── architecture.md
│ └── milestones/
│ ├── milestone_1/
│ │ ├── milestone_spec.md
│ │ └── features/
│ │ ├── feature_1/
│ │ │ ├── contract.md
│ │ │ ├── validation.md
│ │ │ └── integration.md
│ │ └── feature_2/
│ │ └── ...
│ └── milestone_2/
│ └── ...
├── implementations/
│ ├── milestone_1/
│ │ ├── project_1/
│ │ │ ├── specs/
│ │ │ │ ├── project_spec.md
│ │ │ │ └── features/
│ │ │ │ ├── auth_contract.md
│ │ │ │ └── user_contract.md
│ │ │ └── src/
│ │ └── project_2/
│ │ └── ...
│ └── milestone_2/
│ └── ...
└── docs/
├── templates/
│ ├── feature_contract_template.md
│ ├── project_spec_template.md
│ └── validation_template.md
└── guidelines/
└── naming_conventions.md
milestone_[number]_[short_name].md
Example: milestone_1_authentication.md
[project_name]_spec.md
Example: user_service_spec.md
[feature_name]_contract.md
Example: jwt_auth_contract.md
[feature_name]_validation.md
Example: jwt_auth_validation.md
Please load these specification files for context:
1. Project Overview:
[Copy content from project_specification/project_overview.md]
2. Current Milestone:
[Copy content from project_specification/milestones/milestone_1/milestone_spec.md]
3. Feature Contract:
[Copy content from implementations/milestone_1/project_1/specs/features/auth_contract.md]
Working on: Authentication Feature
Contract Reference: implementations/milestone_1/project_1/specs/features/auth_contract.md
Please implement according to this contract:
[Paste relevant contract sections]
Integrating: Auth + User Features
Contracts:
1. Auth: [Paste key points]
2. User: [Paste key points]
Integration Requirements:
[Paste integration requirements]
# Feature: [Name]
Version: [x.y.z]
Last Updated: [YYYY-MM-DD]
## Interface Contract
### Input
- Type definitions
- Validation rules
### Output
- Return types
- Error states
## Dependencies
- List dependencies
## Validation Criteria
- Success conditions
- Test cases
# Project: [Name]
Milestone: [Number]
Status: [Planning/In Progress/Complete]
## Overview
- Purpose
- Scope
## Features
- List features
- Link to contracts
## Integration Points
- System interfaces
- Dependencies
Please load the following project context:
1. Project Overview:
[project_specification/project_overview.md contents]
2. Current Milestone:
[project_specification/milestones/milestone_1/milestone_spec.md contents]
Please confirm you've processed these documents and are ready for feature-level work.
Working on Feature: JWT Authentication
Reference Files:
1. Feature Contract: implementations/milestone_1/project_1/specs/features/jwt_auth_contract.md
[paste contract]
2. Integration Requirements: implementations/milestone_1/project_1/specs/features/integration.md
[paste relevant sections]
Please implement the JWT validation middleware according to these specifications.
Validate implementation against:
1. Feature Contract: [paste relevant sections]
2. Test Cases: [paste test requirements]
3. Integration Points: [paste integration requirements]
Current Implementation:
[paste code]
-
Document References
- Use relative paths in documentation
- Keep contracts atomic and focused
- Version control documentation
-
Context Management
- Load only relevant sections
- Reference parent documents when needed
- Keep feature contracts self-contained
-
Organization Tips
- Group related features
- Maintain clear hierarchy
- Use consistent naming
-
Version Control
- Track documentation changes
- Link commits to specs
- Update validation status