Detect and fix TypeScript error handling anti-patterns with state persistence and approval workflows. Use when scanning a codebase for silent error failures, empty catches, promise swallowing, or unlogged errors. Supports five modes — scan (detect all issues), review (interactive fix session), auto (batch fix with guardrails), resume (continue from last session), report (show progress). Triggers on phrases like 'scan for anti-patterns', 'fix error handling', 'find empty catches', 'anti-pattern c
Autonomous agent that systematically identifies and fixes TypeScript error handling anti-patterns.
Run with Bun (no install required):
CODEBLOCK0
Config via .antipatternrc.json:
CODEBLOCK1
Parse user intent to pick mode:
| User Says | Mode | Action |
|---|---|---|
| "scan", "detect", "find" | SCAN | Run detector, save state |
| "review", "fix", "help me fix" |
Always check .anti-pattern-state.json at the project root. On first SCAN, ask if resuming when it exists.
CODEBLOCK2
Issue schema: id, file, line, pattern, severity (critical/high/medium), is_critical_path, status (pending/fixed/approved_override/skipped), code_snippet.
See workflows.md for full per-mode workflows. Summary:
.anti-pattern-state.json → continue from first pending issueOnly suggest APPROVED_OVERRIDE when ALL are true:
NEVER approve overrides on critical paths without exceptional user confirmation.
Format:
CODEBLOCK3
See patterns.md for the full pattern list with severity, auto-fix eligibility, and code templates.
After each fix:
CODEBLOCK4
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 anti-pattern-czar-1776419942 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 anti-pattern-czar-1776419942 技能
skillhub install anti-pattern-czar-1776419942
文件大小: 5.94 KB | 发布时间: 2026-4-17 19:52