home / skills / duc01226 / easyplatform / fix-types
This skill helps you fix type errors across TypeScript projects by running typecheck utilities and resolving issues without using any.
npx playbooks add skill duc01226/easyplatform --skill fix-typesReview the files below or copy the command above to add this skill to your agents.
---
name: fix-types
description: "[Fix & Debug] ⚡ Fix type errors"
infer: true
---
Run `bun run typecheck` or `tsc` or `npx tsc` and fix all type errors.
## ⚠️ Anti-Hallucination Reminder
**Before modifying ANY code:** Verify assumptions with actual code evidence. Search for usages, read implementations, trace dependencies. If confidence < 90% on any change, investigate first or ask user. See `.claude/skills/shared/anti-hallucination-protocol.md` for full protocol.
## Rules
- Fix all of type errors and repeat the process until there are no more type errors.
- Do not use `any` just to pass the type check.
## IMPORTANT Task Planning Notes
- Always plan and break many small todo tasks
- Always add a final review todo task to review the works done at the end to find any fix or enhancement needed
This skill fixes TypeScript type errors across a codebase until no type errors remain. It runs the project type checker, analyzes errors, designs small, verifiable fixes, and iterates until clean. The process emphasizes evidence-driven changes and avoids using any as a shortcut.
The workflow runs the configured type checker (bun run typecheck, tsc, or npx tsc) to collect all type diagnostics. For each diagnostic it locates usages and implementations, verifies assumptions in code, and applies minimal typed fixes. It repeats type checking and fixes until zero type errors remain, then performs a final review.
What if I’m not confident about a suggested type change?
Do not modify code blindly. Investigate usage sites, run tests, and ask the repository owner or the original author if necessary. If confidence is under 90%, create an investigation TODO and pause fixes.
Is it ever acceptable to use any to pass type checks?
No. Using any is prohibited except as a documented, temporary stopgap during investigation. Prefer narrower types, unions, generics, or unknown with guarded casts.