A collection of integrated memory bank rules for AI development tools. This repository provides memory bank rule files that can be used in various AI development tools such as Cursor, Windsurf, Cline, RooCode, Claude Code etc. It was specifically written for the purpose of applying memory bank while using TaskMaster AI.
Created by @shalomeir at Snippod Inc.
Inspired by the Cline Memory Bank, this project provides a rule file to help maintain context in a consistent way across different AI development tools.
In particular, it is designed to allow projects using TaskMaster AI to work seamlessly with both the memory bank and task-master
at the same time.
How to use common_memory_bank
rules
- Download the rules file or folder for the AI tool you want to use from this repository.
- Add that file to the rules folder for that tool (
.cursor/rules
or.roo/rules
) - Create a
memory-bank/
folder in your project. - Apply the rule files to the AI Agent tool.
- Follow the guide below to start Taskmaster.
mkdir -p YOUR_PROJECT/.cursor/rules &&
cp .cursor/rules/*.* YOUR_PROJECT/.cursor/rules/
mkdir -p YOUR_PROJECT/.roo/rules &&
cp .roo/rules/*.* YOUR_PROJECT/.roo/rules/
mkdir -p YOUR_PROJECT/.clinerules &&
cp .roo/rules/*.* YOUR_PROJECT/.clinerules/
mkdir -p YOUR_PROJECT/.windsurf/rules &&
cp .roo/rules/*.* YOUR_PROJECT/.windsurf/rules/
Using with TaskMaster AI
In a project that uses TaskMaster AI, set up as follows
-
Complete the TaskMaster AI setup.
npm install -g task-master-ai #Install globally task-master init
Setting LLM API keys in
.env
for the task-master -
Initialize the memory bank in the following way.
- #OPTION1: If you have a previously created PRD (Product Requirements Document), RFP (Request For Proposal) document, etc.
Switch to plan mode and initialize the memory-bank based on the attached document.
- #OPTION2: Create a project by talking to the agent with the project requirements you want to develop.
Let's switch to planning mode and start developing a project. Initialize the memory bank. And let's talk about what kind of project it is. Please reflect it in the memory bank according to the idea. Here are my ideas: {And describe what to make, purpose, target, etc...}
- #OPTION3: Create your own based on the form...
Switch to plan mode, and fill in the file form for the memory-bank initialization process. A simple example is good to have.
-
Ask Taskmaster to parse the PRD.
First, it asks the agent to create
scripts/prd.txt
based on the memory-bank if it hasn't already been created.- OPTION1: Use prompts
Please use the task-master parse-prd command to generate tasks from my PRD. The PRD is located at scripts/prd.txt.
- OPTION2:
task-master
CLI
task-master parse-prd scripts/prd.txt
-
Create a Task file for the Taskmaster.
- OPTION1: Use prompts
Please generate individual task files from tasks.json
- OPTION2:
task-master
CLI
task-master generate
Show me the full list of tasks.
What to do next?
Switch to ACT MODE, and start Task 3.
Task 3 is now complete. Please update its status.
Task 5 seems complex. Can you break it down into subtasks?
I'd like to implement task 4. Can you help me understand what needs to be done and how to approach it?
We also provide the following subrules files
Folder Path-Based Sub Rule Management System
Rules for creating and managing sub rules within the .cursor/rules/subrules/
folder.
It creates, manages, and references the context needed during the implementation process within a specific subfolder.
Summarize the current work and save it as a subrule.
Prompts for general development quality improvement. Feel free to modify this to your liking!
Role-based System: AI assumes AI agents with roles such as Product Manager, Design Engineer, FullStack Developer, Devops Engineer, and QA Engineer.
When using Claude Code, you can leverage the parallel task execution commands for enhanced development workflows:
project:init-parallel <FEATURE_NAME> <NUMBER_OF_WORKTREES>
Initializes multiple Git worktrees for parallel development. Creates separate workspace directories for concurrent feature development.
Example:
project:init-parallel auth-feature 3
project:exe-parallel <PLAN_TO_EXECUTE> <NUMBER_OF_PARALLEL_WORKTREES>
Executes parallel development tasks across multiple worktrees, enabling concurrent feature implementation and comparison.
These commands utilize the files:
.claude/commands/init-parallel.md
- Worktree initialization command.claude/commands/exe-parallel.md
- Parallel execution command
None. Feel free to use it.