Agent skill

Anti Defensive

by archibate in archibate/dotfiles-opencode

Review common AI slops of defensive programming patterns, avoid silent errors.

No licenceAuto-check passedDevelopment

Install Anti Defensive

skills CLI
$ npx skills add archibate/dotfiles-opencode --skill anti-defensive -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install archibate/dotfiles-opencode anti-defensive --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/archibate/dotfiles-opencode.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/anti-defensive .claude/skills/anti-defensive && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
anti-defensive
GitHub stars
108
Token cost
~1.6k tokens
SKILL.md length
416 words
Files
1
Skills in repo
34
Repo updated
First seen
Licence
None found

At a glance

Review common AI slops of defensive programming patterns, avoid silent errors.

  • Works in 10 steps: Swallowing Exceptions → Dictionary Defaults on Required Fields → Null Coalescing to Fabricate Data → …
  • Reviewing code for defensive anti-patterns
  • SKILL.md covers Philosophy, Anti-Patterns, When Defensive IS Correct and Quick Reference
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Anti Defensive is an agent skill from archibate/dotfiles-opencode. Review common AI slops of defensive programming patterns, avoid silent errors. TRIGGER when reviewing code for defensive anti-patterns, writing fail-fast code, or auditing error handling quality.

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development. The repository describes itself as: Archibate's personal configuration for OpenCode.

When your agent uses it

  • Reviewing code for defensive anti-patterns
  • Writing fail-fast code
  • Auditing error handling quality

Example prompts

  • “/anti-defensive”

Requirements

  • Python 3

Workflow steps

10 steps, taken from the step headings in SKILL.md.

  1. Swallowing Exceptions
  2. Dictionary Defaults on Required Fields
  3. Null Coalescing to Fabricate Data
  4. Type Coercion Instead of Validation
  5. Compatibility Shims
  6. Unnecessary Null Checks
  7. Catch-All Exception Handlers
  8. Over-Validation at Internal Boundaries
  9. Fabricated Default Values
  10. Logging Warnings Instead of Raising

What it can do on your machine

Read from SKILL.md and the folder at commit 46b6b23. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are python).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Anti Defensive loads about 1.6k tokens when it runs. Until then it costs about 53 tokens; SKILL.md has 416 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~53
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 416 words (~1,580 tokens).

“AI coding assistants systematically over-produce defensive code due to:”

— opening of SKILL.md by archibate
name
anti-defensive

Read the full SKILL.md on GitHub

Files

Just SKILL.md in skills/anti-defensive of archibate/dotfiles-opencode.

Open the folder on GitHubat commit 46b6b23

Compare with similar skills

Anti Defensive next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Anti Defensive compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Anti Defensive this skillarchibate/dotfiles-opencode108—~1.6kAutomated safety check: PassNone
Vercel Composition Patternssupabase/supabase111k58 repos~726Automated safety check: PassMIT
Finishing a Development Branchobra/superpowers297k5 repos~1.9kAutomated safety check: PassMIT
Typescript Advanced Typesrolling-scopes/rsschool-app10k25 repos~4.2kAutomated safety check: PassMPL-2.0
PR Babysitteropeninterpreter/openinterpreter69k3 repos~4.2kAutomated safety check: PassApache-2.0
Code Review ChecklistshareAI-lab/learn-claude-code78k4 repos~1.1kAutomated safety check: PassMIT

Similar skills

  • Official

    React composition patterns that scale. An agent skill from supabase/supabase.

    111k GitHub starsUsed in 58 repos~726 tokens
    DevelopmentAuto-check passed
  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    297k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Typescript Advanced Types

    rolling-scopes/rsschool-app

    Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe applications.

    10k GitHub starsUsed in 25 repos~4.2k tokens
    DevelopmentAuto-check passed
  • PR Babysitter

    openinterpreter/openinterpreter

    Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.

    69k GitHub starsUsed in 3 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Code Review Checklist

    shareAI-lab/learn-claude-code

    Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.

    78k GitHub starsUsed in 4 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Greploop

    onyx-dot-app/onyx

    Iteratively improves a PR (GitHub), MR (GitLab), or shelved changelist (Perforce) until Greptile gives it a 5/5 confidence score with zero unresolved comments.

    32k GitHub starsUsed in 4 repos~3.3k tokens
    DevelopmentAuto-check passed

