AgentSkillsCN

type-ignore:fix

通过发现并调度并行修复代理,精准消除文件、目录或整个代码库中的类型忽略问题。当您需要清理多文件中的类型忽略、在发布前彻底清除忽略规则,或批量修复类型错误时,此工具将助您事半功倍。

SKILL.md
--- frontmatter
name: type-ignore:fix
description: |
  Fixes type ignores in a file, directory, or codebase by discovering ignores and dispatching parallel fixer agents. Use when cleaning up type ignores across multiple files, eliminating ignores before a release, or batch-fixing type errors.
context: fork
agent: general-purpose
allowed-tools: [Read, Grep, Glob, Task]

Type Ignore Fixer

Fix type errors instead of ignoring them.

Scope

$ARGUMENTS

If no scope provided, scan the entire codebase.

Type Ignores Found

!rg '@ts-ignore|@ts-expect-error|eslint-disable|biome-ignore|type:\s*ignore|noqa|pylint:\s*disable|//nolint|//lint:ignore|#\[allow\(' -g '*.{ts,tsx,js,jsx,py,go,rs,rb}' -l 2>/dev/null || echo "none found"

Process

  1. For each file above, spawn a type-ignore:fixer agent with prompt: "Fix type ignores in <file_path>"
  2. Run type checking to verify fixes
  3. Report summary: files fixed, ignores resolved, issues remaining

Spawn agents in parallel using multiple Task tool calls in a single message.