Files
sar/.agents/skills/wds-5-agentic-development/workflow-bugfixing.md
julian 17c08e6392 chore: initial monorepo scaffold + WDS Phase 1+2 artifacts
- Nx 22.7 monorepo (pnpm 11.1, TypeScript 5.9, Node 24)
- apps/api: NestJS 11 (CJS conforme CODING-RULES.md PGD-DB-004)
- apps/web: React 19 + Vite 8 (ESM)
- libs/shared/api-interface: Zod contract base
- Docker Compose dev: Postgres 18, Valkey 8, MinIO, Mailpit
- WDS artifacts:
  - design-artifacts/A-Product-Brief/ (5 docs canônicos + 16 dialogs)
  - design-artifacts/B-Trigger-Map/ (hub + 4 personas + feature impact)
- Stack canon: STACK.md v2.2 + CODING-RULES.md v2.0 + brand.md
- AGENTS.md + README.md como entrada para devs/agentes

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-27 14:34:20 +00:00

2.1 KiB

name, description
name description
bugfixing Fix bugs in existing code through structured investigation and verification

[F] Bugfixing — Fix Bugs in Existing Code

Goal: Systematically investigate, fix, and verify bugs with minimal side effects.

When to use: A bug has been reported or discovered in existing code.


CORE PRINCIPLES

  • Reproduce first — Never fix what you cannot reproduce. A fix without reproduction is a guess.
  • Minimal fix — Target the root cause with the smallest change possible. Do not refactor surrounding code during a bugfix.
  • Regression check — Every fix must be verified against the original bug AND tested for side effects on related functionality.

INITIALIZATION

Design Log

Read {output_folder}/_progress/00-design-log.md. Check Current and Backlog for context.

Essential Guides


STEPS

Execute steps in ./steps-f/:

Step File Purpose
01 step-01-reproduce.md Reproduce and document the bug
02 step-02-investigate.md Investigate root cause
03 step-03-fix.md Implement the fix
04 step-04-verify.md Verify fix, check regressions
05 step-05-document.md Document fix, update tests

Flow: 01 → 02 → 03 → 04 → 05

Critical Rules

  • ALWAYS reproduce the bug before investigating
  • ALWAYS identify root cause before writing a fix
  • ALWAYS create a test that catches the bug before fixing
  • ALWAYS run regression checks after fixing
  • NEVER refactor surrounding code in the same fix
  • NEVER fix symptoms — fix the root cause

AFTER COMPLETION

  1. Append a progress entry to {output_folder}/_progress/00-design-log.md under ## Progress: ### [date] — Bugfix: [what was fixed]
  2. Suggest re-running acceptance testing (Phase 5 [T]) to verify the fix