Assess the impact of a significant change during sprint execution across the PRD, epics, architecture, and UX documents, and produce a sprint change proposal. U
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-bmad-correct-course-01d9e7191e08 ,按照其中的说明把「bmad-correct-course」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Goal: Manage significant changes during sprint execution by analyzing impact across all project artifacts and producing a structured Sprint Change Proposal.
Your Role: You are a Developer navigating change management. Analyze the triggering issue, assess impact across PRD, epics, architecture, and UX artifacts, and produce an actionable Sprint Change Proposal with clear handoff.
checklist.md) resolve from the skill root.{skill-root} resolves to this skill's installed directory (where customize.toml lives).{project-root} is the nearest folder containing _bmad/, starting at the project working directory and moving up through its parents.{skill-name} resolves to the skill directory's basename.Run: uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --project-root {project-root} --key workflow
If the script is not found, BMad is not set up here. Offer to run the bmad skill's setup, installing bmad first if you do not have it (npx skills add bmad-code-org/BMAD-METHOD --skill bmad), then run the command again.
If it fails for any other reason, resolve the workflow block yourself by reading these three files in base → team → user order and applying the same structural merge rules as the resolver:
{skill-root}/customize.toml — defaults{project-root}/_bmad/custom/{skill-name}.toml — team overrides{project-root}/_bmad/custom/{skill-name}.user.toml — personal overridesAny missing file is skipped. Scalars override, tables deep-merge, arrays of tables keyed by code or id replace matching entries and append new entries, and all other arrays append.
Execute each entry in {workflow.activation_steps_prepend} in order before proceeding.
Treat every entry in {workflow.persistent_facts} as foundational context you carry for the rest of the workflow run. Entries prefixed file: are paths or globs under {project-root} — load the referenced contents as facts. All other entries are facts verbatim.
Run: uv run {project-root}/_bmad/scripts/resolve_config.py --project-root {project-root} --key core.project_name --key modules.bmm.planning_artifacts
date as system-generated current datetimeGreet the user.
Execute each entry in {workflow.activation_steps_append} in order.
Activation is complete. If activation_steps_prepend or activation_steps_append were non-empty, confirm every entry was executed in order before proceeding. Do not begin the main workflow until all activation steps have been completed.
default_output_file = {planning_artifacts}/sprint-change-proposal-{date}.md| Input | Path | Load Strategy |
|---|---|---|
| PRD | {planning_artifacts}/*prd*.md (whole) or {planning_artifacts}/*prd*/*.md (sharded) | FULL_LOAD |
| Architecture | {planning_artifacts}/*architecture*.md (whole) or {planning_artifacts}/*architecture*/*.md (sharded) | FULL_LOAD |
| UX Design | {planning_artifacts}/*ux*.md (whole) or {planning_artifacts}/*ux*/*.md (sharded) | FULL_LOAD |
| Spec | {planning_artifacts}/*spec-*.md (whole) | FULL_LOAD |
| Project Context | AGENTS.md in the affected repo (the bmad:context block) | FULL_LOAD |
Strategy: Course correction needs broad project context to assess change impact accurately. Load all available planning artifacts.
Discovery Process for FULL_LOAD documents (PRD, Architecture, UX Design, Spec):
*prd*.md, *architecture*.md, *ux*.md, *spec-*.md)index.md (e.g., prd/index.md)index.md to understand the document structureDiscovery Process for Project Context:
AGENTS.md in the repo the change affects — the block between the bmad:context markers carries the policy, frozen paths, and conventions a course correction must respect.AGENTS.md (greenfield projects).Fuzzy matching: Be flexible with document names — users may use variations like prd.md, bmm-prd.md, product-requirements.md, etc.
Missing documents: Not all documents may exist. A PRD or a spec is essential; Architecture, UX Design, and Project Context are loaded if available. HALT if neither a PRD nor a spec can be found.
Confirm change trigger and gather user description of the issue Ask: "What specific issue or change has been identified that requires navigation?" Verify access to project documents: - PRD (Product Requirements Document) or spec — required - Architecture documentation — optional, load if available - UI/UX specifications — optional, load if available Ask the user to describe the epics and stories the change affects: what each covers and where it stands Ask user for mode preference: - **Incremental** (recommended): Refine each edit collaboratively - **Batch**: Present all changes at once for review Store mode selection for use throughout workflowHALT: "Cannot navigate change without clear understanding of the triggering issue. Please provide specific details about what needs to change and why."
HALT: "Need access to a PRD or a spec to assess change impact. Please ensure one is accessible. Architecture and UI/UX will be used if available."
Read fully and follow the systematic analysis from: checklist.md Work through each checklist section interactively with the user Record status for each checklist item: - [x] Done - Item completed successfully - [N/A] Skip - Item not applicable to this change - [!] Action-needed - Item requires attention or follow-up Maintain running notes of findings and impacts discovered Present checklist progress after each major sectionIdentify blocking issues and work with user to resolve before continuing
Based on checklist findings, create explicit edit proposals for each identified artifactFor Story changes:
Show old → new text format
Include story ID and section being modified
Provide rationale for each change
Example format:
Story: [STORY-123] User Authentication
Section: Acceptance Criteria
OLD:
- User can log in with email/password
NEW:
- User can log in with email/password
- User can enable 2FA via authenticator app
Rationale: Security requirement identified during implementation
For PRD modifications:
For Architecture changes:
For UI/UX specification updates:
Collect all edit proposals and present together at end of step
Compile comprehensive Sprint Change Proposal document with following sections:Section 1: Issue Summary
Section 2: Impact Analysis
Section 3: Recommended Approach
Section 4: Detailed Change Proposals
Section 5: Implementation Handoff
Present complete Sprint Change Proposal to user Write Sprint Change Proposal document to {default_output_file} HALT and give the user a choice:
If the user chooses Edit, revise the proposal with them and write the updated document before continuing.
Get explicit user approval for complete proposal Do you approve this Sprint Change Proposal for implementation? (yes/no/revise) Gather specific feedback on what needs adjustment Return to appropriate step to address concerns If changes needed to edit proposals If changes needed to overall proposal structure Finalize Sprint Change Proposal document Determine change scope classification:Provide appropriate handoff based on scope:
Route to: Developer agent for direct implementation Deliverables: Finalized edit proposals and implementation tasks Route to: Product Owner / Developer agents Deliverables: Sprint Change Proposal + backlog reorganization plan Route to: Product Manager / Solution Architect Deliverables: Complete Sprint Change Proposal + escalation noticeConfirm handoff completion and next steps with user Document handoff in workflow execution log
Summarize workflow execution: - Issue addressed: {{change_trigger}} - Change scope: {{scope_classification}} - Artifacts modified: {{list_of_artifacts}} - Routed to: {{handoff_recipients}}Confirm all deliverables produced:
Report workflow completion to user: "Correct Course workflow complete!"
Remind user of success criteria and next steps for Developer agent
Run: uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --project-root {project-root} --key workflow.on_complete — if the resolved value is non-empty, follow it as the final terminal instruction before exiting.