skills/mb-from-prd/SKILL.md
Turn a PRD into a traceable Memory Bank with product, requirements, epics, and features.
npx skillsauth add mrvladd-d/memobank mb-from-prdInstall 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.
prd.md or equivalent requirements already exist.prd.md or user-provided PRD text plus an initialized .memory-bank/./spec-design and per-feature /spec-improve before /prd-to-tasks..memory-bank/prd.md exists with type: prd, clarification_status: complete, and constitution_checked: true; otherwise run /write-prd first..memory-bank/spec-index.md exists after /spec-init as the required lightweight SDD route map for PRD decomposition. After /prd, mandatory /spec-design consumes that map, records a minimal or full backbone gate, and may update backbone SDD specs and spec-index when features share domain/model/contracts/state/security/runtime design..memory-bank/ exists. If not, run mb-init first (or create the skeleton manually)..memory-bank/prd.md.type: prd, clarification_status: complete, and constitution_checked: true.NEEDS CLARIFICATION markers that affect decomposition..memory-bank/spec-index.md as the lightweight SDD route map. Stop and run /spec-init if the index is missing, stale, placeholder-only, has broken links, is ambiguous, or cannot safely identify relevant existing specs and planned/candidate/unknown/not_applicable areas..memory-bank/spec-index.md. Do not load every SDD spec by default..protocols/PRD-BOOTSTRAP/plan.md (steps)decision-log.md (Q/A and choices)If the PRD mentions “use skills / tools / CLIs”:
/find-skills (project-installed first; marketplace second)PRD-level ambiguity is handled by /write-prd. Do not ask Deep Questioning rounds in this skill.
Optional Analysis (/analysis, /brainstorm, /brief) improves /write-prd input.
If the target mode is full autonomous:
AssumptionsUpdate .memory-bank/product.md (use the user’s wording).
Update .memory-bank/requirements.md:
For each epic:
.memory-bank/epics/EP-<NNN>-<slug>.mdreferences/epic-template.md.Source artifacts, Normative inputs, and Constraints / invariants only when they are grounded in evidence.status: draft until open questions are resolved.For each feature:
.memory-bank/features/FT-<NNN>-<slug>.mdreferences/feature-template.md.clarification_status: pending|blocked only when the PRD explicitly leaves a feature-level blocker that affects task decomposition.Source artifacts, Normative inputs, Constraints / invariants, and Verification targets only when they are grounded in evidence.## SDD Design Gate section in every feature. This routes to /spec-improve FT-<NNN> before /prd-to-tasks FT-<NNN> but does not introduce a placeholder spec_design_status or a new blocking status.status: draft until acceptance criteria + verification plan are solid.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. A fresh skeleton may have { "version": 1, "tasks": [] }./spec-design after /prd. 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> first, 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|T3When enough structured evidence exists, those feature-level plans and task records may include optional richer fields such as source_artifacts, normative_inputs, constraints, invariants, and verification_targets.
Task routing is authoritative only through task.tier; the old risk / risk.level model is invalid.
Canonical SDD planning path is /write-prd → /spec-init → /prd → /spec-design → /spec-improve FT-<NNN> → /prd-to-tasks FT-<NNN>. /spec-improve remains the feature-level gate after the mandatory backbone gate. Run /clarify-feature FT-<NNN> only when a feature is explicitly pending/blocked. For simple T0/T1-like features, /spec-improve may set spec_design_status: not_required with a concise rationale.
This keeps planning accurate and avoids speculative task explosions.
For every concept that would otherwise require “reading many files” to understand later, create support docs.
Compatibility/default path:
.memory-bank/architecture/<concept>.md (WHAT/WHY).memory-bank/guides/<concept>.md (HOW)Optional richer support docs:
.memory-bank/contracts/....memory-bank/states/....memory-bank/runbooks/....memory-bank/testing/...Rules:
.memory-bank/spec-index.md and relevant feature/concept docs.memory-bank/spec-index.mdUpdate .memory-bank/index.md with annotated links to everything new.
Run a fresh-context review (preferably mb-review).
If the goal is “PRD → done without more user interaction”:
/autonomous.memory-bank/spec-index.md routes existing/planned/candidate/unknown/not_applicable SDD design areas.mb-from-prd itself./spec-improve FT-<NNN> and /prd-to-tasks FT-<NNN>, schema-backed task records are indexed in .memory-bank/tasks/index.json; every task has tier.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.