More from archibate/dotfiles-opencode

All 34 skills in this repo
  • Glm Vision

    archibate/dotfiles-opencode

    This skill should be used when the user sends an image and asks to "analyze this image", "describe this picture", "what's in this image", or any request requiring visual understanding of images.

    108 GitHub stars~795 tokensUpdated 5 mo ago
    Auto-check passed
  • Pueue

    archibate/dotfiles-opencode

    This skill should be used before running non-interactive long-running tasks, computation intensive tasks, background tasks, or needs guidance on the pueue CLI tool usage.

    108 GitHub stars~637 tokensUpdated 5 mo ago
    Auto-check passed
  • Bilibili API

    archibate/dotfiles-opencode

    This skill should be used when the user asks to "use bilibili API", "download bilibili video", "get bilibili user info", "list bilibili favorites", "send bilibili danmaku", "upload video to…

    108 GitHub stars~2.1k tokensUpdated 5 mo ago
    Auto-check: warnings
  • Show Image

    archibate/dotfiles-opencode

    Show images in terminal using the Kitty image protocol. An agent skill from archibate/dotfiles-opencode.

    108 GitHub stars~596 tokensUpdated 5 mo ago
    Auto-check passed
  • Show Image

    archibate/dotfiles-opencode

    Show images in terminal using the Kitty image protocol. An agent skill from archibate/dotfiles-opencode.

    108 GitHub stars~622 tokensUpdated 5 mo ago
    Auto-check passed
  • Tmux

    archibate/dotfiles-opencode

    Remote control tmux sessions for interactive CLIs (python, gdb, etc.) by sending keystrokes and scraping pane output.

    108 GitHub stars~1.4k tokensUpdated 5 mo ago
    Auto-check passed

Categories

Questions about Anti Defensive

What does Anti Defensive do?

Review common AI slops of defensive programming patterns, avoid silent errors. Anti Defensive is an agent skill from archibate/dotfiles-opencode. Review common AI slops of defensive programming patterns, avoid silent errors.

When should I use Anti Defensive?

Anti Defensive fits situations like: reviewing code for defensive anti-patterns; writing fail-fast code; auditing error handling quality.

How do I install Anti Defensive in Claude Code?

Run `npx skills add archibate/dotfiles-opencode --skill anti-defensive -a claude-code`. Or copy the skill folder (skills/anti-defensive in archibate/dotfiles-opencode) into .claude/skills/anti-defensive in your project. Claude Code loads it when a task matches its description.

How do I install Anti Defensive in Codex?

Run `npx skills add archibate/dotfiles-opencode --skill anti-defensive -a codex`. Or copy the skill folder (skills/anti-defensive in archibate/dotfiles-opencode) into .agents/skills/anti-defensive in your project. Codex loads it when a task matches its description.

Can I use Anti Defensive in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add archibate/dotfiles-opencode --skill anti-defensive -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/anti-defensive, .gemini/skills/anti-defensive, .github/skills/anti-defensive and .opencode/skills/anti-defensive in your project.

What does Anti Defensive need to run?

SKILL.md names no scripts, command-line tools or credentials: Anti Defensive is instructions for the agent only. Our summary lists: Python 3.

Does Anti Defensive access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Anti Defensive safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Anti Defensive use?

No licence was found for Anti Defensive or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Anti Defensive use?

About 1.6k tokens (SKILL.md is roughly 6.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Anti Defensive?

Skills that share tags, products or a category with Anti Defensive: Vercel Composition Patterns (supabase/supabase, 111k stars), Finishing a Development Branch (obra/superpowers, 297k stars), Typescript Advanced Types (rolling-scopes/rsschool-app, 10k stars) and PR Babysitter (openinterpreter/openinterpreter, 69k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Anti Defensive?

archibate (a GitHub user) maintains it in archibate/dotfiles-opencode, which has 108 GitHub stars. The repository holds 34 skills in this directory. The repository was last updated on April 29, 2026.

Source: archibate/dotfiles-opencode on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.