fix-typescript-build

fix-typescript-build is a skill for Claude Code, Codex from bgill55/daedalus. It costs 38 tokens per session (838 once invoked), scanned A, original, MIT.

A step-by-step method for fixing TypeScript type-checking errors in a project. Type checking checks whether code uses values and functions in ways the declared types allow; it does not create the final application bundle.

In plain words
What is it for?
Use it to diagnose a failing npm build or tsc check, review errors by file, fix confirmed groups of type errors, and rerun the project’s build command.
Why use it?
It gathers the complete error list, groups problems by file, and makes focused changes in batches. This keeps large fixes reviewable and avoids trying to change the whole codebase at once.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/bgill55/daedalus/fix-typescript-build
Any agent
npx skills add bgill55/daedalus --skill fix-typescript-build
Clone the repo
git clone --depth 1 https://github.com/bgill55/daedalus

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/bgill55/daedalus/fix-typescript-build.svg)](https://agentmods.dev/skills/bgill55/daedalus/fix-typescript-build)
Your own site
<a href="https://agentmods.dev/skills/bgill55/daedalus/fix-typescript-build"><img src="https://agentmods.dev/badge/skills/bgill55/daedalus/fix-typescript-build.svg" alt="Measured on agentmods" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 838 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00038 $0.00838
Opus 5 $0.00019 $0.00419
Sonnet 5 $0.00008 $0.00168
Haiku 4.5 $0.00004 $0.00084

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

Security

Grade A, and why

fix-typescript-build 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 5d 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.

src/skills/fix-typescript-build/SKILL.md · 57 lines

How it starts

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

Fixing a TypeScript Build (npm run build / tsc)

The project's build script is usually tsc --noEmit (a type-check, not a bundle). A failing build means type errors. Fix them deliberately — do NOT blast the whole codebase in one giant turn (that burns the context window and makes review impossible).

Prefer npm run build over npx tsc. npx tsc is not a declared dependency in most projects, so npx will try to download the tsc package from the registry — that download is slow and flaky (and can be killed by the terminal's process-group isolation on Windows). npm run build uses the project's local TypeScript.

Process

  1. Get the full error list first. Run npm run build (the project's build script). Only fall back to npx tsc --noEmit if the project has no build script. Capture EVERY error line. Do not guess — read the actual compiler output.
  2. Group errors by file. Most real projects concentrate errors in a few files. Present the grouped summary to the user and STOP to confirm scope before editing (audit/review etiquette: list findings, then ask which to fix).
  3. Once confirmed, FIX FILE-SCOPED. For each target file:
    • Read the file, make the minimal change (rename an unused param to _x, switch obj.key to obj['key'] when the type is an index signature, etc.).
    • The syntax checker will NOT false-revert a valid edit just because the file already had other errors — it diffs pre- vs post-edit diagnostics. So fix one file at a time confidently; a valid edit won't be blamed for pre-existing errors.
  4. Re-run npm run build after each file (or each small batch) to confirm the errors for that file are gone. Iterate until the build is clean.
  5. Run the test suite (npm test) to confirm nothing broke. Report the final state.

Context-window discipline (important)

  • Break the work into SPRINTS: e.g. Sprint 1 = fix validation.ts, Sprint 2 = fix server.ts. After each sprint, the build gets greener and you checkpoint.
  • Keep each turn's edits SMALL (one file, few lines). Do NOT dump a 100-line rewrite of a file that only needed 3 lines changed — that is what burns context and trips the patch tooling.
  • Use the todo tool to track sprints so progress survives across turns.

Read the full file on GitHub · 57 lines

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. 5d ago First seen · 57 lines · 38 tokens per session scan A e37088f7341e

Subscribe to this mod's changes

fix-typescript-build is a skill published in the GitHub repository bgill55/daedalus (4 stars, last pushed 5d ago), licensed MIT. It adds 38 tokens to every session and 838 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

coding-standards

Universal coding standards, best practices, and patterns for TypeScript, JavaScript, React, and Node.js development.

deepelementlab/jupyter-studio · 28 tokens

agent-booster

WASM-based instant code transforms for simple tasks, achieving 352x speedup over LLM inference with zero cost.

a5c-ai/babysitter · 28 tokens

typescript-language

Apply modern TypeScript standards for type safety and maintainability. Use when working with types, interfaces, generics, enums, unions, or tsconfig settings.

HoangNguyen0403/agent-skills-standard · 35 tokens

ark-sdk-development

Regenerate and debug types across the ARK stack (SDK, API, Dashboard). Use when fixing TypeScript type errors in ark-dashboard, updating types after CRD changes, regenerating types.ts from OpenAPI spec, debugging "Property does not exist on type" schema errors, or adding custom SDK functionality via overlays. Covers…

mckinsey/agents-at-scale-ark · 81 tokens

typescript-strict

Use this skill when writing or reviewing TypeScript code with strict mode in WrongStack. Triggers: user mentions "TypeScript", "strict", "type error", "type safety", "narrowing", "branded type", "discriminated union", "noUncheckedIndexedAccess".

WrongStack/WrongStack · 63 tokens

typescript-strict

TypeScript strict mode patterns with interfaces, type guards, generics, and utility types. Use when defining types, creating type-safe functions, handling nullable values, or implementing generic components.

BlackBeltTechnology/pi-agent-dashboard · 41 tokens