โ† All skills
Tencent SkillHub ยท Developer Tools

Anti-Pattern Czar

Detect and fix TypeScript error handling anti-patterns with state persistence and approval workflows. Use when scanning a codebase for silent error failures,...

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

Detect and fix TypeScript error handling anti-patterns with state persistence and approval workflows. Use when scanning a codebase for silent error failures,...

โฌ‡ 0 downloads โ˜… 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
SKILL.md, references/patterns.md, references/workflows.md

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.

Upgrade existing

I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
1.0.0

Documentation

ClawHub primary doc Primary doc: SKILL.md 8 sections Open source page

Anti-Pattern Czar

Autonomous agent that systematically identifies and fixes TypeScript error handling anti-patterns.

Detector

Run with Bun (no install required): bunx antipattern-czar bunx antipattern-czar --src lib bunx antipattern-czar --config my-config.json Config via .antipatternrc.json: { "srcDir": "src", "criticalPaths": ["DatabaseService.ts", "AuthHandler.ts"], "skipDirectories": ["node_modules", "dist", ".git"] }

Mode Selection

Parse user intent to pick mode: User SaysModeAction"scan", "detect", "find"SCANRun detector, save state"review", "fix", "help me fix"REVIEWInteractive fix session"auto", "fix all", "autonomous"AUTOBatch fix with guardrails"resume", "continue"RESUMELoad state, continue"report", "status", "progress"REPORTShow current state

State File

Always check .anti-pattern-state.json at the project root. On first SCAN, ask if resuming when it exists. { "session_id": "<uuid>", "started_at": "<ISO>", "target_path": "<path>", "issues": [], "history": [] } Issue schema: id, file, line, pattern, severity (critical/high/medium), is_critical_path, status (pending/fixed/approved_override/skipped), code_snippet.

Workflow by Mode

See workflows.md for full per-mode workflows. Summary: SCAN: Run detector โ†’ parse issues โ†’ classify severity โ†’ save state โ†’ show summary REVIEW: Load state โ†’ sort by critical-path + severity โ†’ read code context โ†’ explain issue โ†’ propose fix options โ†’ apply approved fix โ†’ update state AUTO: Confirm with user โ†’ auto-fix non-critical-path issues using templates โ†’ switch to REVIEW for critical-path hits โ†’ show summary RESUME: Load .anti-pattern-state.json โ†’ continue from first pending issue REPORT: Display session stats, severity table, recent fixes, next actions

Approved Overrides

Only suggest APPROVED_OVERRIDE when ALL are true: Error is expected and frequent Logging would create excessive noise There is explicit recovery/fallback logic Reason is specific and technical NEVER approve overrides on critical paths without exceptional user confirmation. Format: } catch { // [APPROVED_OVERRIDE] <specific technical reason> // Fallback: <what happens instead> }

Fix Templates

See patterns.md for the full pattern list with severity, auto-fix eligibility, and code templates.

Progress Output Format

After each fix: โœ… Fixed: src/services/example.ts:42 Pattern: NO_LOGGING_IN_CATCH Solution: Added logger.error() with context Progress: 4/28 issues remaining โ”โ”โ”โ”โ”โ”โ” 14%

Category context

Code helpers, APIs, CLIs, browser automation, testing, and developer operations.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
3 Docs
  • SKILL.md Primary doc
  • references/patterns.md Docs
  • references/workflows.md Docs