Refactor documentation standards and structure; consolidate clean code principles and service documentation requirements
This commit is contained in:
@@ -6,76 +6,26 @@ alwaysApply: true
|
||||
|
||||
# Documentation Standards
|
||||
|
||||
## README Requirements
|
||||
Every service and major component MUST have a comprehensive README.md file that includes:
|
||||
When working with documentation files, follow these standards:
|
||||
|
||||
### Service README Requirements
|
||||
- **Service Overview**: Purpose, port, and main functionality
|
||||
- **Architecture**: Key components and their responsibilities
|
||||
- **Features**: Core capabilities and integrations
|
||||
- **API Endpoints**: Available endpoints with descriptions
|
||||
- **Configuration**: Environment variables and settings
|
||||
- **Development**: Setup, running, and testing instructions
|
||||
- **Dependencies**: Required packages and versions
|
||||
- **Clean Code**: Reference to CLEAN_CODE.md file
|
||||
## Required Documentation Files
|
||||
- **Main README**: @README.md
|
||||
- **Project Structure**: @docs/structure.txt
|
||||
- **Progress Tracking**: @docs/progress.md
|
||||
- **Clean Code Guide**: @CLEAN_CODE.md
|
||||
|
||||
### Frontend README Requirements
|
||||
- **Component Structure**: Directory organization and component hierarchy
|
||||
- **Development Setup**: Installation and running instructions
|
||||
- **Architecture**: Clean code principles and patterns
|
||||
- **API Integration**: Service communication and error handling
|
||||
- **Offline Mode**: Resilience features and fallback behavior
|
||||
- **Testing**: Unit and integration testing guidelines
|
||||
## Service Documentation
|
||||
Each service MUST have:
|
||||
- **README.md**: Service overview, setup, and usage
|
||||
- **CLEAN_CODE.md**: Clean code implementation details
|
||||
|
||||
## Documentation Folder Structure
|
||||
The `docs/` folder MUST contain:
|
||||
## Frontend Documentation
|
||||
- **README.md**: @frontend/README.md
|
||||
- **Clean Code**: @frontend/CLEAN_CODE.md
|
||||
- **Resilience**: @frontend/RESILIENCE.md
|
||||
|
||||
### Required Files
|
||||
- **specs.md**: Project specifications and requirements
|
||||
- **structure.txt**: Complete project directory structure
|
||||
- **progress.md**: Development progress and completed tasks
|
||||
- **FRONTEND_REFACTORING.md**: Frontend clean code refactoring summary
|
||||
|
||||
### Documentation Updates
|
||||
- Update `structure.txt` when adding new files or directories
|
||||
- Update `progress.md` when completing tasks or milestones
|
||||
- Update service-specific READMEs when modifying functionality
|
||||
- Update main README.md when adding new features or services
|
||||
|
||||
## Clean Code Documentation
|
||||
Every service MUST have a CLEAN_CODE.md file that includes:
|
||||
|
||||
### Required Sections
|
||||
- **Architecture Overview**: Service structure and organization
|
||||
- **Clean Code Principles**: SRP, OCP, DIP, ISP applications
|
||||
- **Code Quality Improvements**: Before/after examples
|
||||
- **Best Practices**: Technology-specific guidelines
|
||||
- **Performance Optimizations**: Caching, async operations, etc.
|
||||
- **Testing Strategy**: Unit, integration, and E2E testing
|
||||
- **Code Review Checklist**: Quality assurance guidelines
|
||||
- **Future Improvements**: Enhancement roadmap
|
||||
|
||||
## Documentation Quality Checklist
|
||||
|
||||
### README Quality
|
||||
- [ ] Clear service overview and purpose
|
||||
- [ ] Complete setup and running instructions
|
||||
- [ ] API endpoint documentation
|
||||
- [ ] Configuration examples
|
||||
- [ ] Development guidelines
|
||||
- [ ] Links to related documentation
|
||||
|
||||
### Clean Code Documentation
|
||||
- [ ] Architecture overview included
|
||||
- [ ] Clean code principles explained
|
||||
- [ ] Code examples provided
|
||||
- [ ] Best practices documented
|
||||
- [ ] Testing strategies outlined
|
||||
- [ ] Future improvements listed
|
||||
|
||||
### Project Documentation
|
||||
- [ ] Structure.txt is up to date
|
||||
- [ ] Progress.md reflects current status
|
||||
- [ ] All services have README files
|
||||
- [ ] All services have CLEAN_CODE.md files
|
||||
- [ ] Main README.md is comprehensive
|
||||
## Documentation Updates
|
||||
- Update @docs/structure.txt when adding new files
|
||||
- Update @docs/progress.md when completing tasks
|
||||
- Update service READMEs when modifying functionality
|
||||
- Keep all documentation current and comprehensive
|
||||
Reference in New Issue
Block a user