mk:build-fix

mk:build-fix is a skill for Claude Code from ngocsangyem/MeowKit. It costs 24 tokens per session (1,634 once invoked), scanned C, original, MIT.

A workflow for diagnosing failed builds, compilation errors, and type-checking errors across several programming languages.

In plain words
What is it for?
Use it for failures from commands such as npm build, TypeScript checks, mypy, Go builds, Python builds, or Cargo builds.
Why use it?
It classifies the error, applies a matching fix, and checks whether the build succeeds, reducing repeated manual error triage.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it for failures from commands such as npm build, TypeScript checks, mypy, Go builds, Python builds, or Cargo builds.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ngocsangyem/meowkit/build-fix
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ngocsangyem/MeowKit --skill build-fix
Clone the repo
git clone --depth 1 https://github.com/ngocsangyem/MeowKit

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mk:build-fix

README.md
[![agentmods](https://agentmods.dev/badge/skills/ngocsangyem/meowkit/build-fix/github.svg)](https://agentmods.dev/skills/ngocsangyem/meowkit/build-fix)
Your own site
<a href="https://agentmods.dev/skills/ngocsangyem/meowkit/build-fix"><img src="https://agentmods.dev/badge/skills/ngocsangyem/meowkit/build-fix/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mk:build-fix

Your own site · 80×15
<a href="https://agentmods.dev/skills/ngocsangyem/meowkit/build-fix"><img src="https://agentmods.dev/badge/skills/ngocsangyem/meowkit/build-fix.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,634 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00024 $0.01634
Opus 5.5 $0.00010 $0.00654
Sonnet 5.5 $0.00005 $0.00327
Haiku 4.5 $0.00002 $0.00163

Measured today against content hash 1eac476b7e47, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

mk:build-fix scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- **Different error output on cold vs warm cache means fixing the wrong error** — a first clean build often surfaces errors that incremental builds skip; fix errors only after a full clean build (`rm -rf dist .tsbuildinf
.claude/skills/build-fix/SKILL.md · 135 lines

How it starts

The opening of the file, as written. The whole thing — 135 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Build Fix

Goal: get a failing build, compile or type-check command to green with the smallest change, then confirm with mk:verify.

Detects the language from the error output, loads the matching reference, classifies each error by fixability, applies the fix, and chains into mk:verify to confirm the build is green.

When to Use

  • Build command fails (npm run build, tsc, go build, python -m build, cargo build), type-check errors (TypeScript TS\d{4}, mypy), or compilation errors in any language.
  • Triggers: "build failed", "fix build", "compilation error", "type error".
  • Not here: if the build passes and behavior is wrong, stop and use mk:fix; to find out why something fails without editing, use mk:investigate.

Phase Anchor

Phase: 3 (Build GREEN) Handoff: If mk:verify passes, proceed to Phase 4 (Review). If 3 attempts are exhausted, escalate to the user.

Process

Step 1: Capture Error Output

Run the failing build command and capture full output. If error output was passed as input, use that directly.

Step 2: Detect Language

Match error patterns in order (first match wins):

Pattern Language Reference
error TS\d{4}: TypeScript references/typescript-errors.md
ModuleNotFoundError: or IndentationError:, or SyntaxError: in a Python traceback Python references/python-errors.md
SyntaxError: in a JavaScript or Node.js stack JavaScript references/general-errors.md
cannot find package or undefined: or syntax error near (Go) Go references/general-errors.md
error[E\d{4}] (Rust) Rust references/general-errors.md
Any other pattern Unknown references/general-errors.md

SyntaxError: alone is ambiguous. Use the command, file extension and stack trace to identify the runtime; if it is unclear, start with the general reference.

Load the matched reference file before proceeding to Step 3.

Step 3: Classify Error Fixability

Read the full file on GitHub · 135 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +3 lines 1eac476b7e47
  2. 6d ago Changed · +2 lines 86f81217d4f6
  3. 13d ago Changed · -6 tokens per session 2f83dca22ea0
  4. 20d ago Changed · -33 tokens per session 1ccd4f99ee29
  5. 2mo ago First seen · 130 lines · 63 tokens per session scan C b79db6bae82f

Subscribe to this mod's changes

mk:build-fix is a skill published in the GitHub repository ngocsangyem/MeowKit (17 stars, last pushed yesterday), licensed MIT. It adds 24 tokens to every session and 1,634 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

mk:build-fix compared with skills from other repositories

mk:build-fix next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mk:build-fixngocsangyem/MeowKitSkill17yesterdayMITC24Claude Code
code-hidden-failureslaurigates/claude-pluginsSkill60todayMITA45Claude Code
comfy-metadatalaurigates/claude-pluginsSkill60todayMITA54Claude Code
comfyui-node-authoringlaurigates/claude-pluginsSkill60todayMITA52Claude Code
configure-sentrylaurigates/claude-pluginsSkill60todayMITA40Claude Code
tool-result-trapslaurigates/claude-pluginsSkill60todayMITA68Claude Code
debugging-methodologylaurigates/claude-pluginsSkill60todayMITA44Claude Code