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 czar', or 'check error handling'.
检测并修复带有状态持久化和审批流程的 TypeScript 错误处理反模式。适用于扫描代码库时发现静默错误失败、空捕获、Promise 被吞咽或未记录的错误。支持五种模式:扫描(检测所有问题)、审核(交互式修复会话)、自动(带防护机制的批量修复)、恢复(从上一次会话继续)和报告(显示进度)。通过关键词如“扫描反模式”“修复错误处理”“查找空捕获”“反模式管理员”或“检查错误处理”触发。
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
点击右上角 下载SKILL 按钮