
fix
Diagnose and fix bugs with root-cause analysis and verification. Use when you have a concrete issue report, failing behavior, runtime error, or test regression that should be resolved safely. Stop and escalate to brainstorm when scope or risk grows.
- Installs
- 279
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/buiducnhat/cobrew --skill fix- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads fix automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Fix
Scope Gate (Required Before Starting)
Use this skill only when all conditions below are true:
-
Concrete issue signal exists
- Clear failing behavior, error, or regression is identified
- Enough evidence exists to begin diagnosis (logs, stack trace, failing test, or reproducible steps)
-
Likely localized fix path
- Issue appears constrained to a small area
- No expected cross-system redesign or migration
-
Low-to-moderate architectural risk
- Fix can be made without foundational changes
- No phased rollout/feature-flag strategy is expected
-
Straightforward verification path
- Reproduction and post-fix checks can be run in practical scope
- Success criteria can be validated directly
If any condition fails, escalate to brainstorm or write-plan.
Hard Stop Escalation Criteria
Immediately stop and switch to planning if any of these occur:
- Root cause remains unclear after focused investigation
- Fix requires cross-cutting architectural or data-model changes
- Scope expands into large refactor or multi-module migration
- Security/compliance-sensitive behavior is involved
- Verification reveals broad regressions requiring phased mitigation
- Multiple fix attempts fail without converging on a root cause
Escalation action:
- Stop all implementation activities.
- Output the exact message: "This fix exceeds safe single-pass debugging limits. Ask, Recommend
brainstormorwrite-planfirst to define phased diagnosis, implementation, and risk controls."
Workflow
Step 1: Intake and Contextualize
- Understand the reported bug and define explicit expected behavior.
- Collect/confirm minimum bug report fields:
- Title
- Expected behavior
- Actual behavior
- Reproduction steps
- Evidence (logs, trace, screenshot, failing test output)
- Environment (branch/OS/runtime/version if relevant)
- Impact/severity
- Load only the project context relevant to the bug:
- If
docs/SUMMARY.mdexists, read it first. - Load only task-relevant detail docs.
- Prioritize
Code Standarddocs for implementation conventions. - If docs conflict with code or user intent, use the available input/question tool before broad changes.
- If
Step 2: Reproduce and Diagnose
- Reproduce the issue consistently.
- Locate the failure point (file/function/line range/subsystem).
- Trace control/data flow to identify the root cause.
- Form a fix hypothesis and confirm it explains observed behavior.
Guidelines:
- Read surrounding code, not only the failing line.
- Prefer root-cause correction over symptom patching.
- Add temporary diagnostics only when needed; remove them after use.
Step 3: Decide Small vs Bigger Fix
Classify the work before coding:
Small fix (continue in this skill)
Most are true:
- Root cause is clear and validated
- Change surface is narrow (typically a few files)
- Regression risk is limited and testable quickly
Bigger/risky fix (escalate to brainstorm or write-plan)
Any are true:
- Root cause is uncertain
- Multiple subsystems must change together
- Requires migration, rollout sequencing, or broad refactor
- Risk cannot be reasonably controlled in a single pass
If it is a bigger fix, follow Hard Stop Escalation Criteria.
Step 4: Implement (Small Fix Path)
- State a brief 1-3 bullet implementation plan.
- Apply the smallest targeted change that resolves the root cause.
- Keep scope strict; avoid unrelated refactors.
- Add/update regression tests when applicable.
Step 5: Verify
Run validation in increasing scope:
- Focused checks for the changed behavior/module
- Nearby regression checks
- Relevant project checks (lint/typecheck/tests/build) as needed
Fix is complete only when:
- Reproduction no longer fails
- Expected behavior is confirmed
- No critical regressions are introduced
If verification indicates broader impact, escalate to brainstorm or write-plan.
Step 6: Complete and Report
Provide a concise completion report with:
- Root cause
- What changed
- Why this fix works
- Verification performed and results
- Residual risks / follow-ups
If behavior or documentation-relevant rules changed, update the minimal relevant docs. If architecture changed, this should have been escalated.
Rules
- Do not guess when key context is missing.
- Always prioritize root-cause fixes.
- Keep blast radius minimal.
- Do not mark done without verification.
- Escalate early when scope/risk exceeds this skill.
Optional Bug Report Template
Use when the report is incomplete:
- Title:
- Expected behavior:
- Actual behavior:
- Reproduction steps:
- Error logs/stack trace:
- Environment:
- Impact/severity:
- Additional context:
FAQ
What does the fix skill do?
Diagnose and fix bugs with root-cause analysis and verification. Use when you have a concrete issue report, failing behavior, runtime error, or test regression that should be resolved safely. Stop and escalate to brainstorm when scope or risk grows.
How do I install fix?
Run npx skills add https://github.com/buiducnhat/cobrew --skill fix in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/fix/ (personal) or .claude/skills/fix/ (project).
Which AI agents can use fix?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is fix safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains fix?
It is published by buiducnhat in buiducnhat/cobrew. It has 279 recorded installs.
More from buiducnhat/cobrew
brainstorm
buiducnhat/cobrew
Collaborative discovery and design framing for ambiguous or high-risk work. Use when requirements are unclear, multiple approaches are possible, or you need to turn an idea into a validated design brief before planning or coding.
execute-plan
buiducnhat/cobrew
Execute an approved implementation plan exactly and safely. Use for ExecPlan-style plan execution, resumable phase checklists, multi-hour implementation work, migrations, significant refactors, and plans that require verification checkpoints, status tracking, and final reporting.
write-plan
buiducnhat/cobrew
Create detailed, execution-ready implementation plans for complex or high-risk changes without coding. Use for ExecPlan-style work, multi-hour changes, significant refactors, migrations, resumable phase checklists, and work that should be handed off to execute-plan with clear validation.
docs
buiducnhat/cobrew
Create or refresh project documentation in docs/. Use when a project needs docs initialized or existing docs synced to the current codebase.
ask
buiducnhat/cobrew
Structured clarification and requirements gathering through focused dialogue or with dry code. Use when a task is ambiguous, underspecified, or requires user input before any action can be taken. Do not plan or implement anything—only ask questions to collect the information needed.
Popular testing & qa skills
tdd
mattpocock/skills
Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.
grilling
mattpocock/skills
Grill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases.
migrate-to-shoehorn
mattpocock/skills
Migrate test files from as type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to replace as in tests, or needs partial test data.
run-train
lllllllama/rigorpilot-skills
Rigor Train skill for deep learning research repositories. Use when a documented or selected training command should be run conservatively for startup verification, short-run verification, full kickoff, or resume, with command, config, seed, log, checkpoint, status, and metric evidence written to standardized trainoutputs/. Do not use for environment setup, exploratory sweeps, speculative idea implementation, or end-to-end orchestration.
test-driven-development
obra/superpowers
Use when implementing any feature or bugfix, before writing implementation code
finishing-a-development-branch
obra/superpowers
Use when implementation is complete, all tests pass, and you need to decide how to integrate the work