Project Memory
Maintain institutional knowledge across your project lifecycle and team members.
When to Use This Skill
Use when:
- Setting up project memory system for first time
- Documenting architectural decisions and rationale
- Tracking bugs, solutions, and prevention measures
- Maintaining key project facts and configuration
- Logging completed work and milestones
- Configuring AGENT.md with memory protocols
- Quarterly review and refresh of project knowledge
Core Capabilities
- Memory Infrastructure - Create docs/project_notes/ structure
- Bugs Management - Document bugs, root causes, solutions, prevention
- Decision Records - Architectural Decision Records (ADRs) with context
- Key Facts - Configuration, URLs, ports, credentials pointers
- Work Tracking - Log completed tickets and milestones
- Agent Integration - Configure AGENT.md for memory-aware behavior
- Knowledge Maintenance - Quarterly refresh and pruning
Memory System Structure
Directory Layout
docs/
└── project_notes/
├── bugs.md # 50-100 bug entries, solutions
├── decisions.md # 5-15 architectural decisions
├── key_facts.md # Configuration, URLs, facts
└── tracks.md # Work log with ticket references
Why docs/project_notes/?
- Standard engineering organization (not AI-specific)
- Clear purpose for all team members
- Coexists with other documentation
File Purposes
| File |
Content |
Audience |
Refresh Rate |
| bugs.md |
Bug descriptions, root causes, solutions |
Developers |
Continuous |
| decisions.md |
Architectural decisions with rationale |
Architects, leads |
Quarterly |
| key_facts.md |
Configuration, URLs, ports, facts |
All |
Monthly |
| tracks.md |
Work log, completed tickets |
PM, team |
Weekly |
Reference Guide
Project Memory Setup & Management
Use when: Creating or maintaining project memory
Covers:
- Initial memory setup and directory structure
- Template content for each memory file
- Configuring AGENT.md with memory protocols
- Searching and updating memory files
- Quarterly refresh process
- Cross-referencing patterns
Quick Start
For New Projects
- Create
docs/project_notes/ directory
- Create 4 memory files (bugs.md, decisions.md, key_facts.md, tracks.md)
- Add templates from reference guide
- Configure
AGENT.md with memory section
- Start documenting as you work
For Existing Projects
- Review existing documentation
- Consolidate into 4 memory files
- Add AGENT.md configuration
- Set quarterly refresh reminders
- Migrate as you encounter issues
Memory File Content
bugs.md Structure
### YYYY-MM-DD - Brief Description
- **Issue**: What went wrong
- **Root Cause**: Why it happened
- **Solution**: How it was fixed
- **Prevention**: How to avoid in future
Example:
### 2025-01-25 - Database Connection Timeout
- **Issue**: API requests timing out after 30s
- **Root Cause**: Connection pool default timeout was 30s, too low
- **Solution**: Increased timeout to 300s, added connection validation
- **Prevention**: Monitor connection pool metrics in staging
decisions.md Structure (ADR Format)
### ADR-XXX: Decision Title (YYYY-MM-DD)
**Context**: Why decision was needed
**Decision**: What was chosen
**Alternatives**: What was rejected and why
**Consequences**: Benefits and trade-offs
key_facts.md Structure
## Category Name
- **Item**: Value
- **URL**: Link
- **Port**: Number
- **Config**: Setting
## Database
- Host: prod-db.aws.region
- Port: 5432
- Failover: automatic
## Local Development
- Database: Docker (PostgreSQL)
- Port: 5432
- URL: localhost:5432
tracks.md Structure
### YYYY-MM-DD - TICKET-ID: Brief Title
- **Status**: Completed / In Progress / Blocked
- **Description**: What was done
- **URL**: Link to ticket/PR
- **Notes**: Key learnings or blockers
Integration with AGENT.md
Add memory section to AGENT.md:
## Project Memory System
This project maintains institutional knowledge in docs/project_notes/.
### Memory-Aware Protocols
- Before proposing architectural changes: Check decisions.md
- When encountering errors: Search bugs.md for solutions
- When looking up configuration: Check key_facts.md
- When completing work: Log in tracks.md
Best Practices
- ✅ Document as you go: Don't wait until end of week
- ✅ Include rationale: Why, not just what
- ✅ Use dates: Temporal context matters
- ✅ Link references: Cross-reference related entries
- ✅ Never store secrets: Use secure vaults, document access
- ✅ Quarterly refresh: Keep information current
- ✅ Human-readable: Write for team members reading later
Common Patterns
Bug Discovery Workflow
- Encounter bug
- Search bugs.md for similar issues
- If found, apply known solution
- If new, investigate and document
- Log in bugs.md with solution and prevention
Decision Making Workflow
- Face architectural decision
- Check decisions.md for related decisions
- Consider alternatives
- Document in ADR format
- Reference from code/documentation
Configuration Reference
- Need to look up config
- Check key_facts.md
- If not found, document
- Share with team
- Link from AGENT.md
Quarterly Maintenance
Every quarter:
- bugs.md - Archive solved bugs, update documentation
- decisions.md - Review if decisions still valid, update if needed
- key_facts.md - Verify URLs, ports, facts still current
- tracks.md - Archive previous quarter, start fresh
Success Metrics
Good project memory:
- ✅ Team refers to decisions.md before proposing changes
- ✅ Similar bugs don't get re-discovered
- ✅ New team members find onboarding info
- ✅ Configuration is never lost or repeated
- ✅ Work completed is documented for reference
Dependencies
- context-engineer - For context capture and preservation
- state-manager - For state and configuration management
1---2name: proj-memory3description: Set up and maintain structured project memory systems that track bugs with solutions, architectural decisions, key project facts, and work history. Use when setting up new projects, documenting decisions, tracking bugs and solutions, or maintaining project knowledge across sessions.4---56# Project Memory78Maintain institutional knowledge across your project lifecycle and team members.910## When to Use This Skill1112Use when:1314- Setting up project memory system for first time15- Documenting architectural decisions and rationale16- Tracking bugs, solutions, and prevention measures17- Maintaining key project facts and configuration18- Logging completed work and milestones19- Configuring AGENT.md with memory protocols20- Quarterly review and refresh of project knowledge2122---2324## Core Capabilities25261. **Memory Infrastructure** - Create docs/project_notes/ structure272. **Bugs Management** - Document bugs, root causes, solutions, prevention283. **Decision Records** - Architectural Decision Records (ADRs) with context294. **Key Facts** - Configuration, URLs, ports, credentials pointers305. **Work Tracking** - Log completed tickets and milestones316. **Agent Integration** - Configure AGENT.md for memory-aware behavior327. **Knowledge Maintenance** - Quarterly refresh and pruning3334---3536## Memory System Structure3738### Directory Layout3940```41docs/42└── project_notes/43 ├── bugs.md # 50-100 bug entries, solutions44 ├── decisions.md # 5-15 architectural decisions45 ├── key_facts.md # Configuration, URLs, facts46 └── tracks.md # Work log with ticket references47```4849**Why `docs/project_notes/`?**5051- Standard engineering organization (not AI-specific)52- Clear purpose for all team members53- Coexists with other documentation5455### File Purposes5657| File | Content | Audience | Refresh Rate |58| :--- | :------- | :-------- | :----------- |59| bugs.md | Bug descriptions, root causes, solutions | Developers | Continuous |60| decisions.md | Architectural decisions with rationale | Architects, leads | Quarterly |61| key_facts.md | Configuration, URLs, ports, facts | All | Monthly |62| tracks.md | Work log, completed tickets | PM, team | Weekly |6364---6566## Reference Guide6768### [Project Memory Setup & Management](references/memory-setup.md)6970**Use when:** Creating or maintaining project memory7172Covers:7374- Initial memory setup and directory structure75- Template content for each memory file76- Configuring AGENT.md with memory protocols77- Searching and updating memory files78- Quarterly refresh process79- Cross-referencing patterns8081---8283## Quick Start8485### For New Projects86871. Create `docs/project_notes/` directory882. Create 4 memory files (bugs.md, decisions.md, key_facts.md, tracks.md)893. Add templates from reference guide904. Configure `AGENT.md` with memory section915. Start documenting as you work9293### For Existing Projects94951. Review existing documentation962. Consolidate into 4 memory files973. Add AGENT.md configuration984. Set quarterly refresh reminders995. Migrate as you encounter issues100101---102103## Memory File Content104105### bugs.md Structure106107```markdown108### YYYY-MM-DD - Brief Description109- **Issue**: What went wrong110- **Root Cause**: Why it happened111- **Solution**: How it was fixed112- **Prevention**: How to avoid in future113```114115Example:116117```markdown118### 2025-01-25 - Database Connection Timeout119- **Issue**: API requests timing out after 30s120- **Root Cause**: Connection pool default timeout was 30s, too low121- **Solution**: Increased timeout to 300s, added connection validation122- **Prevention**: Monitor connection pool metrics in staging123```124125### decisions.md Structure (ADR Format)126127```markdown128### ADR-XXX: Decision Title (YYYY-MM-DD)129130**Context**: Why decision was needed131132**Decision**: What was chosen133134**Alternatives**: What was rejected and why135136**Consequences**: Benefits and trade-offs137```138139### key_facts.md Structure140141```markdown142## Category Name143- **Item**: Value144- **URL**: Link145- **Port**: Number146- **Config**: Setting147148## Database149- Host: prod-db.aws.region150- Port: 5432151- Failover: automatic152153## Local Development154- Database: Docker (PostgreSQL)155- Port: 5432156- URL: localhost:5432157```158159### tracks.md Structure160161```markdown162### YYYY-MM-DD - TICKET-ID: Brief Title163- **Status**: Completed / In Progress / Blocked164- **Description**: What was done165- **URL**: Link to ticket/PR166- **Notes**: Key learnings or blockers167```168169---170171## Integration with AGENT.md172173Add memory section to `AGENT.md`:174175```markdown176## Project Memory System177This project maintains institutional knowledge in docs/project_notes/.178179### Memory-Aware Protocols180- Before proposing architectural changes: Check decisions.md181- When encountering errors: Search bugs.md for solutions182- When looking up configuration: Check key_facts.md183- When completing work: Log in tracks.md184```185186---187188## Best Practices189190- ✅ **Document as you go**: Don't wait until end of week191- ✅ **Include rationale**: Why, not just what192- ✅ **Use dates**: Temporal context matters193- ✅ **Link references**: Cross-reference related entries194- ✅ **Never store secrets**: Use secure vaults, document access195- ✅ **Quarterly refresh**: Keep information current196- ✅ **Human-readable**: Write for team members reading later197198---199200## Common Patterns201202### Bug Discovery Workflow2032041. Encounter bug2052. Search bugs.md for similar issues2063. If found, apply known solution2074. If new, investigate and document2085. Log in bugs.md with solution and prevention209210### Decision Making Workflow2112121. Face architectural decision2132. Check decisions.md for related decisions2143. Consider alternatives2154. Document in ADR format2165. Reference from code/documentation217218### Configuration Reference2192201. Need to look up config2212. Check key_facts.md2223. If not found, document2234. Share with team2245. Link from AGENT.md225226---227228## Quarterly Maintenance229230Every quarter:2312321. **bugs.md** - Archive solved bugs, update documentation2332. **decisions.md** - Review if decisions still valid, update if needed2343. **key_facts.md** - Verify URLs, ports, facts still current2354. **tracks.md** - Archive previous quarter, start fresh236237---238239## Success Metrics240241Good project memory:242243- ✅ Team refers to decisions.md before proposing changes244- ✅ Similar bugs don't get re-discovered245- ✅ New team members find onboarding info246- ✅ Configuration is never lost or repeated247- ✅ Work completed is documented for reference248249---250251## Dependencies252253- **context-engineer** - For context capture and preservation254- **state-manager** - For state and configuration management