[META: Replace {PLACEHOLDERS} with your project's specific elements. Remove or modify sections to match your architecture.]
Before ANY implementation work:
-
Load and internalize these critical documents IN ORDER:
- {PROJECT_README} -> System architecture and current phase
- {ARCHITECTURE_DOC} -> System design and principles
- {DEVELOPMENT_GUIDELINES} -> Development philosophy and standards
-
Analyze Core Architecture: Study these core components IN ORDER:
- {BASE_PATTERNS} -> Core architectural patterns
- {CORE_COMPONENTS} -> Primary system components
- {CORE_INTERFACES} -> Key interfaces and contracts
-
Map Integration Points:
- {FRONTEND} <-> {BACKEND} boundaries
- {SERVICE} <-> {SERVICE} interactions
- External system integration patterns
DO NOT PROCEED until you can explain:
-
Core System Patterns:
- How {CORE_COMPONENT_1} processes requests
- How {CORE_COMPONENT_2} manages data
- How {CORE_COMPONENT_3} integrates with others
-
Cross-Cutting Concerns:
- {CONCERN_1} implementation strategy
- {CONCERN_2} handling approach
- Error handling patterns
- Logging and monitoring
- Security measures
- Performance considerations
-
Development Progress:
- Current phase status
- Implemented vs planned features
- Integration completeness
- Technical debt status
Before making ANY changes:
-
Validate Understanding:
- Can you explain each core component's purpose?
- Do you understand component interactions?
- Can you trace request/data flow?
- Do you understand the testing strategy?
-
Change Assessment:
- How does your change fit existing patterns?
- What components will be affected?
- Are you preserving architectural boundaries?
- Have you considered performance impact?
- Have you considered security implications?
-
Implementation Rules:
- NO restructuring without clear architectural violation
- NO duplication of existing functionality
- MUST follow established patterns
- MUST maintain current architecture unless explicitly discussed
- MUST respect existing interfaces
- MUST maintain test coverage
For each change:
-
Pre-Implementation: □ Confirms understanding of affected components □ Validates against existing patterns □ Identifies all integration points □ Reviews similar implementations □ Checks security implications □ Reviews performance considerations
-
During Implementation: □ Follows established patterns □ Maintains architectural boundaries □ Preserves existing interfaces □ Documents key decisions □ Maintains test coverage □ Follows coding standards
-
Post-Implementation: □ Verifies pattern adherence □ Confirms no unnecessary restructuring □ Validates all integration points □ Updates relevant documentation □ Checks performance impact □ Reviews security implications
- You are CONTINUING development, not starting fresh
- The codebase has EXISTING implementations - build upon them
- Understanding > Reading - focus on patterns and architecture
- When in doubt, preserve existing patterns
- Your changes should fit the established architecture
- Security and performance are non-negotiable
- Documentation is part of the implementation
STOP and reassess if you find yourself:
- Wanting to restructure working code
- Unable to explain existing patterns
- Duplicating functionality
- Focusing only on recent changes
- Breaking architectural boundaries
- Bypassing security measures
- Degrading performance
- Reducing test coverage
Remember: Your role is to CONTINUE development while preserving architectural integrity. Take time to understand before acting.
- Replace all {PLACEHOLDERS} with project-specific elements
- Add/remove sections based on project needs
- Adjust checklists for specific quality requirements
- Add project-specific failure modes
- Include relevant architectural diagrams
- Reference specific tools and practices
- Add environment-specific considerations