Anti-Pattern Czar for Openclaw

An autonomous agent designed to identify and remediate TypeScript error handling anti-patterns through state-managed workflows.

glucksberg
v1.0.0
Feb 19, 2026
0
1.5k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install anti-pattern-czar

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install anti-pattern-czar using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Anti-Pattern Czar?

Anti-Pattern Czar is a specialized developer tool within the Openclaw Skills ecosystem that systematically tackles the technical debt of poor error handling. It scans TypeScript codebases for silent failures, empty catch blocks, and unlogged errors, providing a structured path to remediation through multiple operational modes.

By integrating state persistence and critical path analysis, it ensures that high-impact areas of your application receive the oversight they deserve while automating repetitive fixes in lower-risk sections. This skill acts as a bridge between static analysis and autonomous code improvement, helping developers maintain high reliability without manual auditing.

Anti-Pattern Czar Use Cases

  • Auditing legacy codebases for silent error failures or swallowed promises.
  • Enforcing consistent logging standards across a development team using Openclaw Skills.
  • Rapidly patching empty catch blocks during a refactoring sprint.
  • Identifying technical debt in critical paths like authentication and database services.

How Anti-Pattern Czar Works

  1. The agent parses user intent to select the appropriate mode: Scan, Review, Auto, Resume, or Report.
  2. It executes the detector to identify anti-patterns based on severity and codebase location.
  3. Findings are saved into a local .anti-pattern-state.json file to maintain session persistence.
  4. The agent presents interactive remediation options or applies automated templates based on the chosen workflow.
  5. Progress is tracked through a real-time dashboard, updating the status of each identified issue until resolution.

Anti-Pattern Czar Setup

To begin using this skill, ensure you have Bun installed. You can run the tool directly without a manual installation step using the following commands:

bunx antipattern-czar
bunx antipattern-czar --src lib

For custom behavior, create a .antipatternrc.json file in your project root:

{
  "srcDir": "src",
  "criticalPaths": ["DatabaseService.ts", "AuthHandler.ts"],
  "skipDirectories": ["node_modules", "dist"]
}

Anti-Pattern Czar Data Schema & Taxonomy

The skill manages its lifecycle via a JSON state file. This allows Openclaw Skills to maintain context over long-running refactorings.

Field Description
session_id Unique UUID for the current audit session.
target_path The directory currently being analyzed.
issues Array of objects containing file, line, pattern, and severity.
status Current state of an issue: pending, fixed, approved_override, or skipped.

Anti-Pattern Czar Advanced Features

  • Critical Path Prioritization: Automatically prioritizes high-risk files for manual review while batch-fixing utility code.
  • Approved Overrides: Facilitates technical justifications for intentional empty catches with standardized documentation comments.
  • Session Resumption: Allows developers to stop and start large refactoring tasks without losing progress.
  • Template-Based Fixes: Uses a library of pre-defined patterns to ensure fixes follow modern TypeScript best practices.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*