create-memory-bank

create-memory-bank is a cursor rule for Cursor from mehmetdemirci/comb-ai. It costs 36 tokens per session (694 once invoked), scanned A, original, MIT.

A project rule for creating a COMB memory bank, a structured set of files that stores a new project's goals, context, technology details, and architecture.

In plain words
What is it for?
Use it when starting a new project and needing to collect its name, technical areas, technology choices, phase, and supporting documentation.
Why use it?
It gives a new project a shared written reference instead of leaving important context scattered across conversations.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc). Also seen: mentions Cursor.

Good fit Use it when starting a new project and needing to collect its name, technical areas, technology choices, phase, and supporting documentation.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/mehmetdemirci/comb-ai/create-memory-bank
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/mehmetdemirci/comb-ai

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for create-memory-bank

README.md
[![agentmods](https://agentmods.dev/badge/rules/mehmetdemirci/comb-ai/create-memory-bank/github.svg)](https://agentmods.dev/rules/mehmetdemirci/comb-ai/create-memory-bank)
Your own site
<a href="https://agentmods.dev/rules/mehmetdemirci/comb-ai/create-memory-bank"><img src="https://agentmods.dev/badge/rules/mehmetdemirci/comb-ai/create-memory-bank/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for create-memory-bank

Your own site · 80×15
<a href="https://agentmods.dev/rules/mehmetdemirci/comb-ai/create-memory-bank"><img src="https://agentmods.dev/badge/rules/mehmetdemirci/comb-ai/create-memory-bank.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 694 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00036 $0.00694
Opus 5 $0.00018 $0.00347
Sonnet 5 $0.00007 $0.00139
Haiku 4.5 $0.00004 $0.00069

Measured 9d ago against content hash ce8947653d2d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

create-memory-bank scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

templates/skills/cursor/create-memory-bank.mdc · 82 lines

How it starts

The opening of the file, as written. The whole thing — 82 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Create Memory Bank — Cursor Rule (Greenfield)

Trigger: User says "create memory bank", "initialize memory bank", or "setup memory bank". This rule is NOT always-apply — it activates only when Cursor detects a matching request.

For existing projects with code: Use "adopt memory bank" instead — it analyzes the codebase and pre-fills memory bank files with real data.

When Triggered

Step 1 — Gather project information

Ask the user:

  1. Project name: What is the project called?
  2. Technical domains: What are the main development areas? (e.g., backend, frontend, infrastructure)
  3. Tech stack per domain: What technologies are used?
  4. Current phase: Kickoff, active development, or maintenance?

Step 2 — Create directory structure

memory-bank/
├── INDEX.md
├── core/
│   ├── projectbrief.md
│   ├── productContext.md
│   ├── active-context.md
│   └── sprint-tracker.md
├── tech/
│   └── (one file per domain)
└── arch/
    ├── patterns-overview.md
    └── decisions-summary.md

Step 3 — Create project root files

  1. memory-bank-protocol.md — COMB methodology (read memory-bank-protocol.md for template)
  2. project-rules.md — Project rules with dynamic zone (read project-rules.md for template)
  3. .cursor/rules/memory-bank.mdc — This file's companion: auto-loader wrapper

Step 4 — Fill INDEX.md

The INDEX is the most critical file. It must contain:

  • Project overview (name, team, version, status)
  • Smart reading strategy decision tree (customized to domains)
  • Cache-aware reading order (static before dynamic)
  • File map with line counts
  • Key technologies summary

Step 5 — Create core and domain files

  • core/projectbrief.md — Project scope, goals, constraints
  • core/productContext.md — Product vision, target users
  • core/active-context.md — Current phase and first tasks
  • core/sprint-tracker.md — Sprint 1 if applicable
  • tech/{domain}-stack.md — One per domain with tech choices and patterns
  • arch/patterns-overview.md — Initial architecture patterns
  • arch/decisions-summary.md — ADR-001: initial architecture

Read the full file on GitHub · 82 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 82 lines · 36 tokens per session scan A ce8947653d2d

Subscribe to this mod's changes

create-memory-bank is a cursor rule published in the GitHub repository mehmetdemirci/comb-ai (13 stars, last pushed 6mo ago), licensed MIT. It adds 36 tokens to every session and 694 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.