AgentSkillsCN

build-fix

迁移并运行Claude命令build-fix.md中的工作流程。当被要求执行与“构建—修复”相关的任务时,例如:逐步修复TypeScript与构建过程中的各类错误:

SKILL.md
--- frontmatter
name: "build-fix"
description: "Migrate and run the workflow from Claude command build-fix.md. Use when asked to perform tasks matching build-fix, for example: Incrementally fix TypeScript and build errors:"

Build and Fix

Overview

Use this skill to execute the existing workflow migrated from build-fix.md. Follow the playbook below and adapt commands to the current repository context.

Playbook

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!