[!IMPORTANT] Unified developer workflow for fixing bugs. Analyzes JIRA, cross-checks context, proposes a solution via implementation_plan.md, implements the fix, verifies locally with QE skills, and delivers a PR.
Instructions
When the user asks to perform this workflow, execute the following steps:
🛠 Dev-Fix — Professional Bug RemediationThis workflow manages the entire lifecycle of a bug fix, from initial JIRA analysis to PR delivery. It enforces a strict Propose -> Approve -> Verify cycle using native Antigravity artifacts.
Input
/dev-fix <jira-url-or-key>
Workflow
Step 0: Environment Prep (Turbo)
// turbo
- Sync Registry:
git pull origin mainin the standard repo.
Step 1: Research & Discovery (Implementation Plan Phase)
[!TIP] Sub-Agent Delegation: If your platform supports sub-agents (e.g., Claude, OpenCode, Gemini, Kiro), immediately delegate steps 1 and 2 below to your JIRA Analyst sub-agent (e.g.,
@specialist-jira-analyst). If sub-agents are NOT supported (e.g., Antigravity, Windsurf), you must execute these steps yourself.
- Analyze Ticket: Read the JIRA bug. Extract
Reproduce steps,Expected Result, andActual Result. - Cross-Check Context: Search Confluence for related logic/specs. Locate the relevant code in the repository.
- Create Implementation Plan: Initialize
implementation_plan.md.- Goal: Clear description of the root cause.
- Proposed Changes: Exact files and logic to be modified.
- Verification Plan: Detail which QE skill (
playwright-cliorappium-mcp) will be used to verify the fix locally before PR.
- HARD STOP: Request user approval for the
implementation_plan.md. - Readiness Gate: Run
implementation-readiness; code only after READY or approved PARTIAL.
Step 2: Implementation (TDD Phase)
[!TIP] Sub-Agent Delegation: For the actual fix, delegate the TDD loop to your TDD Implementer sub-agent (
@specialist-tdd-implementer). If sub-agents are NOT supported, execute the TDD loop yourself usingcommon-tdd.
- Worktree Branching: Create a new worktree for the fix using
git worktree add ../<ticket-key> -b fix/<ticket-key>andcdinto it. - Task Tracking: Initialize
task.md. - Code: Implement the fix using
common-tddor the@specialist-tdd-implementersub-agent. Followcommon-best-practicesand service-specificAGENTS.mdrules.
Step 3: Local Verification (Enterprise Standard)
Do NOT rely on "it builds" — verify the fix against the JIRA reproduction steps.
- Launch Dev Server: Run the local dev environment for the service.
- Execute QE Audit:
- Web: Load
quality-engineering-playwright-cli. Run the reproduction steps. Capture "After" snapshots. - Mobile: Load
quality-engineering-appium-mcp. Run the reproduction steps on an emulator.
- Web: Load
- Final Verdict: Compare results against the
Expected Resultin JIRA. If any sub-3px regressions exist, fix them now. - Traceability: Run
traceability-auditwhen AC/test/PR evidence is incomplete.
Step 4: Deliver PR
- Commit: Generate a commit message using
caveman-commit. - PR Details: Draft the PR description in JIRA wiki markup (for easy copy-pasting to JIRA later).
- Walkthrough: Create
walkthrough.mdwith evidence of the local verification. - Session Report: Produce
session-reportand route skill gaps toretro-learn.
🚫 Anti-Patterns
- No Blind Implementation: Never write code before the
implementation_plan.mdis approved. - No Orphan Sessions: Always
closebrowser/appium sessions used during verification. - No skipping local verify: "I checked it manually" is not enough. Provide snapshots/logs in the
walkthrough.md.