This repository contains a collection of Memory Bank templates designed to enhance AI assistant interactions, particularly with Cline (Claude). These structured documentation templates enable AI assistants to maintain persistent context across conversations, leading to more effective assistance for complex software projects.
A Memory Bank is a structured set of documentation files that serves as a persistent knowledge base for AI assistants. After each conversation reset or new session, the assistant reads these files to regain context about your project.
Key benefits:
- Persistent Context: AI assistants can maintain project knowledge across sessions
- Structured Information: Organized documentation helps the assistant understand project architecture, goals, and progress
- Efficient Collaboration: Reduces repetitive explanations and increases productive work
- Improved Assistance: Better code suggestions, bug fixes, and architectural guidance
This repository includes two template collections:
Specialized templates for Go projects with:
- Go-specific best practices and coding standards
- Standard Go project structure guidance
- Error handling patterns for Go development
- Documentation patterns for Go packages and functions
Language-agnostic templates for any software project:
- Generic coding standards applicable to any language
- Flexible project organization principles
- Universal documentation patterns
- General error handling and security practices
Each template collection follows the same core structure:
flowchart TD
PB[projectbrief.md] --> PC[productContext.md]
PB --> SP[systemPatterns.md]
PB --> TC[techContext.md]
PC --> AC[activeContext.md]
SP --> AC
TC --> AC
AC --> P[progress.md]
prompt.md
- Main memory bank prompt explaining structure and Git workflow.clinerules
- Project rules, styling guidelines, and best practicesprojectbrief.md
- Core requirements and goalsproductContext.md
- Problem space and solution descriptionsystemPatterns.md
- Architecture and design patternstechContext.md
- Technology stack and setupactiveContext.md
- Current focus, recent changes, and next stepsprogress.md
- Feature progress tracking and roadmap
-
Choose a Template Set:
- Select
go-template/
for Go projects - Select
standard/
for other projects
- Select
-
Create Project Directory:
mkdir -p my-project/memory-bank
-
Copy Templates:
# For Go projects cp go-template/* my-project/memory-bank/ # For other projects cp standard/* my-project/memory-bank/
-
Customize Templates:
- Replace placeholder text with actual project details
- Add project-specific information to each file
- Remove any sections not relevant to your project
-
Reference in AI Conversations:
- Direct Cline (or another AI assistant) to read these files at the beginning of sessions
- Keep the files updated as your project evolves
- Keep Memory Bank files updated with project progress
- Document all major decisions and changes
- Commit Memory Bank updates alongside code changes
- Be specific and concrete rather than vague
- Include examples and code snippets when relevant
This repository is provided for public use. Feel free to:
- Fork and adapt these templates for your own projects
- Create your own specialized templates for different languages or frameworks
- Share improvements or additional template collections
Pull requests with improvements or new template collections are welcome.
These templates are available under the Apache License 2.0. See the LICENSE file for details.