원클릭으로
mb-map-codebase
Map an existing codebase into an as-is Memory Bank without inventing roadmap items.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Map an existing codebase into an as-is Memory Bank without inventing roadmap items.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Bootstrap a Memory Bank for a new or existing repository, then route into PRD-driven or brownfield workflows.
Optional Analysis before PRD: route vague ideas through facilitated brainstorming and a concise product brief without creating tasks.
Implementation handoff skill for one TASK-* using tier-selected protocol files, local gates, evidence, and explicit verification/sync handoff.
Turn a PRD into a traceable Memory Bank with product, requirements, epics, and features.
Clean up and maintain Memory Bank docs so they stay accurate and easy to load.
Set up deterministic commands, worktrees, and quality gates so agents can run safely in this repository.
| name | mb-map-codebase |
| description | Map an existing codebase into an as-is Memory Bank without inventing roadmap items. |
.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.