AgentSkillsCN

bug-fixer

调试并修复各类Bug,包括404错误、虚假数据、功能失效以及类型错误。精准定位问题根源,并以最小化改动完成修复。

SKILL.md
--- frontmatter
name: bug-fixer
description: Debug and fix bugs including 404 errors, fake data, broken features, and type errors. Finds root cause and makes minimal fixes.
argument-hint: "Bug description (e.g., 'Fix: admin dashboard shows fake data')"
user-invocable: true
allowed-tools:
  - Read
  - Edit
  - Bash
  - Grep
  - Glob
model: claude-sonnet-4-5-20250929
context: fork
agent: bug-hunter
hooks:
  - type: PostToolUse
    tool: Edit
    script: !`npm test -- --run ${path.replace(/\.(ts|tsx)$/, '.test.$1')}`

bug-fixer Skill

Debug and fix bugs

When to use

404 errors, fake data, broken features, type errors

Example

/bug-fixer Fix: admin dashboard shows fake data - replace with real Supabase queries

What it does

  1. Analyzes the bug
  2. Finds root cause
  3. Makes minimal fixes
  4. Replaces mock → real data
  5. Runs targeted tests when needed
  6. Reports what changed

Quality checks

  • Root cause identified
  • Minimal changes only
  • Targeted tests pass (when run)
  • No new errors