godmode:memory-banking
Skill1 starsChanged 56 days agoMITView on GitHub
Generate and maintain a `.ctx/godmode/memory-bank/` directory that captures project context backed by source code. The memory bank is injected into prompts via lifecycle hooks and updated incrementally as work progresses. Use when starting a new project, onboarding to an unfamiliar codebase, or when context drift is detected.
In this repository76 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- godmode:agent-governanceSkill
- godmode:agent-improvement-loopSkill
- agents-skill-saveSkill
- baml-add-typesSkill
- godmode:brainstormSkill
- godmode:capSkill
- godmode:changelogSkill
- godmode:ci-fixSkill
- godmode:code-reviewSkill
- godmode:context-mapSkill
- godmode:cross-issueSkill
- godmode:crs-discoverSkill
- godmode:crs-hook-testingSkill
- godmode:crs-installSkill
- godmode:crs-propose-rulesSkill
- godmode:crs-validateSkill
- godmode:dead-codeSkill
- godmode:decomposeSkill
- godmode:dep-auditSkill
- godmode:dep-bumpSkill
- godmode:designSkill
- devloop-session-primerSkill
- godmode:dialecticSkill
- godmode:doc-maintainerSkill
- godmode:doc-reviewSkill
- godmode:doc-syncSkill
- godmode:doc-writerSkill
- doob-db-inspectorSkill
- doob-release-managerSkill
- godmode:doublecheckSkill
- dual-forge-pr-mergeSkill
- gh-bulk-issuesSkill
- godmode:health-scoreSkill
- godmode:ingestSkill
- godmode:introspectionSkill
- godmode:issue-triageSkill
- godmode:mergeSkill
- godmode:mini-context-graphSkill
- godmode:mistake-trackerSkill
- godmode:moaSkill
- notfiles-release-workflowSkill
- godmode:observability-as-infrastructureSkill
- godmode:parallel-agentsSkill
- godmode:pattern-learnerSkill
- planning-with-cruxSkill
- godmode:pr-authorSkill
- godmode:receiving-reviewSkill
- godmode:refactoringSkill
- godmode:release-notesSkill
- release-readiness-checkSkill
- remote-upstream-triageSkill
- repo-gap-backlogSkill
- godmode:rust-conventionsSkill
- rustqualSkill
- rustqual-workspaceSkill
- rust-release-workflow-authorSkill
- godmode:self-reflectSkill
- session-wrap-commit-pushSkill
- godmode:systematic-debuggingSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 13 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈13
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
After major architectural changes that invalidate existing context
- Distinctive: line 22
When the SessionStart hook reports stale memory-bank files
- Distinctive: line 47
When creating or fully regenerating the memory bank:
- Distinctive: line 74
Use when the user explicitly asks to "remember this", "save what we learned", "update memory", or asks for "capturing learnings."
- Distinctive: line 87
Add simple preferences to AGENTS files with one or two concrete bullet rules.
- Distinctive: line 88
Keep records minimal and non-obvious.
- Distinctive: line 92
If a behavior is a one-off preference, store it as a memory bullet.
- Distinctive: line 93
If a process is repeatable and decision-heavy, store it as a dedicated skill.
- Distinctive: line 94
Never store unverified claims.
- Distinctive: line 98
Prefer project file updates for preferences that depend on this repository.
- Distinctive: line 99
Use global memory only when the rule applies across projects.
- Distinctive: line 100
Prefer skill updates when behavior requires multiple ordered steps or quality gates.
- Very specific: line 104
Before handing off or committing memory-banking, run:
- Distinctive: line 112
only approved frontmatter keys are present.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Memory Banking
A persistent, source-backed context layer that lives at .ctx/godmode/memory-bank/ in any project.
It captures what the project is, how it works, what's done, and what's active — grounded in
actual code, not assumptions.
When to use
- First session in a new or unfamiliar project (no
.ctx/godmode/memory-bank/exists) - After major architectural changes that invalidate existing context
- When the SessionStart hook reports stale memory-bank files
- Explicitly via
/memory-bankingor "update the memory bank"
Directory structure
.ctx/godmode/memory-bank/
project-brief.md # what, who, done-criteria
product-context.md # why it exists, UX principles
tech-context.md # stack, deps, build commands, constraints
system-patterns.md # architecture, data flow, conventions
active-context.md # current focus, in-progress, decisions, questions
progress.md # what works, what's in progress, what's not startedThis skill creates and prefers .ctx/godmode/memory-bank/. godmode memory-banking init
scaffolds the directory with empty TODO-stubbed template files — actual content still
comes from following the generation procedure below, not from the CLI. godmode
memory-banking status, inject, and remind are also implemented (staleness check,
context injection, and a post-commit reminder, respectively). It still reads a legacy
.ctx/memory-banking/ directory as a fallback when the new path is absent, so older
projects on that layout keep working.
Generation procedure
When creating or fully regenerating the memory bank:
- Read sources — scan these files (skip missing ones silently):
README.md,CLAUDE.md,.claude.local.mdCargo.toml/package.json/pyproject.toml(root + workspace members)src/lib.rsorsrc/main.rs(top-level module docs and pub API).github/workflows/*.yml(CI structure)CHANGELOG.md,HISTORY.md.ctx/HANDOFF.*.yaml(recent session state)git log --oneline -20(recent commit history)
- Populate each file using the templates in
references/. Every claim must trace to a specific file path or git SHA. Do not invent features or state that isn't evidenced in code. - Write to
.ctx/godmode/memory-bank/— create the directory if absent. Overwrite existing files only when regenerating; for incremental updates, use the Edit tool on individual files.
Update rules
- active-context.md — update at every significant task transition (start, block, complete)
- progress.md — update when features are completed or new issues surface
- tech-context.md — update when deps change or build commands are modified
- system-patterns.md — update when architecture decisions are made
- project-brief.md / product-context.md — rarely change; update only on scope shifts
Conversation knowledge capture (remember)
Use when the user explicitly asks to "remember this", "save what we learned", "update memory", or asks for "capturing learnings."
- Re-scan the current conversation and list candidate learnings.
- Classify each item into one of these buckets:
- Best practices — patterns that worked, anti-patterns to avoid, and decision rationale.
- Quality standards — criteria for good code, docs, processes, or outputs.
- Operational knowledge — architecture decisions, workflows, tools, and reusable conventions.
- For each best practice or decision, identify where to store it:
- Global memory (
~/.deepagents/agent/AGENTS.md) for universal preferences. - Project memory (
.deepagents/AGENTS.md) for repo-specific rules. - Reusable skill (
~/.deepagents/agent/skills/<name>/SKILL.md) for multi-step methods.
- Global memory (
- Capture reusable workflows as skills when they include repeated methodology.
- Add simple preferences to AGENTS files with one or two concrete bullet rules.
- Keep records minimal and non-obvious; avoid dumping conversational noise.
Memory storage decision rules
- If a behavior is a one-off preference, store it as a memory bullet.
- If a process is repeatable and decision-heavy, store it as a dedicated skill.
- Never store unverified claims; prefer concrete paths, commands, and evidence from files.
Memory-first file convention
- Prefer project file updates for preferences that depend on this repository.
- Use global memory only when the rule applies across projects.
- Prefer skill updates when behavior requires multiple ordered steps or quality gates.
Quick validation
Before handing off or committing memory-banking, run:
rust-script skills/memory-banking/helpers/quick_validate.rs skills/memory-banking/SKILL.md
This Rust-script validator checks:
- frontmatter starts and closes correctly;
- required keys (
name,description) exist; - only approved frontmatter keys are present;
- empty, long, or malformed fields are rejected.
For stronger checks, run:
agentlint --difficulty hard skills/memory-banking/SKILL.md
This uses plugins/agentlint.memory-banking.toml if the custom plugin is present.
Staleness detection
The SessionStart hook checks file modification times. If any memory-bank file is older than the most recent 5 commits, it prints a staleness warning. The agent should then read the stale file(s) and update them based on recent changes.
Integration with other skills
godmode:context-mapcan feed intosystem-patterns.mdgodmode:task-driven-developmenttransitions updateactive-context.mdgodmode:verification-before-completionshould check memory-banking is current before shipping
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

