/workflow-steps
Detailed step-by-step guide for fix-pr command execution.
$ npx -y skills add athola/claude-night-market --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/workflow-steps
Context preview
What this command does when you run it.
Detailed step-by-step guide for fix-pr command execution.
Command definition
workflow-steps.mdFix PR: Workflow Steps
Detailed step-by-step guide for fix-pr command execution.
> **See Also**: [Main Command](../fix-pr.md) | [Configuration](configuration-options.md) | [Troubleshooting](troubleshooting-fixes.md)
Overview
The fix-pr workflow consists of 6 sequential steps. Each step builds on the previous and can be skipped when appropriate.
Quick Navigation
| Step | Name | Purpose | When to Skip | |------|------|---------|--------------| | **[1](steps/1-analyze.md)** | [Analyze](steps/1-analyze.md) | Understand PR and gather comments | Already familiar with PR | | **[2](steps/2-triage.md)** | [Triage](steps/2-triage.md) | Classify by type and priority | Single simple fix | | **[3](steps/3-plan.md)** | [Plan](steps/3-plan.md) | Generate fix strategies | Fixes are obvious | | **[4](steps/4-fix.md)** | [Fix](steps/4-fix.md) | Apply code changes | Made changes manually | | **[5](steps/5-validate.md)** | [Validate](steps/5-validate.md) | Test and verify fixes | Already validated | | **[6](steps/6-complete.md)** | [Complete](steps/6-complete.md) | **Reply to & resolve threads** | **⛔ NEVER SKIP** |
> **⚠️ Step 6 is MANDATORY.** The workflow is incomplete until all review threads are replied to and resolved. See [Mandatory Exit Gate](../fix-pr.md#mandatory-exit-gate).
Workflow Diagram
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ 1. Analyze │ ──▶ │ 2. Triage │ ──▶ │ 3. Plan │
│ (Context) │ │ (Classify) │ │ (Strategy) │
└─────────────┘ └─────────────┘ └─────────────┘
│
▼
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ 6. Complete │ ◀── │ 5. Validate │ ◀── │ 4. Fix │
│ (Threads) │ │ (Test) │ │ (Changes) │
└─────────────┘ └─────────────┘ └─────────────┘Step Details
[Step 1: Analyze (Discovery & Context)](steps/1-analyze.md)
Understand the PR and gather all review comments.
**Key Actions:**
- Identify target PR
- Check/add PR description
- Fetch review threads (GraphQL)
- Detect feedback types
- Analyze with superpowers
**Output:** PR metadata, all review comments, initial analysis
---
[Step 2: Triage (Classification)](steps/2-triage.md)
Classify comments by type and priority.
**Categories:**
- 🔴 **Fix Now**: Security, bugs, blockers
- 🟡 **This PR**: In-scope improvements
- 📋 **Backlog**: Create GitHub issues
- ⏭️ **Skip**: Informational, praise
**Output:** Classified comment list with priorities
---
[Step 3: Plan (Fix Strategy)](steps/3-plan.md)
Generate fix strategies for actionable comments.
**Commit Strategies:**
- **Single**: Simple fixes, few comments
- **Separate**: Complex fixes, multiple categories
- **Manual**: User controls commits
**Output:** Fix plan with strategies per comment
---
[Step 4: Fix (Apply Changes)](steps/4-fix.md)
Apply code changes systematically.
**Process:** 1. Read code context (±20 lines) 2. Apply fix with Edit tool 3. Verify no new issues 4. Commit changes
**Output:** Applied fixes, commits created
---
[Step 5: Validate (Test & Verify)](steps/5-validate.md)
Ensure all fixes are correct and quality gates pass.
**Validation Steps:**
- Version validation (if applicable)
- Execute automated test plan
- Agent-verify manual test plan via shell, HTTP probes, or
headless browser (CDP MCP / Playwright); see Section 5.4
- Run quality gates
- Document results
- **5.7 Diff-derived validation** (`Skill(sanctum:validate-pr)`): area-targeted checks + revert-test. Halts before Step 6 on FAIL. Bypass: `--skip-validate`.
**Output:** Tests passing, validate-pr summary table ready for Gate 3
---
[Step 6: Complete (Threads, Issues, Summary)](steps/6-complete.md)
Resolve threads, create issues, and post summary.
**MANDATORY for PR authors receiving review comments.**
**Sub-Modules:** | Sub-Step | Module | Purpose | |----------|--------|---------| | **6.0** | [Reconciliation](steps/6-complete/reconciliation.md) | Reconcile ALL unworked items and enforcement | | **6.1-6.2** | [Issue Creation](steps/6-complete/issue-creation.md) | Create issues for suggestions/deferred items | | **6.3** | [Thread Resolution](steps/6-complete/thread-resolution.md) | Reply to and resolve ALL review threads | | **6.4** | [Issue Linkage](steps/6-complete/issue-linkage.md) | Link/close related issues | | **6.5** | [Summary](steps/6-complete/summary.md) | Post summary comment to PR | | **6.6** | [Verification](steps/6-complete/verification.md) | Final verification and workflow gate |
**Output:** All threads resolved, ALL unworked items tracked as issues, summary posted
---
Critical Workflows
Thread Resolution (Step 6.3)
**MANDATORY** - You MUST reply to and resolve each review thread:
# Reply to thread
gh api graphql -f query='
mutation {
addPullRequestReviewThreadReply(input: {
pullRequestReviewThreadId: "PRRT_xxx"
body: "Fixed - [description]"
}) { comment { id } }
}'
# Resolve thread
gh api graphql -f query='
mutation {
resolveReviewThread(input: {threadId: "PRRT_xxx"}) {
thread { isResolved }
}
}'See [Step 6: Complete](steps/6-complete.md) for full details.
Version Validation (Step 5.1)
If version issues were flagged, re-validate before proceeding:
| Project Type | Files to Check | |--------------|----------------| | claude-marketplace | marketplace.json, plugin.json files | | python | pyproject.toml, __version__ in code | | node | package.json, package-lock.json | | rust | Cargo.toml, Cargo.lock |
See [Step 5: Validate](steps/5-validate.md) for validation scripts.
---
Module Reference
This workflow documentation is modularized for efficient context loading:
fix-pr-modules/
├── workflow-steps.md # This file (hub/navigation)
├── configuration-options.md # Command configuration
├── troubleshooting-fixes.md # Common issues
└── steps/
├── 1-analyze.md # DiscovRead more
Fix PR: Workflow Steps
Detailed step-by-step guide for fix-pr command execution.
> **See Also**: [Main Command](../fix-pr.md) | [Configuration](configuration-options.md) | [Troubleshooting](troubleshooting-fixes.md)
Overview
The fix-pr workflow consists of 6 sequential steps. Each step builds on the previous and can be skipped when appropriate.
Quick Navigation
| Step | Name | Purpose | When to Skip | |------|------|---------|--------------| | **[1](steps/1-analyze.md)** | [Analyze](steps/1-analyze.md) | Understand PR and gather comments | Already familiar with PR | | **[2](steps/2-triage.md)** | [Triage](steps/2-triage.md) | Classify by type and priority | Single simple fix | | **[3](steps/3-plan.md)** | [Plan](steps/3-plan.md) | Generate fix strategies | Fixes are obvious | | **[4](steps/4-fix.md)** | [Fix](steps/4-fix.md) | Apply code changes | Made changes manually | | **[5](steps/5-validate.md)** | [Validate](steps/5-validate.md) | Test and verify fixes | Already validated | | **[6](steps/6-complete.md)** | [Complete](steps/6-complete.md) | **Reply to & resolve threads** | **⛔ NEVER SKIP** |
> **⚠️ Step 6 is MANDATORY.** The workflow is incomplete until all review threads are replied to and resolved. See [Mandatory Exit Gate](../fix-pr.md#mandatory-exit-gate).
Workflow Diagram
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ 1. Analyze │ ──▶ │ 2. Triage │ ──▶ │ 3. Plan │
│ (Context) │ │ (Classify) │ │ (Strategy) │
└─────────────┘ └─────────────┘ └─────────────┘
│
▼
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ 6. Complete │ ◀── │ 5. Validate │ ◀── │ 4. Fix │
│ (Threads) │ │ (Test) │ │ (Changes) │
└─────────────┘ └─────────────┘ └─────────────┘Step Details
[Step 1: Analyze (Discovery & Context)](steps/1-analyze.md)
Understand the PR and gather all review comments.
**Key Actions:**
- Identify target PR
- Check/add PR description
- Fetch review threads (GraphQL)
- Detect feedback types
- Analyze with superpowers
**Output:** PR metadata, all review comments, initial analysis
---
[Step 2: Triage (Classification)](steps/2-triage.md)
Classify comments by type and priority.
**Categories:**
- 🔴 **Fix Now**: Security, bugs, blockers
- 🟡 **This PR**: In-scope improvements
- 📋 **Backlog**: Create GitHub issues
- ⏭️ **Skip**: Informational, praise
**Output:** Classified comment list with priorities
---
[Step 3: Plan (Fix Strategy)](steps/3-plan.md)
Generate fix strategies for actionable comments.
**Commit Strategies:**
- **Single**: Simple fixes, few comments
- **Separate**: Complex fixes, multiple categories
- **Manual**: User controls commits
**Output:** Fix plan with strategies per comment
---
[Step 4: Fix (Apply Changes)](steps/4-fix.md)
Apply code changes systematically.
**Process:** 1. Read code context (±20 lines) 2. Apply fix with Edit tool 3. Verify no new issues 4. Commit changes
**Output:** Applied fixes, commits created
---
[Step 5: Validate (Test & Verify)](steps/5-validate.md)
Ensure all fixes are correct and quality gates pass.
**Validation Steps:**
- Version validation (if applicable)
- Execute automated test plan
- Agent-verify manual test plan via shell, HTTP probes, or
headless browser (CDP MCP / Playwright); see Section 5.4
- Run quality gates
- Document results
- **5.7 Diff-derived validation** (`Skill(sanctum:validate-pr)`): area-targeted checks + revert-test. Halts before Step 6 on FAIL. Bypass: `--skip-validate`.
**Output:** Tests passing, validate-pr summary table ready for Gate 3
---
[Step 6: Complete (Threads, Issues, Summary)](steps/6-complete.md)
Resolve threads, create issues, and post summary.
**MANDATORY for PR authors receiving review comments.**
**Sub-Modules:** | Sub-Step | Module | Purpose | |----------|--------|---------| | **6.0** | [Reconciliation](steps/6-complete/reconciliation.md) | Reconcile ALL unworked items and enforcement | | **6.1-6.2** | [Issue Creation](steps/6-complete/issue-creation.md) | Create issues for suggestions/deferred items | | **6.3** | [Thread Resolution](steps/6-complete/thread-resolution.md) | Reply to and resolve ALL review threads | | **6.4** | [Issue Linkage](steps/6-complete/issue-linkage.md) | Link/close related issues | | **6.5** | [Summary](steps/6-complete/summary.md) | Post summary comment to PR | | **6.6** | [Verification](steps/6-complete/verification.md) | Final verification and workflow gate |
**Output:** All threads resolved, ALL unworked items tracked as issues, summary posted
---
Critical Workflows
Thread Resolution (Step 6.3)
**MANDATORY** - You MUST reply to and resolve each review thread:
# Reply to thread
gh api graphql -f query='
mutation {
addPullRequestReviewThreadReply(input: {
pullRequestReviewThreadId: "PRRT_xxx"
body: "Fixed - [description]"
}) { comment { id } }
}'
# Resolve thread
gh api graphql -f query='
mutation {
resolveReviewThread(input: {threadId: "PRRT_xxx"}) {
thread { isResolved }
}
}'See [Step 6: Complete](steps/6-complete.md) for full details.
Version Validation (Step 5.1)
If version issues were flagged, re-validate before proceeding:
| Project Type | Files to Check | |--------------|----------------| | claude-marketplace | marketplace.json, plugin.json files | | python | pyproject.toml, __version__ in code | | node | package.json, package-lock.json | | rust | Cargo.toml, Cargo.lock |
See [Step 5: Validate](steps/5-validate.md) for validation scripts.
---
Module Reference
This workflow documentation is modularized for efficient context loading:
fix-pr-modules/
├── workflow-steps.md # This file (hub/navigation)
├── configuration-options.md # Command configuration
├── troubleshooting-fixes.md # Common issues
└── steps/
├── 1-analyze.md # DiscovA plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.
Other commands on claude-night-market.
- /aggregate-logs
Generate LEARNINGS.md from skill execution logs.
Open command - /analyze-skill
Analyze skill file complexity metrics and generate modularization recommendations for splitting or progressive loading.
Open command - /bulletproof-skill
Harden skills against rationalization and bypass behaviors
Open command - /context-report
Generate context optimization report for skill directories
Open command - /create-command
Create slash commands with brainstorming and best practices
Open command - /create-hook
Create hooks with brainstorming and security-first design
Open command

