Skip to content
Back to skills

Add Types

ASecurity

Adds precise type annotations to one file and fixes the checker errors that show up, without leaning on any or ignores.

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

Security analysis

A100/100

Scanned November 15, 2026

npx -y skills add workspace-templates/ai-agent-templates --skill add-types --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Add Types?

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

Security grade badge for Add Types
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/workspace-templates-add-types/badge)](https://www.skillsdirectory.com/skills/workspace-templates-add-types)

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: add-types
description: Adds precise type annotations to one file and fixes the checker errors that show up, without leaning on any or ignores.
argument-hint: "[file to type]"
user-invocable: true
disable-model-invocation: true
---

Add precise types to: $ARGUMENTS

1. Identify the language and the checker already configured (tsconfig.json, mypy.ini, pyproject.toml, pyright). Run it once and record the starting error count. Do not change checker settings.
2. Read the file and its callers and tests to learn the real shapes of parameters, return values and data structures. Check library types in node_modules or site-packages rather than guessing.
3. Annotate bottom-up: data shapes first (interfaces, TypedDict, dataclasses, enums, union literals), then function signatures, then variables the checker cannot infer.
4. Avoid `any`, `object`, `Any`, `as unknown as`, `# type: ignore` and `@ts-ignore`. If a value really is unknown, use `unknown` and narrow it.
5. Run the checker again and fix each error at its cause. If an error exposes a genuine bug, stop and describe it instead of silencing it.
6. Run the tests to make sure runtime behavior is unchanged.

Report starting versus ending error counts, the new types you defined, and any real bugs found. Do not edit other files without asking.

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.