find-type-gaps

find-type-gaps is a skill for Claude Code from tomzx/agents. It costs 36 tokens per session (2,571 once invoked), scanned A, original, MIT.

A codebase scanner that finds missing or incomplete type annotations in Python, TypeScript, and JavaScript.

In plain words
What is it for?
Use it to prioritize typing public APIs and frequently changed files, including places that use overly broad types such as Any.
Why use it?
It shows where the lack of type information makes code harder to understand, refactor, or check before running it.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: positional $N argument.

Good fit Use it to prioritize typing public APIs and frequently changed files, including places that use overly broad types such as Any.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tomzx/agents/find-type-gaps
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add tomzx/agents --skill find-type-gaps
Clone the repo
git clone --depth 1 https://github.com/tomzx/agents

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for find-type-gaps

README.md
[![agentmods](https://agentmods.dev/badge/skills/tomzx/agents/find-type-gaps/github.svg)](https://agentmods.dev/skills/tomzx/agents/find-type-gaps)
Your own site
<a href="https://agentmods.dev/skills/tomzx/agents/find-type-gaps"><img src="https://agentmods.dev/badge/skills/tomzx/agents/find-type-gaps/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for find-type-gaps

Your own site · 80×15
<a href="https://agentmods.dev/skills/tomzx/agents/find-type-gaps"><img src="https://agentmods.dev/badge/skills/tomzx/agents/find-type-gaps.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,571 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00036 $0.02571
Opus 5.5 $0.00014 $0.01028
Sonnet 5.5 $0.00007 $0.00514
Haiku 4.5 $0.00004 $0.00257

Measured 21d ago against content hash c3c78fce9f92, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

find-type-gaps scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 21d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

| `src/client.py` | 42 | `def fetch(url, timeout)` | param types + return type |
skills/find-type-gaps/SKILL.md · 273 lines

How it starts

The opening of the file, as written. The whole thing — 273 lines — stays where its author put it; the contents beside it link to each section on GitHub.

TODAY=!date +%Y-%m-%d

Find Type Gaps

Identifies missing or incomplete type annotations in gradually-typed codebases. Type coverage is a safety net that supports test coverage: typed code catches a class of bugs at analysis time, makes refactoring safer, and reduces the effort of reading unfamiliar code. This skill lists gaps ranked by how much adding types would help — prioritizing public API surfaces and high-churn files.

Prerequisites

  • Working directory is the root of the repository
  • Optional: $1 — path to limit the scan (defaults to .)
  • Language support:
    • Python: mypy (uv tool install mypy) or pyright (npm install -g pyright)
    • TypeScript: type errors via tsc --noEmit; strict mode gaps via tsconfig.json flags
    • JavaScript: @ts-check JSDoc annotations; tsc --allowJs --checkJs
  • Not applicable to fully-typed languages (Go, Rust, Java, C#)

What Counts as a Type Gap

Language Gap
Python Function parameter with no annotation; return type missing; Any used where a concrete type is possible; untyped class attribute
TypeScript any used explicitly; as any cast; function with implicit any parameter; missing return type on exported function
JavaScript No JSDoc @param/@returns; no @ts-check at file top; untyped exported function

Steps

1. Detect Language

find ${1:-.} -type f | sed 's/.*\.//' | sort | uniq -c | sort -rn | head -5

Proceed only if Python, TypeScript, or JavaScript files are present. Report "not applicable" for fully-typed languages.

2. Measure Type Coverage

Python — mypy:

mypy ${1:-.} \
  --ignore-missing-imports \
  --no-error-summary \
  --any-exprs-report .mypy-type-report \
  2>/dev/null | rg "error:|note:" | head -40

Parse the any-exprs report for per-file coverage:

cat .mypy-type-report/any-exprs.txt 2>/dev/null | \
  awk 'NR>1 {print $3"% typed\t"$1}' | sort -n | head -30

Python — pyright (stricter, faster):

pyright ${1:-.} --outputjson 2>/dev/null | \
  python3 -c "
import json, sys
data = json.load(sys.stdin)
for d in data.get('generalDiagnostics', []):
    if 'unknown' in d.get('message','').lower() or 'Any' in d.get('message',''):
        print(d['file'].split('/')[-1], d['range']['start']['line'], d['message'][:80])
" 2>/dev/null | head -30

Read the full file on GitHub · 273 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 21d ago Changed · +7 lines c3c78fce9f92
  2. 24d ago Changed 49eeafc67ada
  3. 1mo ago First seen · 266 lines · 36 tokens per session scan A 329bea1f9528

Subscribe to this mod's changes

find-type-gaps is a skill published in the GitHub repository tomzx/agents (13 stars, last pushed yesterday), licensed MIT. It adds 36 tokens to every session and 2,571 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

plankton-code-quality

Write-time code quality enforcement using Plankton — auto-formatting, linting, and Claude-powered fixes on every file edit via hooks.

loulanyue/awesome-claude-notes · 34 tokens

best-practices

Language-specific best practices, code quality standards, and framework detection rules. Use when executing refactoring workflows, applying code quality rules, detecting frameworks, or checking language-specific patterns for TypeScript, Python, Go, Swift, or React.

FradSer/dotclaude · 52 tokens

verify-language

Language-specific verification for Python, TypeScript/JavaScript, and Go. Checks type safety, language idioms, and best practices. Use when asked to "verify language", "check types", or for language-specific checks.

Aurite-ai/agent-verifier · 48 tokens

kieran-python-reviewer

Reviews Python code with an extremely high quality bar for Pythonic patterns, type safety, and maintainability. Use after implementing features, modifying code, or creating new Python modules.

gvkhosla/compound-engineering-pi · 41 tokens

no-bare-casts

Writing as in TypeScript or TSX production code, modifying a file that contains a bare as cast, silencing a type error with a cast, encountering as unknown as, or reviewing a cast site.

prisma/orm · 52 tokens

remember

Review the current conversation and capture valuable knowledge — best practices, coding conventions, architecture decisions, workflows, and user feedback — into persistent memory (AGENTS.md) or reusable skills. Use when the user says: (1) remember this, (2) save what we learned, (3) update memory, (4) capture…

langchain-ai/deepagents · 71 tokens