Skip to content
build-fix logo

Build Fix Skill

build-fix

Fix build and TypeScript errors with minimal changes

SKILL.md

Full skill instructions

Build Fix Skill

Fix build and compilation errors quickly with minimal code changes. Get the build green without refactoring.

When to Use

This skill activates when:

  • User says "fix the build", "build is broken"
  • TypeScript compilation fails
  • the build command or type checker reports errors
  • User requests "minimal fixes" for errors

What It Does

Delegates to the build-fixer agent (Sonnet model) to:

  1. Collect Errors

    • Run the project's type check command (e.g., tsc --noEmit, mypy, cargo check, go vet)
    • Or run the project's build command to get build failures
    • Categorize errors by type and severity
  2. Fix Strategically

    • Add type annotations where missing
    • Add null checks where needed
    • Fix import/​export statements
    • Resolve module resolution issues
    • Fix linter errors blocking build
  3. Minimal Diff Strategy

    • NO refactoring of unrelated code
    • NO architectural changes
    • NO performance optimizations
    • ONLY what's needed to make build pass
  4. Verify

    • Run the project's type check command after each fix
    • Ensure no new errors introduced
    • Stop when build passes

Agent Delegation

Task(
  subagent_type="oh-my-claudecode:build-fixer",
  model="sonnet",
  prompt="BUILD FIX TASK

Fix all build and TypeScript errors with minimal changes.

Requirements:
- Run tsc/​build to collect errors
- Fix errors one at a time
- Verify each fix doesn't introduce new errors
- NO refactoring, NO architectural changes
- Stop when build passes

Output: Build error resolution report with:
- List of errors fixed
- Lines changed per fix
- Final build status"
)

Stop Conditions

The build-fixer agent stops when:

  • Type check command exits with code 0
  • Build command completes successfully
  • No new errors introduced

Output Format

BUILD FIX REPORT
================

Errors Fixed: 12
Files Modified: 8
Lines Changed: 47

Fixes Applied:
1. src/​utils/​validation.ts:15 - Added return type annotation
2. src/​components/​Header.tsx:42 - Added null check for props.user
3. src/​api/​client.ts:89 - Fixed import path for axios
...

Final Build Status: ✓ PASSING
Verification: [type check command] (exit code 0)

Best Practices

  • One fix at a time - Easier to verify and debug
  • Minimal changes - Don't refactor while fixing
  • Document why - Comment non-obvious fixes
  • Test after - Ensure tests still pass

Use with Other Skills

Combine with other skills for comprehensive fixing:

With Ultrawork:

/​ultrawork fix all build errors

Spawns multiple build-fixer agents in parallel for different files.

With Ralph:

/​ralph fix the build

Keeps trying until build passes, even if it takes multiple iterations.

With Pipeline:

/​pipeline debug "build is failing"

Uses: explore → architect → build-fixer workflow.

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View