AgentSkillsCN

build-fix

增量修复——逐步解决 TypeScript 错误与构建问题,调用 build-error-resolver 代理协助修复。

SKILL.md
--- frontmatter
name: build-fix
description: Build and Fix - incrementally fix TypeScript and build errors. Invokes build-error-resolver agent.
disable-model-invocation: true

Build and Fix Command

This command invokes the build-error-resolver agent to fix TypeScript, compilation, and build errors with minimal diffs.

What This Command Does

  1. Diagnose - Run tsc, eslint, npm run build
  2. Fix incrementally - One error at a time, minimal changes
  3. No architecture changes - Only fix errors, no refactoring
  4. Verify - Re-run build after each fix

When to Use

Use /build-fix when:

  • Build fails (TypeScript, compilation, module resolution)
  • Type errors occur
  • Import/export or dependency issues
  • Configuration errors (tsconfig, webpack, Next.js)

How It Works

The build-error-resolver agent uses tsc --noEmit, ESLint, and project build commands to diagnose and fix errors with the smallest possible changes. It does not refactor or redesign.

Related

  • Agent: agents/build-error-resolver.md
  • Use build-fix proactively when build is red