ワンクリックで
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.