Review the session, capture learnings, and update project documentation
Captures session learnings and updates project documentation with reusable patterns and solutions.
/plugin marketplace add theinfinityguides/software-assembly-line/plugin install software-assembly-line@software-assembly-line[--story-id <ID>] [--session]Review the current session, capture learnings, and update project documentation.
/sal:compound [--story-id <STORY_ID>] [--session]
# Compound learnings from current story
/sal:compound --story-id STORY-456
# Review entire session and extract learnings
/sal:compound --session
# Compound all recent completed stories
/sal:compound --all --since "3 days ago"
| Argument | Required | Description |
|---|---|---|
--story-id | No | Specific story to compound from |
--session | No | Review current Claude Code session |
--all | No | Process all recent completed stories |
Each unit of engineering work should make subsequent units easier—not harder.
This command ensures that learnings from each implementation cycle feed back into the system.
Collect information from:
Run compound agents in parallel:
effect-pattern-documenter - Capture Effect patternstype-error-solution-documenter - Document type error solutionslayer-integration-documenter - Cross-package patternsWrite learnings to:
docs/solutions/
├── effect-patterns/
├── type-errors/
└── integrations/
Suggest updates to project CLAUDE.md for fundamental patterns.
## Compound Complete
### Story
STORY-456: [api] Add subscription status endpoint
### Learnings Captured
#### Effect Patterns (1 new)
- **cached-service-pattern.md** - Service with cached dependencies
#### Type Error Solutions (1 new)
- **service-requirement-error.md** - Missing layer in composition
### Documentation Updated
- [x] docs/solutions/effect-patterns/cached-service-pattern.md
- [x] docs/solutions/type-errors/service-requirement-error.md
- [x] Linear story STORY-456 updated with notes
### Stats
- Session duration: 45 minutes
- Files changed: 8
- Tests added: 12
- Learnings captured: 2
[SAL:COMPOUND:START] {"storyId": "STORY-456", "source": "story"}
[SAL:COMPOUND:LEARNING] {"type": "effect-pattern", "name": "cached-service"}
[SAL:COMPOUND:COMPLETE] {"patterns": 1, "errors": 1, "integrations": 0}