← ClaudeAtlas

fix-errorslisted

Fix TypeScript build errors and Biome lint errors in the tokmeter monorepo. Use when: build fails, tsc errors, type errors, lint errors, biome errors, unused imports, unused variables, format errors, CI failing, errors after refactor.
sriinnu/tokmeter · ★ 0 · Code & Development · score 70
Install: claude install-skill sriinnu/tokmeter
# Fix Build and Lint Errors **You are an agent executing this skill. Read, act, and iterate — do not just summarise or list steps.** ## Execution Loop Run these commands now. Do not stop until both exit with code 0. ### Step 1 — Collect all errors ```bash bun run lint 2>&1 ``` Also call `get_errors` (VS Code diagnostics tool) to see inline TypeScript errors. ### Step 2 — Auto-fix everything Biome can fix ```bash bun run fix ``` (`fix` runs `biome check --write . && biome format --write .`) Re-run `bun run lint` and `get_errors`. If clean → done. Otherwise continue. ### Step 3 — Fix remaining errors manually For each remaining error, edit the file directly using the rules below, then re-run lint to confirm. **Do not add `biome-ignore` suppressions unless the rule genuinely cannot be fixed in code.** Fix first, suppress only as a last resort with an explanation comment. #### Type errors (`tsc` / `get_errors`) - Wrong types → fix the type annotation or the value - Missing property → add it or use optional chaining - Unresolved import → fix the import path; check `packages/*/src/index.ts` for exports #### Unused imports (`noUnusedImports`) - Remove the import if it is genuinely unused - Change to `import type` if only used as a type #### Unused variables (`noUnusedVariables`) - Remove the variable, or rename to `_varName` if intentionally unused #### Formatting (`format`) - Never reformat manually — run `bun run format` - If `biome.json` itself fails to parse: en