skills/cold-start/SKILL.md
Bootstrap a Memory Bank for a new or existing repository, then route into PRD-driven or brownfield workflows.
npx skillsauth add mrvladd-d/memobank cold-startInstall 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.
Note:
cold-startis the package skill for all-in-one bootstrap. Do not confuse it with the generated project command/cold-start: that command is a lightweight router used after skeleton creation inside a target repo. For modular usage, prefer individual skills:mb-init(skeleton),mb-analysis(optional idea discovery),mb-from-prd(greenfield),mb-map-codebase(brownfield),mb-review(review),mb-execute(implementation),mb-verify(UAT),mb-red-verify(semantic adversarial verification).
prd.md / requirements text or an existing codebase..memory-bank/, .tasks/, .protocols/, agent entry files, and the next step for greenfield or brownfield work.Supported scenarios:
/analysis, /brainstorm, and /brief./brief, then /constitution only if project principles are not already ratified|partial, before /write-prd.prd.md or requirements text, but no code yet..tasks/ is runtime memory (НЕ Memory Bank).tasks/TASK-XXX/.After completing any meaningful unit of work:
AGENTS.md (canonical, short, ~100 lines)CLAUDE.md → symlink (or copy) to AGENTS.mdGEMINI.md → symlink (or copy) to AGENTS.md.memory-bank/ — durable knowledge base.tasks/ — operational runtime memory.protocols/ — file-based protocols (plans / decision logs / resume)Check what tools you have:
claude, subagents)Decide primary engine:
gpt-5.2-high for implementation and review (prefer fresh sessions for critical reviews).If you don’t control Codex model selection via UI, create a project
.codex/config.tomlprofile set (see Step 1.5).
Create (if missing):
.memory-bank/
mbb/architecture/guides/adrs/tech-specs/domains/ (optional but recommended)contracts/ (optional but recommended)states/ (optional but recommended)runbooks/ (optional but recommended)workflows/ (optional; can keep wfs/ if you already use it)quality/ (optional but recommended)testing/skills/epics/features/schemas/ (JSON schemas, including task records)tasks/ (empty JSON task index until /prd-to-tasks, indexed task records, and plans)commands/ (slash-command specs used by humans/agents)agents/ (subagent prompt library)archive/bugs/.tasks/
.protocols/
Use the templates in:
./references/shared-structure-template.mdAt minimum you must create:
AGENTS.mdCLAUDE.md symlink/copy.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.mdAlso create the command specs under .memory-bank/commands/ (use references/commands/*).
This includes optional Analysis commands (analysis.md, brainstorm.md, brief.md) when those command specs are present in the package.
It also includes constitution.md for the /constitution command, which creates or updates .memory-bank/constitution.md.
Create thin proxy skills so commands work natively in each runtime:
.claude/skills/<name>/SKILL.md → Claude Code + OpenCode.agents/skills/<name>/SKILL.md → Codex CLI + OpenCodeEach proxy just says: Read and follow the instructions in .memory-bank/commands/<name>.md.
This makes commands available natively (/mb, /constitution, /prd, /execute, etc.) in all three tools.
The init-mb.js script creates both sets automatically.
Agents read .memory-bank/constitution.md early during priming. It is the short governing-principles layer for project decisions, not a replacement for .memory-bank/invariants.md, .memory-bank/contracts/*, .memory-bank/spec-index.md, or tier/workflow policy.
Every markdown file inside .memory-bank/ must include YAML frontmatter with at least:
description: ...status: draft|active|deprecated|archived.tasks/ protocolCreate a task folder for this run (pick a new id):
.tasks/TASK-MB-INIT/Inside it, create:
TASK-MB-INIT-S-00-orchestrator-plan.md — what you will do + which subagentsIf Codex is used, create .codex/config.toml with profiles:
deep-review: review (gpt-5.2, xhigh)(If your repo is shared, consider keeping it local or documenting it in .memory-bank/runbooks/.)
src/, package.json, go.mod, Cargo.toml, etc.) → Brownfield (Step 3B).prd.md → Greenfield (Step 3A); recommend /constitution before /write-prd if project principles are not ratified/partial./analysis, /brainstorm when the idea is raw, /brief, then /constitution before /write-prd only if project principles are not already ratified|partial.prd.md → Skeleton-only (Step 3C).Record the scenario in:
.tasks/TASK-MB-INIT/TASK-MB-INIT-S-00-orchestrator-plan.md/constitution before /write-prd when project principles are still framework-default/skipped/missing. If they are already ratified/partial, continue directly to /write-prd. /constitution reads .memory-bank/analysis/product-brief.md when present and asks up to 5 contextual governance questions per pass./constitution, continue with framework-default/skipped principles and note that it can be ratified later./write-prd to turn Product Brief / PRD text + Constitution into .memory-bank/prd.md./write-prd handles PRD-level ambiguity with up to 5 targeted questions per pass./find-skills first (project-installed → marketplace).If user is temporarily unavailable (“запуск и ушёл”):
Open questions in .protocols/PRD-BOOTSTRAP/decision-log.md.If the user explicitly wants autonomous mode:
Assumptions/autonomous after /write-prd is completeRun /spec-init to update .memory-bank/spec-index.md as a lightweight SDD route map from PRD/brief/existing-spec evidence, without architecture interview or invented authoritative specs.
Then run /prd to decompose .memory-bank/prd.md into product, requirements, epics, features, testing, and index updates.
After /prd, always run /spec-design. For small independent T0/T1 features it may record a minimal backbone with irrelevant areas marked not_applicable; for shared/T2/T3 concerns it creates or updates the needed backbone SDD specs and spec-index. This is not another mandatory heavy phase: it creates no tasks and no feature-local implementation design. /spec-improve FT-<NNN> remains the feature-level gate after backbone.
/prd owns:
.memory-bank/product.md.memory-bank/epics/EP-*.md.memory-bank/features/FT-*.mdEach generated feature MUST include:
Status policy:
status: draft until Open questions are resolved.status: active only when acceptance criteria + verification plan are stable./prd / mb-from-prd do not create tasks; canonical planning path is /write-prd → /spec-init → /prd → /spec-design → /spec-improve FT-<NNN> → /prd-to-tasks FT-<NNN>.clarification_status: pending|blocked only for explicit feature-level blockers.Do not generate a full task queue for all features in one pass.
Instead:
.memory-bank/schemas/task.schema.json and .memory-bank/tasks/index.json exist./clarify-feature FT-<NNN> only if the feature is explicitly pending/blocked./spec-design after /prd; use minimal backbone for simple T0/T1 scope and fuller backbone specs for shared/T2/T3 concerns./spec-improve FT-<NNN>, then /prd-to-tasks FT-<NNN> to produce:
.memory-bank/tasks/plans/IMPL-FT-<NNN>.md.memory-bank/tasks/TASK-*.task.json records grouped by wave, each with mandatory tier: T0|T1|T2|T3Task routing is authoritative only through task.tier; the old risk / risk.level model is invalid.
For every non-trivial concept, create support docs that make the concept cheap to reload later:
.memory-bank/architecture/<concept>.md (WHAT/WHY).memory-bank/guides/<concept>.md (HOW).memory-bank/tech-specs/....memory-bank/contracts/....memory-bank/domains/....memory-bank/states/....memory-bank/adrs/....memory-bank/runbooks/....memory-bank/testing/...Rules:
.memory-bank/spec-index.md.memory-bank/spec-index.md and related concept docsUpdate .memory-bank/index.md with annotated links to all created docs.
Create a new task folder:
.tasks/TASK-MB-MAP/Spawn up to 5 subagents in parallel with non-overlapping scopes:
S-01: build/tooling (package managers, scripts, CI)S-02: backend/servicesS-03: frontend/UIS-04: data layer (DB, migrations, schema)S-05: tests + quality gatesEach subagent MUST:
.tasks/TASK-MB-MAP/ using naming:
TASK-MB-MAP-S-0X-final-report-<code|docs>-YY.mdUse ./agents/shared-repo-scanner.md as baseline prompt, but scope it.
Using the .tasks/TASK-MB-MAP/ reports, fill:
.memory-bank/product.md — what the system is today.memory-bank/architecture/ — C4 L1–L3 overview + key invariants.memory-bank/spec-index.md / .memory-bank/invariants.md / .memory-bank/glossary.md — if the evidence supports explicit normative routing.memory-bank/runbooks/ — setup, dev, test, deploy.memory-bank/contracts/ — API/event contracts.memory-bank/states/ — lifecycle/state rules when they are evident from code or workflows.memory-bank/testing/index.md — canonical gates + verification notes.memory-bank/index.md — annotated linksPRD-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 allowed if they were created by bootstrap.
Repo mapping is as-is documentation, not roadmap planning. If something cannot be derived from code/logs/tests, record it as a hypothesis or an open question.
After baseline MB exists:
prd.md describing what to change/add/constitution first only if project principles are not ratified/partial, then /write-prd, /spec-init, /prd, /spec-design, /spec-improve FT-<NNN>, and /prd-to-tasks FT-<NNN> style decomposition against the existing baselineWhen the repo is new/empty and no prd.md is available:
Run Step 1 as usual — create all directories, core files from templates, AGENTS.md, CLAUDE.md symlink.
The skeleton provides a ready-to-fill structure: product.md, requirements.md, tasks/index.json, etc. remain as draft stubs/placeholders.
In PRD-less mode, tasks/index.json must be { "version": 1, "tasks": [] } and no TASK-001.task.json or other runnable task record is generated.
After skeleton is created, ask the user to provide a PRD:
"Memory Bank skeleton created. To fill it with product details, epics, features, SDD design, and task records, please provide a
prd.mdfile (or paste requirements text). You can do this now or later — run/constitutionfirst only if project principles are not alreadyratified|partial, then/write-prd,/spec-init,/prd,/spec-design,/spec-improve FT-<NNN>, and/prd-to-tasks FT-<NNN>."
$mb-from-prd or /prd later to fill the Memory Bank./brief, then /constitution only if project principles are not already ratified|partial, and /write-prd; stop if PRD-level blockers remain.Note: The skeleton-only state is a valid stopping point.
AGENTS.md+.memory-bank/index.md+ MBB rules are enough for agents to start navigating the repo.
If you’re in Claude Code but want Codex quality or long-horizon autonomy:
.tasks/TASK-MB-MAP/.codex exec --ephemeral --full-auto -m gpt-5.2-high \
'Read .tasks/TASK-MB-MAP and build/refresh .memory-bank per MBB. Keep AGENTS.md short. Produce a summary and run a self-review.'
Run fresh-context reviewers (do not reuse the writer context):
Use prompts in ./agents/shared-review-*.md and ./agents/shared-mb-reviewer.md.
Rules:
.tasks/TASK-MB-REVIEW/.After review gate passes (APPROVE):
.memory-bank/tasks/index.json and its indexed .task.json records. If the index is empty, stop and run /spec-design, then /spec-improve FT-<NNN> and /prd-to-tasks FT-<NNN> for a selected feature.
Use /clarify-feature FT-<NNN> first only if that feature is explicitly pending/blocked.mb-execute for the task (plan → implement → quality gates → MB-SYNC).task.tier: T0/T1 may use compact verification in run.md; T2/T3 require mb-verify and mb-red-verify.T3, require human-aware checkpoint plus rollback/recovery note before closure.If the intended mode is unattended end-to-end:
/autonomousIf
mb-execute,mb-verify, ormb-red-verifyare not installed, follow their SKILL.md manually.
You are done when:
AGENTS.md exists, short, points to .memory-bank/index.md.CLAUDE.md is a symlink/copy of AGENTS.md..memory-bank/ contains at minimum: index + MBB + product + testing (requirements can remain as stubs until PRD exists)..memory-bank/constitution.md exists and /constitution is available for governing-principles updates..tasks/ contains scan/review artifacts with naming + stage ids./autonomous + /autopilot documented)../references/shared-structure-template.md./agents/shared-repo-scanner.md./agents/shared-mb-reviewer.md./agents/shared-review-architect.md./agents/shared-review-scope.md./agents/shared-review-code.md./agents/shared-review-plan.md./agents/shared-review-security.md./scripts/shared-init-mb.js (optional helper)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.
development
Map an existing codebase into an as-is Memory Bank without inventing roadmap items.