Dev Fix Skill
[!IMPORTANT]
Unified developer workflow for fixing bugs. Analyzes issue-tracker context, cross-checks docs/code, proposes a solution, implements the fix, verifies locally, and delivers a PR/MR.
Optional args: slug=<feature>, ticket=<id/url>, mode=interactive|autonomous|channel, channel=<id>, auto_continue=true|false, profile=business|hybrid|technical.
Instructions
When the user asks to perform this workflow, execute the following steps:
Dev-Fix — Bug Remediation
Goal: Take a bug ticket from root-cause analysis through a locally-verified PR/MR, scaling process to the lane's delivery_mode and snc_tier.
Input
/dev-fix <issue-url-or-key>
Lane Selection
Score with common-task-complexity-routing; carry delivery_mode from sdlc when present, else derive it from risk. The sensitive-change floor still applies.
| Lane (delivery_mode) | snc_tier | Artifacts | Approval / readiness | Verification | Review |
| --- | --- | --- | --- | --- | --- |
| brief | low | none; root cause, test, evidence in PR/MR body | none; no readiness gate | failing regression test -> fix -> focused tests + lint; visual QE only if the bug is visual | fast code-review |
| standard | medium | plan inline in PR/MR or one plan file | self-review; readiness only if requirements are ambiguous | TDD + self-review; visual QE for visual bugs | deep code-review |
| extended | high | plan file + task list + walkthrough | HARD STOP + readiness | TDD + independent reviewers; visual QE for visual bugs | deep code-review + independent reviewers (specialist-architecture-guard, specialist-security-reviewer when relevant) + human approval before merge |
brief creates no files under docs/ and needs no worktree; worktree is required for extended and optional for standard.
Workflow
Step 1: Research & Discovery
- Analyze ticket: installed Jira/GitHub/GitLab/ADO MCP first, else exported ticket text. Extract reproduce steps, expected result, actual result.
- Cross-check context: knowledge-base MCP or local code search; locate relevant code.
- Plan by lane: state root cause hypothesis, proposed changes, verification plan.
brief: keep it in the PR/MR body.standard: inline in the PR/MR or one plan file.extended: Implementation Plan Template file.
- Score:
snc_tier/model_tierpercommon-task-complexity-routing. - Gates:
extendedHARD STOP, thenimplementation-readiness(code after READY or approved PARTIAL).standardself-review; readiness only when requirements are ambiguous.briefnone.
Do not propose code changes until repro steps, expected result, and root cause hypothesis are explicit.
Step 2: Implementation (TDD)
- Branch: worktree for
extended, optional forstandard, in-place branch forbrief. - Track:
extendedinitializesdocs/srs/srs-task-list-[slug].md; optional forstandard; none forbrief. - Code: implement with
common-tddor@specialist-tdd-implementerwhen sub-agents are supported. RED first: failing regression test -> fix -> GREEN. Characterize legacy behavior only when needed. - Follow
common-best-practicesand service-specificAGENTS.mdrules. Run the smallest foreground single-run target with a project timeout or 120-second fallback before escalating.
Step 3: Local Verification
- Focused check first: reproduce with the failing test, then focused tests + lint.
briefcompletes local verification here unless the bug is visual; every lane still runs its review gate in Step 4. - Visual QE (visual bugs in any lane; all
standard/extendedUI fixes): run the dev server, loadquality-engineering-playwright-cli(web) orquality-engineering-appium-mcp(mobile), its preflight, then the first driver rung. Run the repro steps and capture after snapshots. Fix sub-3px regressions only for these visual bugs. - Evidence: no success claim without fresh local evidence.
briefrecords it in the PR/MR body;standard/extendedrecord it indocs/srs/srs-walkthrough-[slug].mdwhen the lane creates artifacts. - Recompute SNC: run
pnpm snc:diff --declared <snc_tier>; if the computed tier is higher, apply that tier's approval/review gates before merge.
Step 4: Deliver PR
- Commit: generate the message with
caveman-commit. - PR/MR body: always include root cause, test added or changed, evidence, and a link to the source issue.
- Walkthrough:
extendedwritesdocs/srs/srs-walkthrough-[slug].mdfrom the Walkthrough Template; optional forstandard; none forbrief. - Review gate:
brief->fastcode-review;standard->deepcode-review;extended->deepcode-review plus independent reviewers and human approval before merge. No lane is review-free.
Runtime Contract
- Use for bug tickets that need root-cause remediation and a PR/MR.
- Load
common-decision-disciplineand apply its §8 continuation contract at entry and every handoff: the settled result selects the successor and specialized gates dominate. - Required inputs: issue URL/key or exported ticket text with reproduce steps.
- Lane defaults:
brief= failing test + focused verification + PR/MR body evidence;standard= self-reviewed inline plan;extended= full plan, readiness, task list, walkthrough. - Accepts a
test-loopREAL_BUG_DO_NOT_HEALhandoff as the ticket input: the healer'sTEST:andEVIDENCE:lines plus the failing AC are the reproduce steps. - Return BLOCKED only when repro steps, expected result, or root-cause hypothesis cannot be established.
Handoff Payload
slug,operator_profile(carried, not re-inferred),delivery_mode,snc_tier,model_tier, plan/task-list/walkthrough paths (omit paths the lane does not create), PR/MR link, outcome report, next workflow.
Blocking Questions
- Ask max 3 at a time with a recommended default and 2-3 options.
Artifact Templates
Used by
extended(plan, task list);standardmay use the plan or walkthrough inline.
Implementation Plan Template
# Implementation Plan: [Name]
## Goal
## Proposed Changes
## Task Slices
| Slice | Scope | Verification |
| ------- | ------- | -------------- |
| [slice] | [scope] | [verification] |
## Risks
## Verification Plan
## Next Workflow
implementation-readiness
Task Template
# Task: [Name]
## Scope
## Checklist
- [ ] [task]
## Decisions
## Evidence
## Next Workflow
verify-work
Walkthrough Template
# Walkthrough: [Name]
## Scope
## Acceptance Criteria
## Evidence
| Check | Result | Evidence |
| ------- | ------------------- | ---------- |
| [check] | [PASS/FAIL/BLOCKED] | [evidence] |
## Risks
## Outcome Report
{schema_version: 1, run_id: "[run-id]", slug: "[slug]", workflow: dev-fix, feature_status: implemented, started_at: "[timestamp]", completed_at: "[timestamp]", requirement_trace: {brd_objectives: [], requirements: [], acceptance_criteria: [], srs: []}, completed_evidence: [], missing_evidence: [], decision_needed: [], recommended_next_workflow: verify-work, cost: {source: unavailable}, agent: {identity: "[agent-identity]", model: "[model]"}}
## Next Workflow
verify-bug | verify-work
Cost Report
Call get_session_cost(workflow="dev-fix") before final handoff.
Anti-Patterns
- No Blind Implementation: Never write code before the lane's plan and gates are satisfied.
- No Process Inflation:
briefcreates no files underdocs/, worktrees, readiness gates, or HARD STOPs. - No Orphan Sessions: Always
closebrowser/appium sessions used during verification. - No unproven success: "I checked it manually" is not evidence; record it where the lane requires.