一键导入
bug-remediation-architect
Workflow for analyzing bug reports, tracing root causes, and generating structured bug-fix implementation plans with rollback strategies.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Workflow for analyzing bug reports, tracing root causes, and generating structured bug-fix implementation plans with rollback strategies.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Performs consistency and traceability audits across documents (PRD vs Spec vs Plan) to detect missing coverage and scope creep.
Systematic codebase exploration, architectural critique, and generation of Project Discovery Drafts for SDLC Phase 0.
Helps interrogate Product Requirements (PRD), Technical Specifications, and Implementation Plans to find ambiguities, missing edge cases, and hidden assumptions.
Workflow for auditing, designing, and writing structured documentation based on the Diátaxis Framework (Tutorials, How-to, Reference, Explanation).
Language-agnostic workflow for code reviews and security audits against Clean Code/SOLID principles, generating formal refactoring plans.
An advanced, autonomous AI agent skill designed to execute complex, multi-step, and long-horizon tasks with high reliability and minimal human interruption.
| name | bug-remediation-architect |
| description | Workflow for analyzing bug reports, tracing root causes, and generating structured bug-fix implementation plans with rollback strategies. |
| license | MIT |
This skill outlines the diagnostic workflow to investigate reported bugs, identify root causes, and generate formal, executable implementation plans to fix them safely. It prioritizes Test-Driven Bug Fixing and rollback planning. This skill accompanies the @BugRemediationArchitect agent.
/plan/ directory.bug-fix-YYYYMMDD-[short-description].md (e.g., bug-fix-20260603-auth-crash.md) and save it in the /plan/ directory.---
goal: [Concise Title Describing the Bug Fix]
version: [Optional: e.g., 1.0, Date]
date_created: [YYYY-MM-DD]
last_updated: [Optional: YYYY-MM-DD]
owner: [Optional: Team/Individual responsible for this spec]
status: "Planned"
tags: ["bug-fix", "remediation", "patch"]
---
# Introduction

[A short concise introduction to the bug being addressed, its impact, and the root cause that was identified during analysis.]
## 1. Requirements & Constraints (Fix Constraints)
[Explicitly list the constraints for this bug fix, ensuring no regressions are introduced.]
- **REQ-001**: The fix must resolve [Specific Issue].
- **CON-001**: The fix must not alter the existing public API response structure.
- **CON-002**: Backward compatibility must be maintained.
## 2. Implementation Steps
> **⚠️ EXECUTION DIRECTIVE FOR AI AGENTS:**
> You MUST execute this plan phase by phase. You MUST run the specific testing/verification task at the end of each phase. After a phase is tested, you **MUST STOP AND WAIT** for the user's explicit approval before proceeding to the next phase.
### Implementation Phase 1: Test Writing (Test-Driven Bug Fixing)
- GOAL-001: Write a failing test that reproduces the exact bug described.
| Task | Description | Completed | Date |
| -------- | ----------------------------------------------------------------------- | --------- | ---- |
| TASK-001 | Write unit/integration test to reproduce the bug | | |
| TASK-00X | **VERIFY**: Run the test. It MUST FAIL. | | |
| TASK-00Y | **APPROVAL**: Wait for explicit user confirmation to proceed to Phase 2 | | |
### Implementation Phase 2: Minimal Root Cause Remediation
- GOAL-002: Implement the core logic fix in the production code without over-engineering.
| Task | Description | Completed | Date |
| -------- | ------------------------------------------------------------ | --------- | ---- |
| TASK-002 | Apply the minimal fix to [Specific File/Function] | | |
| TASK-003 | Clean up any adjacent code affected by the fix | | |
| TASK-00X | **VERIFY**: Run the test from Phase 1. It MUST PASS. | | |
| TASK-00Y | **APPROVAL**: Wait for explicit user confirmation to proceed | | |
## 3. Rollback Strategy
[Describe the exact steps to revert this fix if it causes unexpected issues in production or breaks related systems.]
- **RBCK-001**: Step 1 to revert changes.
- **RBCK-002**: Step 2 to restore previous state.
## 4. Dependencies
[List any dependencies that need to be updated as part of this fix.]
- **DEP-001**: Dependency 1
## 5. Files Affected
[List all files that will be modified to fix this bug.]
- **FILE-001**: Description of file 1
## 6. Testing Strategy & Edge Cases
[Describe how this bug will be prevented from recurring in the future and note any specific edge cases considered during the fix.]
- **TEST-001**: Description of test strategy
## 7. Risks & Assumptions
[List any risks related to this fix, such as potential side effects on other modules.]
- **RISK-001**: Risk 1