fix-typecheck

Diagnose and fix TypeScript typecheck errors at their root cause until the full check passes.

Updated Aug 1, 2026
One-click install
npx skills add https://github.com/dxiiren/project-skeleton --skill fix-typecheck-dxiiren
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fix-typecheck
Source: https://github.com/dxiiren/project-skeleton/tree/main/.claude/skills-optional/fix-typecheck
Command: npx skills add https://github.com/dxiiren/project-skeleton --skill fix-typecheck-dxiiren

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Typecheck failures from tsc, vue-tsc, or nuxt typecheck block commits and pre-push hooks, and fixing them one error at a time without seeing the full picture wastes effort. This Skill captures all reported errors upfront, fixes the root cause in the source rather than suppressing it, and re-runs the full command until it reports zero errors. ## Core Features & Use Cases - Full error capture: Runs the project's complete typecheck command once to list every file and error code before editing anything. - Root-cause fixes: Reads the actual source and referenced types before editing, fixing shared type definitions instead of patching every call site. - Verified clean result: Re-runs the full command after fixes and pastes the clean output as proof before claiming done. - Use Case: A pre-push hook rejects your push with TS errors after a rebase; the Skill reads each error, corrects the underlying interface or adds proper null guards, and re-runs the typecheck until it passes. ## Quick Start Ask the assistant to fix the typecheck errors reported by the project's typecheck command and re-run it until clean.

Frequently Asked Questions about fix-typecheck

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix TypeScript typecheck errors blocking my git push?

Run the project's full typecheck command to capture every error, then fix each root cause in the source and re-run until it reports zero errors. The Skill handles this loop and pastes the clean result before declaring success.

How to fix 'Property does not exist on type' TypeScript errors?

Add the missing property to the interface or type at its definition, or cast at the boundary only if the value is genuinely dynamic. Always read the actual type definition first to verify the real shape before editing.

Does this work with vue-tsc and nuxt typecheck?

Yes, the Skill targets whatever typecheck command the project uses, including tsc, vue-tsc, and nuxt typecheck. The command is grounded per repository during project setup.

Why should I avoid using @ts-ignore to fix type errors?

Suppressing errors with @ts-ignore, @ts-expect-error, or 'as any' hides real type mismatches that can surface as runtime bugs. The correct approach is fixing the underlying type, isolating casts only when a third-party type is genuinely wrong.

Will it commit the fixes automatically?

No, it never auto-commits. When asked to commit, it stages only the touched files with a Conventional Commit message and adds no attribution footer.