Map PRD skill artifacts into user flows and a stable story map with traceability plus a human-readable summary. Use when converting PRD outputs into flow-oriented steps, user stories, release slices, and open questions while preserving IDs and explicit lists.
Translate PRD skill artifacts into flow-oriented user steps and a stable, machine-consumable story map plus a human-readable summary. Preserve explicit user-provided lists verbatim, keep IDs stable, and surface ambiguities with targeted questions instead of guessing. Proactively ask clarifying questions whenever decisions affect flows, scope, or traceability; provide up to 3 options with pros/cons so the user can decide. Enable downstream planning without making architecture or implementation decisions.
Stay between PRD refinement and architecture/technical design. Do not decide components, services, APIs, data models, or infrastructure. Output structured flows, stories, and traceability that downstream architecture skills can consume. The architecture skill should be able to ingest the story map artifacts directly without additional transformation.
Expect every artifact produced by the PRD skill and use them as authoritative sources. Explain each input and how it is used:
normalized_prd_markdown (required): produced by the PRD skill. Use it to read narrative context, journeys, and any explicit lists or constraints that must be preserved verbatim.prd_packet_json (required): produced by the PRD skill (valid against the PRD packet schema). Use it as the structured source of FR/NFR IDs, acceptance criteria, and embedded handoff data.prd_handoff_contract (required): produced by the PRD skill and located at prd_packet_json.handoff_user_story_mapper. Use it as the authoritative list of actors, epics, candidate stories, release slices, and open questions. This contract is embedded inside the PRD packet (not a separate file) unless explicitly emitted by the PRD skill as a standalone section.optional_context (optional): provided by the user or system. Use it to resolve ambiguities, add constraints, or clarify flow ordering.prior_story_map (optional): prior story map artifact. Use it to keep story IDs stable across iterations.If any required artifact is missing or incomplete, ask the user targeted questions immediately and proceed with best-effort placeholders labeled as TBD (see Failure Modes). When asking questions, offer up to 3 concrete options with pros/cons and ask which option should be used.
When writing files to a repo, ensure they live under a docs/ directory. If it does not exist, create it.
docs/story-map.json (Story Map JSON)docs/story-map.summary.md (Story Map Summary)docs/prd.packet.json when story mapping changes require PRD updates.Ensure docs/story-map.json and docs/story-map.summary.md are complete and self-consistent so the Architecture skill can:
docs/prd.packet.json,Emit a deterministic JSON (or YAML) artifact with stable IDs and traceability:
meta: skill_name, version, source_contract_id, generated_atpersonas[]: copied from PRD artifacts (prefer handoff_user_story_mapper.actors, otherwise normalized_prd.users.personas)epics[]: copied or mapped from PRD handoffuser_flows[]: flow-oriented steps (entry point → actions → system responses) per persona/epicstory_map: persona → activities → steps → storiesstories[]: each story with a stable ID, story text, linked fr_ids/nfr_ids, and acceptance criteriarelease_slices: MVP vs later (verbatim if provided; inferred only when necessary and labeled)traceability: story links to epics, personas, FR/NFR IDsambiguities[]: targeted questions with impact scopeunmapped_inputs[]: PRD items that could not be mapped, with reasonProvide a concise summary:
Ingest PRD Artifacts
normalized_prd_markdown, prd_packet_json, and prd_handoff_contract.prd_packet_json.handoff_user_story_mapper; if missing, treat it as a blocking gap and request it.Preserve Verbatim Lists
Define User Flows First
Construct the Story Map
activities → steps → stories.handoff_user_story_mapper.stories are already structured, preserve them verbatim; otherwise map from epics and journeys with minimal transformation.Maintain Stable IDs
prior_story_map exists, reuse IDs from that artifact.Create Traceability Links
Apply Release Slicing
Detect Ambiguities and Gaps
Emit Outputs
Propagate Updates Back to PRD Artifacts
docs/prd.packet.json:
tbd.questions or normalized_prd.open_questions.handoff_user_story_mapper with the finalized story IDs and linkage.meta.change_summary.Sync With Architecture Feedback
docs/story-map.json (ambiguities[], unmapped_inputs[], or missing flow steps),docs/prd.packet.json (tbd.questions or acceptance criteria gaps),For any failure mode, ask the user targeted questions that identify the missing or conflicting information and the impacted stories/epics. Include up to 3 options with pros/cons for each decision point to speed up user confirmation.
ambiguities[] list with question, reason, impact_scope, blocking.“Use the PRD packet and handoff to produce user flows and a story map with stable IDs.”