anti-pattern-czar
glucksberg 제작
Web & Frontend Development요약
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
Runs
bunx antipattern-czar --src srcand captures output - 2
Checks project root for existing
.anti-pattern-state.jsonand asks whether to resume - 3
Classifies each detected issue by severity and whether it sits on a critical path
- 4
Saves full session state to
.anti-pattern-state.json - 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-czarCLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.