Skip to content
Back to skills

Fix Type Errors

ASecurity

Runs your type checker and fixes each reported error at its root cause, never with casts, any or suppression comments.

  • 3 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 15, 2026
ai-agentsgo

Security analysis

A100/100

Scanned November 15, 2026

npx -y skills add workspace-templates/ai-agent-templates --skill fix-type-errors --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Fix Type Errors?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Fix Type Errors
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/workspace-templates-fix-type-errors/badge)](https://www.skillsdirectory.com/skills/workspace-templates-fix-type-errors)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: fix-type-errors
description: Runs your type checker and fixes each reported error at its root cause, never with casts, any or suppression comments.
argument-hint: "[optional file or error code]"
user-invocable: true
disable-model-invocation: true
---

Fix the type errors in this project. Scope: $ARGUMENTS (everything if empty).

1. Find the checker command in package.json scripts, pyproject, tox or CI config (`tsc --noEmit`, `mypy .`, `pyright`, `go vet`, `cargo check`). Run it and save the full error list with the count.
2. Group errors by root cause: a changed library type, a wrong interface, a missing null check, an outdated mock. Fix the root first and re-run, since many errors usually vanish together.
3. Fix each one with a correct type or a real guard. Never add `as any`, `as unknown as`, `!` non-null assertions, `@ts-ignore`, `@ts-expect-error` or `# type: ignore`, and never loosen the compiler options.
4. If the fix would require changing behavior, or the error reveals a genuine bug, stop on that item and describe it with the file and line.
5. Re-run the checker until clean or until only the stopped items remain. Then run the tests.

Report the count before and after, the root causes found, any bugs, and the files changed. Ask before changing any public type that other packages consume.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.