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.
npx agentmods add skills/bgill55/daedalus/fix-typescript-buildnpx skills add bgill55/daedalus --skill fix-typescript-buildgit clone --depth 1 https://github.com/bgill55/daedalusWrote 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.
[](https://agentmods.dev/skills/bgill55/daedalus/fix-typescript-build)<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>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.
| Model | Per session | Once 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 |
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.
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 buildovernpx tsc.npx tscis not a declared dependency in most projects, sonpxwill try to download thetscpackage from the registry — that download is slow and flaky (and can be killed by the terminal's process-group isolation on Windows).npm run builduses the project's local TypeScript.
Process
- Get the full error list first. Run
npm run build(the project'sbuildscript). Only fall back tonpx tsc --noEmitif the project has nobuildscript. Capture EVERY error line. Do not guess — read the actual compiler output. - 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).
- Once confirmed, FIX FILE-SCOPED. For each target file:
- Read the file, make the minimal change (rename an unused param to
_x, switchobj.keytoobj['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.
- Read the file, make the minimal change (rename an unused param to
- Re-run
npm run buildafter each file (or each small batch) to confirm the errors for that file are gone. Iterate until the build is clean. - 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 = fixserver.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
todotool to track sprints so progress survives across turns.
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.
- 5d ago First seen · 57 lines · 38 tokens per session scan A e37088f7341e
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.
Other skills, from other repositories
coding-standards
Universal coding standards, best practices, and patterns for TypeScript, JavaScript, React, and Node.js development.
agent-booster
WASM-based instant code transforms for simple tasks, achieving 352x speedup over LLM inference with zero cost.
typescript-language
Apply modern TypeScript standards for type safety and maintainability. Use when working with types, interfaces, generics, enums, unions, or tsconfig settings.
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…
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".
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.