peterponyu/oh-my-copilot/build-fix
Claude Code and agent skill by peterponyu/oh-my-copilot
- community
Checking that the SKILL.md file is still in the repository.
[OMCP] Fix build, typecheck, or compile errors with minimal changes until the build is green
Install
npx vskill@latest install peterponyu/oh-my-copilot/build-fixSKILL.md
The same SKILL.md was published earlier as peterponyu/oh-my-copilot/build-fix.
[OMCP] Build Fix
Use this skill when a build, typecheck, or compile step is red and the goal is to get it green with the smallest possible diff. Not for refactors, architectural changes, or feature work — those go through the regular implementation skills.
Agent orchestration
This skill coordinates debugger for error categorization and minimal-fix proposals, and verifier for confirming each fix actually clears the error without introducing new ones.
When to use
- "fix the build", "build is broken", "tests won't compile"
- TypeScript / Rust / Go / Python typecheck fails
- Linter errors blocking the build
- Module resolution or import errors after a refactor
When not to use
- The failure is a runtime bug (use
/omcp:debuginstead). - The diff would need to be large or cross-cutting (use
/omcp:planfirst). - A test is logically failing rather than failing to compile (use
/omcp:verify or /omcp:debug).
Run
- Identify the actual build command(s) from the repo (look for
package.json
scripts, Makefile, cargo, go build, tsc, pytest --collect-only, etc.). Do not invent commands.
- Run the build and capture the full error output. Read the actual output;
do not infer.
- Categorize each error by location, kind, and likely cause. Group fixes
that share a root cause.
- Apply the smallest fix that clears each error class:
- Add missing type annotations or imports.
- Fix obvious typos and renames.
- Add the smallest null/guard checks the type system requires.
- Restore deleted re-exports only if other code already depends on them.
- Re-run the build after each fix or fix-cluster. Stop when the build exits
green.
- If a fix would require non-trivial design changes, **stop and surface the
decision** rather than guessing.
Hard constraints
- No refactoring of unrelated code.
- No architectural changes.
- No performance "while I'm here" improvements.
- No silent
// @ts-ignore,# type: ignore, oreslint-disablewithout an
explicit reason and the user's acknowledgement.
- Do not weaken types or delete tests to silence errors.
Output format
Goal
- get the build green with the smallest diff possible;
- never trade short-term green for long-term fragility;
- when in doubt, stop and ask rather than mask.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/copilot-cli-plugin/skills/build-fix/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/peterponyu/oh-my-copilot/build-fix)