AgentSkillsCN

build-fix

逐步构建并修复 TypeScript 与构建错误:先运行构建命令,解析错误信息,逐一修复,再重新验证。

SKILL.md
--- frontmatter
name: build-fix
description: Build and Fix - Incrementally fix TypeScript and build errors. Run build, parse errors, fix one at a time, re-verify.

Build and Fix

Incrementally fix TypeScript and build errors:

  1. Run build: bun run 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!