From agent-workflows
Runs diverge→converge→premortem pipeline to produce risk-annotated PRD from a topic. Chains multi-perspective research, structured debate, and failure analysis phases.
npx claudepluginhub sjarmak/agent-workflows[N] "topic or feature description"This skill is limited to using the following tools:
Run the complete PRD creation pipeline as a single invocation. Chains three skills in sequence — diverge (multi-perspective research), converge (structured debate), premortem (failure analysis) — passing file outputs between them. Produces a risk-annotated PRD ready for `/prd-build` or `/scaffold`.
Mandates invoking relevant skills via tools before any response in coding sessions. Covers access, priorities, and adaptations for Claude Code, Copilot CLI, Gemini CLI.
Share bugs, ideas, or general feedback.
Run the complete PRD creation pipeline as a single invocation. Chains three skills in sequence — diverge (multi-perspective research), converge (structured debate), premortem (failure analysis) — passing file outputs between them. Produces a risk-annotated PRD ready for /prd-build or /scaffold.
$ARGUMENTS — format: [N] "research question or topic" where N is optional agent count (default: 3)
Extract:
If the topic is missing or unclear, ask the user to clarify before proceeding.
Invoke the /diverge skill with the provided arguments. This spawns N independent research agents — each with a different lens (technical feasibility, user experience, risk/failure modes, prior art, first principles) — to explore the topic from uncorrelated perspectives.
Wait for the PRD file to be created (format: prd_{slugified_topic}.md).
The diverge output is a synthesis of all agent findings plus a draft PRD. Do NOT proceed until the file exists.
Invoke the /converge skill, passing the PRD file path from Phase 1.
This runs a structured debate: agents advocate competing positions from the diverge output, challenge each other's assumptions, propose compromises, and reach consensus. The result is a refined PRD with tensions resolved and trade-offs made explicit.
Wait for the convergence report and updated PRD.
Invoke the /premortem skill, passing the refined PRD from Phase 2.
This spawns N agents who each write a narrative from the future where the project has failed — each for a different root cause (technical, operational, security, scope, organizational). Synthesizes into a risk registry with severity ratings and mitigations, then annotates the PRD with the top risks.
Wait for the risk-annotated PRD.
Present the final risk-annotated PRD path and a brief summary:
/prd-build <prd-path> for parallel implementation, or /scaffold <prd-path> for build-order planning)/brainstorm for ideation when the problem space is vague, or start here when you have a clear question/prd-build to decompose the PRD into parallel work units and implement, or /scaffold for build-order planning, or /diverge-prototype to spike implementations before committing