skills/mb-map-codebase/SKILL.md
Map an existing codebase into an as-is Memory Bank without inventing roadmap items.
npx skillsauth add mrvladd-d/memobank mb-map-codebaseInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
.memory-bank/..memory-bank/ skeleton exists (if not, run mb-init).Create:
.protocols/MAP-CODEBASE/plan.md.protocols/MAP-CODEBASE/progress.md.protocols/MAP-CODEBASE/verification.md (mapping completeness + evidence).protocols/MAP-CODEBASE/handoff.md.protocols/MAP-CODEBASE/decision-log.md (optional)Create:
.tasks/TASK-MB-MAP/Plan MUST include MB-SYNC (link .memory-bank/workflows/mb-sync.md).
Use ./agents/shared-repo-scanner.md as the base worker prompt.
Rules:
Suggested scopes:
Each subagent writes:
.tasks/TASK-MB-MAP/TASK-MB-MAP-S-0X-final-report-<code|docs>-01.mdBefore writing final docs:
.protocols/MAP-CODEBASE/progress.md with:
Using the fan-in view, create/update:
.memory-bank/product.md).memory-bank/architecture/).memory-bank/spec-index.md, .memory-bank/glossary.md, .memory-bank/invariants.md).memory-bank/runbooks/).memory-bank/contracts/).memory-bank/states/) when lifecycle/state rules are evident from code, workflows, or tests.memory-bank/testing/index.md).memory-bank/index.md)Use references/synthesis-checklist.md.
PRD-less rule (non-negotiable): if there is no
prd.md, you MUST NOT create or populate:
.memory-bank/epics/*.memory-bank/features/*.memory-bank/tasks/*.task.jsonwith real roadmap tasksEmpty skeleton files/folders are OK if they were created by bootstrap.
Mapping is documentation of the current system, not planning.
In overview docs, explicitly separate:
Once baseline MB exists:
prd.md describing what to change/add.mb-from-prd to plan the delta on top of baseline.Run mb-review in fresh context.
Follow .memory-bank/workflows/mb-sync.md and append a changelog entry.
.tasks/TASK-MB-MAP/ contains scoped reports..memory-bank/ describes the system “as-is” with evidence.testing
Verify one TASK-* against acceptance criteria and record reproducible evidence.
testing
Review a Memory Bank with fresh-context specialists and produce a prioritized fix list.
testing
Adversarial semantic verification for one TASK-* so teams can catch solutions that pass process checks but are still wrong in substance.
tools
Create the Memory Bank skeleton and project command proxies in the current repository.