Skip to main content
Basic Memory excels at creating living documentation that evolves with your project. By co-locating documentation with code and using structured semantic patterns, you can maintain comprehensive project knowledge that stays current and useful.

Getting Started

Setting Up Project Documentation

Create a Basic Memory project within your codebase:

Example Folder Structure

Documentation Patterns

System Architecture Documentation

Document your system’s architecture with observations and relations:

API Documentation

Document APIs with practical examples and technical details:

Architecture Decision Records (ADRs)

Use Basic Memory’s semantic format for structured decision documentation:

Development Workflows

Daily Documentation Practice

Morning startup:
During development:
End of sprint:

Code Review Integration

Before creating PR:
During code review:
  • Reference specific architecture decisions: memory://decisions/database-choice
  • Link to relevant patterns: memory://patterns/error-handling
  • Check if new patterns need documentation

Team Knowledge Sharing

Onboarding new developers:

Advanced Patterns

Living Documentation

Keep documentation synchronized with code changes:

Cross-Project Documentation

Link related concepts across projects:

Integration with Git

Use git hooks to maintain documentation:

Best Practices

Documentation Standards

  1. Use semantic patterns - Employ observations with categories and tags
  2. Create rich relations - Link related concepts extensively
  3. Include code examples - Show practical implementations
  4. Document decisions - Capture the “why” not just the “what”
  5. Keep it current - Update docs with code changes

Organization Tips

  1. Consistent naming - Use kebab-case for file names
  2. Clear hierarchy - Organize by functional areas
  3. Template usage - Create templates for common document types
  4. Regular reviews - Schedule documentation review sessions
  5. Git integration - Version control documentation with code

Team Collaboration

  1. Shared vocabulary - Use consistent terminology across docs
  2. Review process - Include documentation in code reviews
  3. Onboarding guides - Create clear paths for new team members
  4. Knowledge sharing - Regular documentation sessions
  5. Tool training - Ensure team knows Basic Memory patterns

Common Document Types

Templates

API Endpoint Template:
Architecture Decision Template:

Troubleshooting

Common Issues

Solutions:
  • Implement git hooks to check documentation updates
  • Include documentation updates in pull request templates
  • Schedule regular documentation review sessions
  • Use Basic Memory search to find related docs when changing code
Solutions:
  • Create clear documentation templates and examples
  • Include documentation quality in code review criteria
  • Provide team training on Basic Memory semantic patterns
  • Make documentation updates part of definition of done
Solutions:
  • Use consistent tagging strategy across all documents
  • Create overview documents that link to detailed topics
  • Use Basic Memory search with specific tag filters
  • Maintain an index of key documents for quick reference

Next Steps

Architecture Decisions

Learn to document technical decisions effectively

Note Taking

Master note-taking techniques for development

Knowledge Format

Understand Basic Memory’s semantic patterns

CLI Reference

Master command line tools for documentation