Deep audit of TypeScript codebases for type safety violations, unsafe casts, and runtime-risk anti-patterns.
- Identify runtime-risk type assertions that bypass compiler checks.
- Foundational audit during JavaScript to TypeScript migrations.
- Prevent production crashes by finding missing null/undefined guards.
Free
Included in download
- Downloadable skill package
- Works with Claude Code, Cursor
- 1 permission declared
Sample input
Audit the ./src directory for type safety. Focus on unsafe 'as' assertions, missing null checks on optional properties, and any suppressed errors.
Sample output
TypeScript Audit Results: 12 Issues Found
[Critical] src/api.ts:22 - Unsafe cast: 'as UserData'
- Risk: Bypasses runtime validation.
- Fix: Use a Zod schema to parse the response.
[High] src/state.ts:45 - Missing null check on 'user.profile.zip'
- Risk: Potential TypeError if profile is undefined.
typescript-type-auditor
by Timoranjes
Deep audit of TypeScript codebases for type safety violations, unsafe casts, and runtime-risk anti-patterns.
Free
Included in download
- Downloadable skill package
- Works with Claude Code, Cursor
- 1 permission declared
- Instant install
Sample input
Audit the ./src directory for type safety. Focus on unsafe 'as' assertions, missing null checks on optional properties, and any suppressed errors.
Sample output
TypeScript Audit Results: 12 Issues Found
[Critical] src/api.ts:22 - Unsafe cast: 'as UserData'
- Risk: Bypasses runtime validation.
- Fix: Use a Zod schema to parse the response.
[High] src/state.ts:45 - Missing null check on 'user.profile.zip'
- Risk: Potential TypeError if profile is undefined.
About This Skill
Deep Type Safety Auditing for TypeScript
The TypeScript Type Auditor is a specialized developer tool designed to bridge the gap between basic compiler checks and production-ready type safety. While `tsc` catches syntax errors, it often misses semantic risks like unsafe type assertions, hidden null pointers, and incomplete type narrowing that lead to runtime crashes.
What it does
This skill systematically scans your TypeScript codebase to identify high-risk anti-patterns. It goes beyond simple linting by analyzing the impact of code patterns on runtime stability. Key features include:
- Unsafe Pattern Detection: Identifies `as` assertions that bypass safety and `@ts-ignore` flags that hide bugs.
- Null & Exhaustiveness Checks: Flags missing null guards on optional properties and incomplete switch/if logic in discriminated unions.
- Severity Classification: Categorizes findings into Critical, High, Medium, and Low risks with prioritized remediation steps.
- Migration Support: Perfect for upgrading legacy projects or progressively tightening strict mode.
Why use this skill?
Manual type auditing is tedious and error-prone. This skill automates the discovery of "silent killers"—code that compiles perfectly but fails in production. It provides clear, actionable fix suggestions (like Zod schema validation for API calls) rather than just flagging errors. The output is a structured report that quantifies your type safety debt, making it an essential tool for PR reviews and sprint planning.
Use Cases
- Identify runtime-risk type assertions that bypass compiler checks.
- Foundational audit during JavaScript to TypeScript migrations.
- Prevent production crashes by finding missing null/undefined guards.
- Enforce exhaustive type narrowing in complex switch statements.
- Quantify technical debt with a categorized type-safety score.
Known Limitations
- Primarily regex-based: may show false positives on complex nested types.
- Declaration files: limited support for .d.ts files.
- Static only: cannot verify logic in custom type guards.
How to Install
mkdir -p ~/.claude/skills && curl -sL https://www.agensi.io/api/install/typescript-type-auditor -o /tmp/typescript-type-auditor.zip && unzip -o /tmp/typescript-type-auditor.zip -d ~/.claude/skills && rm /tmp/typescript-type-auditor.zipFree skills install directly. Paid skills require purchase - use the download button above after buying.
Reviews
No reviews yet - be the first to share your experience.
Only users who have downloaded or purchased this skill can leave a review.
No reviews yet - be the first to share your experience.
Only users who have downloaded or purchased this skill can leave a review.
Security Scanned
Passed automated security review
Permissions
Allowed Hosts
File Scopes
Claude Code, Cursor, Windsurf, Aider, and other SKILL.md-compatible agents.
Creator
Frequently Asked Questions
Learn More About AI Agent Skills
More Premium Skills

inline-comment
Best way to steer your agents, effortlessly.
World-Class Site & App Design
Every AI-built UI looks generic and templated. This skill teaches your agent to actually match the design to the project, the industry, and the audience.
designing-hybrid-context-layers
Architects the right retrieval strategy for every query — teaching your agent when to use RAG, a knowledge graph, or a temporal index instead of defaulting to vector search for everything.
ai-automation-qa-pack
Professional QA & UAT documentation generator for AI automation agencies and complex agent deployments.