Skip to content

ugleelab/common-memory-bank

 
 

Repository files navigation

Common Memory Bank

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.

Overview

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

Basic usage

  1. Download the rules file or folder for the AI tool you want to use from this repository.
  2. Add that file to the rules folder for that tool (.cursor/rules or .roo/rules)
  3. Create a memory-bank/ folder in your project.
  4. Apply the rule files to the AI Agent tool.
  5. Follow the guide below to start Taskmaster.

Tool-specific application methods

Cursor

mkdir -p YOUR_PROJECT/.cursor/rules && 
cp .cursor/rules/*.* YOUR_PROJECT/.cursor/rules/

RooCode

mkdir -p YOUR_PROJECT/.roo/rules && 
cp .roo/rules/*.* YOUR_PROJECT/.roo/rules/

Cline

mkdir -p YOUR_PROJECT/.clinerules && 
cp .roo/rules/*.* YOUR_PROJECT/.clinerules/

Windsurf

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

  1. 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

  2. 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.
    
  3. 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
  4. 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

Common prompts

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?

Additional subrules

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.

Claude Code Commands

When using Claude Code, you can leverage the parallel task execution commands for enhanced development workflows:

Parallel Worktree Setup

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

Parallel Task Execution

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

License

None. Feel free to use it.

About

A collection of integrated memory bank rules for AI development tools.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published