AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Ag Corrigir Tipos

skill-andregusman-raiz-a-gusman-claude-ag-corrigir-tipos · by andregusman-raiz

Corrige erros TypeScript com auto-routing. Scan (diagnosticar), Fix (batch incremental), Sweep (varredura com ratchet), Audit-any (auditoria proativa de any/inferencias fracas). Substitui workflow manual de typecheck.

No reviews yet
0 installs
17 views
0.0% view→install

Install

$ agentstack add skill-andregusman-raiz-a-gusman-claude-ag-corrigir-tipos

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-andregusman-raiz-a-gusman-claude-ag-corrigir-tipos)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
1mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Ag Corrigir Tipos? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

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 , Array, Promise, Record`
  • Cross-check: variavel realmente nao tem tipo derivavel? (sugerir unknown ou tipo concreto)
  • Excecoes legitimas: testes, mocks, type guards intencionais (anotar // expected: any)

2. Props sem interface/type

  • Para cada componente React (function ou arrow), verificar:
  • Tem Props interface/type declarado?
  • OU usa React.FC?
  • OU destructura props sem tipo (function Foo({ x, y }) {} sem annotation)?
  • Sugerir interface inferida a partir do uso de props no body

3. Inconsistencia interface vs type

  • Contar uso de interface X vs type X = { ... }
  • Se projeto tem > 70% de um e ` para responses de API (sugerir Zod schema)
  • Object, {}, Function — anti-patterns conhecidos

Pipeline --audit-any

# 1. Setup
bunx eslint --rule '@typescript-eslint/no-explicit-any: warn' \
  --rule '@typescript-eslint/no-unsafe-assignment: warn' \
  --rule '@typescript-eslint/no-unsafe-return: warn' \
  --rule '@typescript-eslint/explicit-module-boundary-types: warn' \
  --format json --ext .ts,.tsx src/ app/ components/ > any-audit.json

# 2. AST custom (props sem tipo)
# Spawn ag-corrigir-tipos com prompt especifico para coletar componentes sem Props interface

# 3. Contagem interface vs type
grep -c '^interface ' src/**/*.ts > interface-count
grep -c '^type .* = {' src/**/*.ts > type-count

Output --audit-any

Escreve docs/diagnosticos/typescript-audit-YYYY-MM-DD.md:

# TypeScript Audit — [projeto] — [data]

## Resumo
- Arquivos scanned: N
- `any` explicito: N ocorrencias em N arquivos
- Props sem tipo: N componentes
- Inconsistencia interface vs type: N% / N%
- Tipos pouco restritivos: N candidatos

## Top 10 ocorrencias de `any`
| Arquivo:linha | Snippet | Fix sugerido |
|---|---|---|

## Componentes sem Props interface
[path:linha + props destructured + interface sugerida]

## Tipos pouco restritivos
[path:linha + tipo atual + tipo sugerido + razao]

Apply mode (apos --audit-any + user approval): pode invocar --fix para casos HIGH-confidence (substituir as any por unknown + narrowing, adicionar Props interface inferida).

Escalacao

Erros nao-resolvidos

Se erro de tipo resiste a 3 tentativas de fix:

  • Documentar em errors-log.md
  • Escalar para ag-depurar-erro (depurar) se causa raiz nao-obvia
  • Escalar para ag-registrar-issue (registrar-issue) se requer mudanca arquitetural

Pos-Sweep

Apos sweep completo, spawnar ag-testar-codigo para validar que fixes nao quebraram funcionalidade.

Sinais de Ativacao (para ag-0-orquestrador)

| Sinal do usuario | Modo | |-------------------|------| | "corrigir tipos", "fix typescript", "typecheck" | auto-detect | | "diagnosticar tipos", "quantos erros TS" | --scan | | "limpar tipos", "sweep typescript", "zerar erros" | --sweep | | "erros de tipo no [arquivo]" | --fix (escopo limitado) | | "reducir error budget", "ratchet" | --sweep | | "audit any", "scan any", "props sem tipo", "interface vs type" | --audit-any |

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.