memory-bank/intents/{intent}/units/{unit-name}/├── unit-brief.md # Unit definition and scope├── stories/ # User stories for this unit│ ├── story-001.md│ └── story-002.md└── bolts/ # Bolt execution records ├── bolt-001/ └── bolt-002/
# Unit: User Registration## PurposeEnable new users to create accounts in the system.## Scope### In Scope- Email/password registration- Email validation- Account creation in database- Welcome email### Out of Scope- Social login (separate unit)- Profile management (separate unit)## Dependencies- Email Service (external)- User Database (shared)## Interfaces### Inputs- Registration form data (email, password)### Outputs- User account created- Confirmation email sent## Stories- US-001: User Registration Form- US-002: Email Validation- US-003: Welcome Email
Units should be loosely coupled, but some dependencies are natural:
Circular dependencies between units indicate poor decomposition. If Unit A depends on Unit B and Unit B depends on Unit A, consider merging them or extracting the shared concern.