بنقرة واحدة
mb-init
Create the Memory Bank skeleton and project command proxies in the current repository.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Create the Memory Bank skeleton and project command proxies in the current repository.
التثبيت باستخدام 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-init |
| description | Create the Memory Bank skeleton and project command proxies in the current repository. |
.memory-bank/, .tasks/, .protocols/, AGENTS.md, and generated command stubs.Create a consistent baseline so agents can work with repo-local context instead of ad-hoc prompts.
Create (if missing):
.memory-bank/ with subfolders (see ./references/shared-structure-template.md).tasks/.protocols/From templates, create:
AGENTS.mdCLAUDE.md → symlink/copy to AGENTS.md.memory-bank/index.md.memory-bank/constitution.md.memory-bank/mbb/index.md.memory-bank/spec-index.md.memory-bank/glossary.md.memory-bank/invariants.md.memory-bank/product.md.memory-bank/requirements.md.memory-bank/schemas/task.schema.json.memory-bank/tasks/index.json.memory-bank/testing/index.md.memory-bank/skills/index.mdFresh PRD-less bootstrap must not create .memory-bank/features/FT-001-*.md, .memory-bank/tasks/TASK-001.task.json, or any other fake roadmap artifact. .memory-bank/tasks/index.json starts as { "version": 1, "tasks": [] }; /write-prd creates a clarified PRD, /spec-init prepares only the lightweight SDD route map, /prd creates real features, mandatory /spec-design creates a minimal or full backbone gate, /spec-improve FT-<NNN> completes or marks unnecessary feature design, and /prd-to-tasks FT-<NNN> creates real TASK-*.task.json records after that. /clarify-feature FT-<NNN> is optional for explicitly pending/blocked features.
Also create optional folders that support the richer normative layer without making it mandatory:
.memory-bank/contracts/.memory-bank/states/.memory-bank/runbooks/So links from AGENTS.md are not broken, create minimal docs under .memory-bank/commands/.
Use ./references/shared-commands-*.md:
mb.mdanalysis.mdbrainstorm.mdbrief.mdconstitution.mdwrite-prd.mdspec-init.mdprd.mdspec-design.mdspec-improve.mdspec-auto.mdclarify-feature.mdprd-to-tasks.mdexecute.mdverify.mdred-verify.mdautopilot.mdautonomous.mdmap-codebase.mddiscuss.mdadd-tests.mdreview.mdfind-skills.mdCreate thin proxy skills for each command so they work natively across runtimes:
.claude/skills/<name>/SKILL.md → Claude Code + OpenCode.agents/skills/<name>/SKILL.md → Codex CLI + OpenCodeEach proxy contains: Read and follow the instructions in .memory-bank/commands/<name>.md.
This registers commands natively: /mb in Claude Code, $mb in Codex, /mb in OpenCode.
The init-mb.js script creates both sets automatically.
Agents must read .memory-bank/constitution.md early during priming. It records project governing principles and does not replace .memory-bank/invariants.md, .memory-bank/contracts/*, or .memory-bank/spec-index.md; use /constitution only to create or amend those principles.
.memory-bank/**/*.md must have frontmatter (description, status).If Node.js is available, you may run the helper script (safe: doesn’t overwrite existing files):
# Option A: copy ./scripts/shared-init-mb.js into your repo then run:
node scripts/init-mb.js
If you don’t want a script, just create the files manually using the templates.
AGENTS.md exists and points to .memory-bank/index.md.CLAUDE.md exists and mirrors AGENTS.md..memory-bank/ has the seeded docs..memory-bank/constitution.md exists as the governing-principles doc and /constitution is available in .memory-bank/commands/..memory-bank/tasks/index.json and .memory-bank/schemas/task.schema.json exist; task state is JSON-backed..memory-bank/tasks/index.json has an empty tasks array in a PRD-less skeleton./write-prd, /spec-init, /prd, mandatory /spec-design, /spec-improve FT-<NNN>, then /prd-to-tasks FT-<NNN>..memory-bank/tasks/TASK-001.task.json is created by bootstrap.tier: T0|T1|T2|T3; routing is only through task.tier, not the removed risk / risk.level model..memory-bank/commands/ has stub command docs..tasks/ and .protocols/ exist.