ag-corrigir-tipos

ag-corrigir-tipos is a skill for Claude Code from andregusman-raiz/a-gusman-claude. It costs 60 tokens per session (1,695 once invoked), scanned A, original, MIT.

An automatic workflow for finding and fixing TypeScript type errors, including weak or missing type definitions. TypeScript is JavaScript with optional type checking.

In plain words
What is it for?
Scanning errors, fixing small or large groups of errors, cleaning up a project after a library upgrade, and auditing uses of any or untyped props.
Why use it?
It replaces a manual type-checking process with modes for diagnosis, incremental fixes, broad cleanup and proactive checks.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: model in frontmatter; mentions subagents.

Good fit Scanning errors, fixing small or large groups of errors, cleaning up a project after a library upgrade, and auditing uses of any or untyped props.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/andregusman-raiz/a-gusman-claude/ag-corrigir-tipos
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 andregusman-raiz/a-gusman-claude --skill ag-corrigir-tipos
Clone the repo
git clone --depth 1 https://github.com/andregusman-raiz/a-gusman-claude

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 ag-corrigir-tipos

README.md
[![agentmods](https://agentmods.dev/badge/skills/andregusman-raiz/a-gusman-claude/ag-corrigir-tipos/github.svg)](https://agentmods.dev/skills/andregusman-raiz/a-gusman-claude/ag-corrigir-tipos)
Your own site
<a href="https://agentmods.dev/skills/andregusman-raiz/a-gusman-claude/ag-corrigir-tipos"><img src="https://agentmods.dev/badge/skills/andregusman-raiz/a-gusman-claude/ag-corrigir-tipos/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 ag-corrigir-tipos

Your own site · 80×15
<a href="https://agentmods.dev/skills/andregusman-raiz/a-gusman-claude/ag-corrigir-tipos"><img src="https://agentmods.dev/badge/skills/andregusman-raiz/a-gusman-claude/ag-corrigir-tipos.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,695 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 4
    Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.
    Fix: Remove the model/provider override or disclose it prominently and require explicit operator approval before invoking an external coding CLI or billed model.
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.00060 $0.01695
Opus 5.5 $0.00024 $0.00678
Sonnet 5.5 $0.00012 $0.00339
Haiku 4.5 $0.00006 $0.00169

Measured 2mo ago against content hash 55818c45eb26, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ag-corrigir-tipos scanned grade A with 0 findings 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 2mo 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/ag-corrigir-tipos/SKILL.md · 150 lines

How it starts

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

ag-corrigir-tipos — Fix TypeScript

Spawn the ag-corrigir-tipos agent to handle TypeScript error correction — from diagnosis to large-scale sweeps.

Auto-Routing

The agent auto-selects the best mode based on input:

Input Mode Behavior
"diagnosticar tipos" / desconhecido --scan Categorizar erros, gerar plano (read-only)
1-10 erros claros --fix Batch incremental, 5 arquivos/batch, commits
10-50 erros --fix Multiplos batches com quality gates
50+ erros / "limpar tipos" --sweep Varredura por categoria, ratchet threshold
"audit any" / "scan any" / "props sem tipo" --audit-any Auditoria proativa SEM precisar de erro TS
Pos-upgrade de lib ag-depurar-erro first Causa raiz, depois --fix

Invocation

Use the Agent tool with:

  • subagent_type: ag-corrigir-tipos
  • mode: bypassPermissions
  • run_in_background: true (except --fix < 10 errors which runs foreground)
  • prompt: Compose from template below + $ARGUMENTS

Prompt Template

Projeto: [CWD or user-provided path]
Modo: [--scan|--fix|--sweep] (ou auto-detect)
Escopo: [all | modulo | lista de arquivos]
Threshold CI: [numero, se aplicavel para ratchet]

Executar correcao de erros TypeScript no modo indicado (ou auto-detect).
Seguir quality gates: max 5 arquivos/batch, commit entre batches, zero `as any`.

Important

  • ALWAYS spawn as Agent subagent — do NOT execute inline
  • After spawning, confirm to the user
  • For --scan: agent is READ-ONLY, does NOT fix errors
  • For --fix: commits incrementally every 5 files
  • For --sweep: categorizes first, then attacks by type (easy→hard)
  • For --audit-any: READ-ONLY, audita codigo SEM depender de erros TS emitidos
  • NEVER uses as any, @ts-ignore, or relaxes strict mode
  • Memory safety: max 1 tsc process, uses LSP for quick checks

Modo --audit-any (auditoria proativa de qualidade de tipos)

Audita o codigo SEM precisar de erros TS emitidos pelo tsc. Detecta 4 problemas que strict mode nao captura sozinho:

Read the full file on GitHub · 150 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. 2mo ago First seen · 150 lines · 60 tokens per session scan A 55818c45eb26

Subscribe to this mod's changes

ag-corrigir-tipos is a skill published in the GitHub repository andregusman-raiz/a-gusman-claude (18 stars, last pushed 1mo ago), licensed MIT. It adds 60 tokens to every session and 1,695 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

cli-wiring

Bug class: Commands implemented in packages/squad-cli/src/cli/commands/ but never routed in cli-entry.ts.

github/gh-aw · 0 tokens

agents-sdk-typescript-debugging

Use when troubleshooting an agent built with the Microsoft Agents SDK (@microsoft/agents-hosting and related packages). Trigger on any of these symptoms: build or TypeScript errors, crashes on startup, 401 or auth errors on incoming requests, the bot not responding to messages, .env configuration problems, Azure AD…

microsoft/Agents · 125 tokens

config

How to author a kubb.config.ts and pick the right @kubb/plugin- packages when generating TypeScript from an OpenAPI/Swagger spec. Use whenever setting up Kubb, adding a generator, or debugging codegen output.

kubb-labs/kubb · 49 tokens

node-modules-inspector

Inspects a project's installed nodemodules and produces three reports: duplicated packages (installed in multiple versions), packages sorted by install size, and maintenance actions (dep-upgrade opportunities + publint findings, grouped by consumer/author). Use when the user wants to audit dependencies, find duplicate…

antfu/node-modules-inspector · 156 tokens

angular

Use when building, refactoring, or debugging Angular (v20/21+): standalone components, signals, zoneless change detection, @if/@for/@defer control flow, inject() DI, resource()/httpResource(), RxJS interop, NgRx SignalStore, ng CLI. NOT React (that is react), NOT Next.js (that is nextjs), NOT a TypeScript language…

ericrisco/rsc-harness · 89 tokens

extending-personhog-test-harness

When and how to add scenarios, chaos events, and invariants to the personhog e2e test harness (rust/personhog-test-harness). Use after fixing a bug or regression in the personhog leader path (leader, router, writer, replica, coordination protocol) so the fix gets a permanent regression scenario; when adding a new…

PostHog/posthog · 134 tokens