AgentSkillsCN

build-fix

逐个逐步修复 TypeScript 错误与构建错误,每次修复后重新运行构建以验证问题是否已解决。

SKILL.md
--- frontmatter
name: build-fix
description: Incrementally fix TypeScript and build errors one at a time, re-running the build after each fix to verify resolution.
disable-model-invocation: true
allowed-tools: Bash, Read, Edit, Grep, Glob

Build and Fix

Incrementally fix TypeScript and build errors:

  1. Run build: npm run build or pnpm build

  2. Parse error output:

    • Group by file
    • Sort by severity
  3. For each error:

    • Show error context (5 lines before/after)
    • Explain the issue
    • Propose fix
    • Apply fix
    • Re-run build
    • Verify error resolved
  4. Stop if:

    • Fix introduces new errors
    • Same error persists after 3 attempts
    • User requests pause
  5. Show summary:

    • Errors fixed
    • Errors remaining
    • New errors introduced

Fix one error at a time for safety!