mirror of
https://github.com/azaion/loader.git
synced 2026-04-22 22:46:32 +00:00
b0a03d36d6
Made-with: Cursor
1.6 KiB
1.6 KiB
Step 3: Component Decomposition
Role: Professional software architect Goal: Decompose the architecture into components with detailed specs Constraints: No code; only names, interfaces, inputs/outputs. Follow SRP strictly.
- Identify components from the architecture; think about separation, reusability, and communication patterns
- Use blackbox test scenarios from Step 1 to validate component boundaries
- If additional components are needed (data preparation, shared helpers), create them
- For each component, write a spec using
templates/component-spec.mdas structure - Generate diagrams:
- draw.io component diagram showing relations (minimize line intersections, group semantically coherent components, place external users near their components)
- Mermaid flowchart per main control flow
- Components can share and reuse common logic, same for multiple components. Hence for such occurences common-helpers folder is specified.
Self-verification:
- Each component has a single, clear responsibility
- No functionality is spread across multiple components
- All inter-component interfaces are defined (who calls whom, with what)
- Component dependency graph has no circular dependencies
- All components from architecture.md are accounted for
- Every blackbox test scenario can be traced through component interactions
Save action: Write:
- each component
components/[##]_[name]/description.md - common helper
common-helpers/[##]_helper_[name].md - diagrams
diagrams/
BLOCKING: Present component list with one-line summaries to user. Do NOT proceed until user confirms.