跳到正文
TakoAPI
返回技能列表

anti-pattern-czar

由 glucksberg 提供

Web & Frontend Development
377下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Detect and fix TypeScript error handling anti-patterns with state persistence and approval workflows.

描述

该技能的功能

Autonomous agent that scans TypeScript codebases for error handling anti-patterns such as empty catch blocks, swallowed promises, and unlogged errors. Operates in five modes: scan, review, auto, resume, and report. Session state persists across runs so large codebases can be fixed incrementally.

Combines static detection, templated fixes, and an approval workflow in one session-aware tool, replacing the manual grep-fix-grep cycle with tracked, resumable progress.

何时使用

  • Finding silent catch blocks before a production incident
  • Batch-fixing low-severity error handling issues before a code review
  • Interactively reviewing error handling on critical database or auth paths
  • Resuming a multi-session anti-pattern audit after switching branches
  • Checking fix progress and remaining issue counts at any point in a refactor

示例工作流

输入

User asks: scan my src/ directory for error handling anti-patterns

智能体
  1. 1

    Runs bunx antipattern-czar --src src and captures output

  2. 2

    Checks project root for existing .anti-pattern-state.json and asks whether to resume

  3. 3

    Classifies each detected issue by severity and whether it sits on a critical path

  4. 4

    Saves full session state to .anti-pattern-state.json

  5. 5

    Displays a summary table grouped by severity with issue counts per file

输出

Session saved with 34 issues across 12 files; 3 critical-path, 11 high, 20 medium — ready for REVIEW or AUTO mode

安装

clawhub install glucksberg/anti-pattern-czar

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接