# Send Anti-Pattern Czar to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
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

```text
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.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "anti-pattern-czar",
    "name": "Anti-Pattern Czar",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/Glucksberg/anti-pattern-czar",
    "canonicalUrl": "https://clawhub.ai/Glucksberg/anti-pattern-czar",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/anti-pattern-czar",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=anti-pattern-czar",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "references/patterns.md",
      "references/workflows.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/anti-pattern-czar"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/anti-pattern-czar",
    "downloadUrl": "https://openagent3.xyz/downloads/anti-pattern-czar",
    "agentUrl": "https://openagent3.xyz/skills/anti-pattern-czar/agent",
    "manifestUrl": "https://openagent3.xyz/skills/anti-pattern-czar/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/anti-pattern-czar/agent.md"
  }
}
```
## Documentation

### 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%
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: Glucksberg
- Version: 1.0.0
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-04-23T16:43:11.935Z
- Expires at: 2026-04-30T16:43:11.935Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/anti-pattern-czar)
- [Send to Agent page](https://openagent3.xyz/skills/anti-pattern-czar/agent)
- [JSON manifest](https://openagent3.xyz/skills/anti-pattern-czar/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/anti-pattern-czar/agent.md)
- [Download page](https://openagent3.xyz/downloads/anti-pattern-czar)