build-and-fix

build-and-fix is a skill for Claude Code from yu-iskw/coding-agent-fabric. It costs 43 tokens per session (373 once invoked), scanned A, a copy of build-and-fix, Apache-2.0.

An automated loop that runs the project build, investigates compilation or type errors, makes the smallest needed fix, and builds again. TypeScript is a programming language that checks many code mistakes before running a program.

In plain words
What is it for?
Use it when the project does not build, after major code changes, or when TypeScript reports compilation or type mismatches.
Why use it?
It handles the repeated build-and-recheck process and helps resolve incorrect types, imports, or related build errors.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it when the project does not build, after major code changes, or when TypeScript reports compilation or type mismatches.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yu-iskw/coding-agent-fabric/build-and-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 yu-iskw/coding-agent-fabric --skill build-and-fix
Clone the repo
git clone --depth 1 https://github.com/yu-iskw/coding-agent-fabric

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 build-and-fix

README.md
[![agentmods](https://agentmods.dev/badge/skills/yu-iskw/coding-agent-fabric/build-and-fix.svg)](https://agentmods.dev/skills/yu-iskw/coding-agent-fabric/build-and-fix)
Your own site
<a href="https://agentmods.dev/skills/yu-iskw/coding-agent-fabric/build-and-fix"><img src="https://agentmods.dev/badge/skills/yu-iskw/coding-agent-fabric/build-and-fix.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 373 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod 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.00043 $0.00373
Opus 5 $0.00022 $0.00187
Sonnet 5 $0.00009 $0.00075
Haiku 4.5 $0.00004 $0.00037

Measured 8d ago against content hash f068a331b8f7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

build-and-fix scanned grade A with 0 findings 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 8d ago.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to build-and-fix — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/skills/build-and-fix/SKILL.md · 41 lines

What it actually says

Build and Fix Loop

Purpose

An autonomous loop for the agent to identify, analyze, and fix build errors using pnpm build.

Loop Logic

  1. Identify: Run pnpm build to identify build failures.
  2. Analyze: Examine the build output to determine:
  3. Fix: Apply the minimum necessary change to resolve the error (e.g., fixing TypeScript types, correcting imports, or updating configurations).
  4. Verify: Re-run pnpm build.
    • If passed: Finish.
    • If failed: Analyze the new failure and repeat the loop.

Termination Criteria

  • The project builds successfully (as reported by pnpm build).
  • Reached max iteration limit (default: 5).
  • The error persists after multiple distinct fix attempts, indicating a need for human intervention.

Examples

Scenario: Fixing a TypeScript compilation error

  1. pnpm build fails because of a type mismatch in packages/common/src/index.ts.
  2. Agent analyzes the error and finds an incorrect interface implementation.

Resources

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. 8d ago First seen · 41 lines · 43 tokens per session scan A f068a331b8f7

Subscribe to this mod's changes

build-and-fix is a skill published in the GitHub repository yu-iskw/coding-agent-fabric (1 stars, last pushed 7d ago), licensed Apache-2.0. It adds 43 tokens to every session and 373 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to build-and-fix, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

firebase-crashlytics

Use when implementing crash reporting, capturing fatal/non-fatal errors, recording isolate/async exceptions, customizing reports, or uploading obfuscated symbols.

evanca/flutter-ai-rules · 34 tokens

flutter-errors

Use when hitting layout errors (RenderFlex overflow, unbounded constraints, RenderBox not laid out), scroll errors, or setState-during-build errors.

evanca/flutter-ai-rules · 34 tokens

code-context

How to answer codebase questions with the code-context MCP tools (search, sql, reindex): ranked hybrid keyword+semantic search, relevance-ranked SQL aggregation over the index, and index lifecycle. Use when a question spans many files ("how does X work", "where is Y handled"), when ranking or counting code by topic…

infino-ai/code-context · 103 tokens

support-ticket-triage

Triage support tickets by pulling helpdesk context, searching issue trackers and knowledge bases in parallel, classifying the issue, and giving reps a recommended next action.

zapier/gtm-cheat-codes · 38 tokens

audit-performance

Audit runtime performance (CWV, load priority). Use when "slow page", "LCP/INP/CLS", "fetchpriority", "early hints", "speculation rules", "bfcache", or "long tasks". JS payload → audit-bundle-size. Instant nav implement → enhance-web-instant-nav. Breaking point → test-load.

kensaurus/cursor-kenji · 75 tokens

debug-fe-be-integration

Diagnose and fix frontend↔backend contract failures by tracing client requests, server logs, validation, auth, and responses on both sides. Use for API 4xx/5xx, mismatched payloads, validation failures, or "frontend and backend disagree". Single-layer errors → debug-error.

kensaurus/cursor-kenji · 66 tokens