fix-report
Fix and Report
A high-integrity workflow for fixing bugs, ensuring regression testing, and maintaining a GitHub-synced audit trail.
Quick start
- Triage: Find the bug location and root cause.
- Issue: Create a GitHub issue with
gh issue create. - TDD: Write a failing test, then the fix.
- Log: Run
node fix-report/scripts/log-bug.jsto updatedocs/bugs/bug-log.csv. - Close: Update the GitHub issue with the final report.
Workflows
1. Diagnosis & Issue Creation
- Explore: Use
git logand codebase search to trace the error path. - Isolate: Identify the exact trigger (state, input, or environment).
- GitHub: Create the issue early. See REFERENCE.md for the Initial Triage template.
2. TDD Fix Cycle
- Plan: List affected files and rate risk (Low/Med/High).
- Red: Add a test case to the existing suite that reproduces the failure.
- Green: Apply the minimal fix. Follow existing style; no unrelated refactors.
3. Prevention & Verification
- Harden: Add a type guard, Zod schema update, or invariant check.
- Verify: Run
npm test,tsc, andlint. Ensure ALL tests pass, not just the new one. - Audit: Append the fix to
docs/bugs/bug-log.csv. Use the helper script to ensure column alignment.
4. Reporting & Handoff
- GitHub: Post the final Bug Fix Report as a comment or update the issue body.
- Git: Provide the user with Conventional Commit commands (
fix(scope): ...).
Guidelines
- Durability: Write tests that assert on observable behavior (API/UI), not internal state.
- No Suppression: Never use
@ts-ignoreoras anyto "fix" a bug. - Audit Trail: Always update the CSV log; it's the project's memory of past failures.
See REFERENCE.md for templates and EXAMPLES.md for scenarios.
More from danielvm-git/skills
triage-issue
Triage a bug or issue by exploring the codebase to find root cause, then create a GitHub issue with a TDD-based fix plan. Use when user reports a bug, wants to file an issue, mentions "triage", or wants to investigate and plan a fix for a problem.
11ubiquitous-language
Extract a DDD-style ubiquitous language glossary from the current conversation, flagging ambiguities and proposing canonical terms. Saves to UBIQUITOUS_LANGUAGE.md. Use when user wants to define domain terms, build a glossary, harden terminology, create a ubiquitous language, or mentions "domain model" or "DDD".
11write-a-skill
Create new agent skills with proper structure, progressive disclosure, and bundled resources. Use when user wants to create, write, or build a new skill.
11setup-pre-commit
Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting/typechecking/testing.
11tdd
Test-driven development with red-green-refactor loop. Use when user wants to build features or fix bugs using TDD, mentions "red-green-refactor", wants integration tests, or asks for test-first development.
10to-prd
Turn the current conversation context into a PRD and submit it as a GitHub issue. Use when user wants to create a PRD from the current context.
10