Common mistakes to avoid with explanations and correct alternatives
Ships in core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Claude Code Adapted: This version has been adapted for Claude Code compatibility. The original OpenCode version is at the root of this repository under
core/anti-patterns/SKILL.md.
Common mistakes in agent workflows with explanations of why they're harmful and how to do it correctly.
This skill catalogs 12 critical anti-patterns that degrade agent performance, cause context loss, or lead to repeated failures. Each pattern includes:
Example Scenario:
BAD: Two failed fixes -> clear context -> start over with no memory of what was tried
GOOD: Two failed fixes -> Store findings in notes.md / decision log -> Then clear if needed
Example Scenario:
BAD: "Add authentication middleware" -> start coding immediately
GOOD: Use Grep to search for "authentication" patterns -> map affected files -> integration test -> implement
Example Scenario:
BAD: T3 task in unfamiliar codebase -> start implementing without exploration
GOOD: Use Grep/Glob to search for relevant patterns -> Read key files -> document in task_plan.md -> implement
Example Scenario:
BAD: "Button not working" -> only take screenshots
GOOD: Capture console errors -> network traces -> DOM inspection -> analyze logs
Example Scenario:
BAD: Fix 1 fails -> Fix 2 fails -> Try fix 3 immediately
GOOD: Fix 1 fails -> Fix 2 fails -> STOP -> Research with Grep/Read -> Load systematic-debugging skill
Example Scenario:
BAD: Only use TaskCreate/TaskUpdate for task tracking
GOOD: Create task_plan.md -> TaskCreate with Phase 1 -> Update task_plan.md Status section after TaskUpdate changes
Example Scenario:
BAD: Run 5 tool calls -> lose track of original goal -> implement wrong thing
GOOD: Before major decisions -> Re-read task_plan.md -> Confirm next 2 steps
Example Scenario:
BAD: Discover "Module X requires config Y" -> mark task complete -> forget
ALSO BAD: Store "Fact: Module X requires config Y" (outcome only, no reasoning)
GOOD: Add to decision log: "Fact: Module X requires config Y for feature Z. Context: discovered during feature implementation. Reasoning: missing config caused silent failure in tests. Outcome: added to setup checklist."
Example Scenario:
BAD: Fetch 10 API docs -> keep all in conversation context
GOOD: Fetch docs -> Summarize key points to notes.md -> Reference as needed
Example Scenario:
BAD: T3 architecture task -> compress file output to first 20 lines only
GOOD: T3 architecture task -> Full structure with semantic preservation
Example Scenario:
BAD: Learn new auth pattern -> Create new decision record without searching
GOOD: Use Grep to search decision logs for "auth" -> Update existing with "[Updated YYYY-MM-DD]: [new insight with reasoning context]"
Example Scenario:
BAD: Context fills up -> Auto-compacted unexpectedly -> Lose critical state
GOOD: Phase boundary -> Monitor context window usage -> Offload research to notes.md -> Continue
| Anti-Pattern | Early Warning Sign |
|---|---|
| Premature Context Loss | Thinking about clearing context before storing state |
| Unmapped Features | Starting code without architecture understanding |
| Skipped Codebase Research | T2+ task in unfamiliar code without Grep/Glob research |
| Visual-Only Debugging | Multiple screenshots, no console logs |
| Repeated Failing Fixes | About to try third fix without analysis |
| Unsynchronized Planning | TaskCreate used but task_plan.md doesn't exist |
| Context Amnesia | Can't remember what Step 3 of task_plan.md was |
| Knowledge Loss | Completing task without storing decisions |
| Context Pollution | Conversation has 10+ long tool outputs unarchived |
| Blind Truncation | T3 task with heavily compressed file reads |
| Memory Stagnation | Creating new decision record without searching first |
| Budget Blindness | Never monitoring context window usage |
Load this skill when:
Quick check: "Am I doing any of the 12 anti-patterns right now?"
What SKILL.md sets; muted values are Claude Code's defaults
/core:anti-patternsfrom core
npx claudepluginhub dxta/claude-code-skills --plugin core23 skills in this plugin
/agent-selectionSelect Pi agents from compact local agent index./clean-codeApply Robert C. Martin Clean Code principles and the clean-code-skills rule catalog when code quality is explicit or when an agent is reviewing, simplifying, refactoring, or cleaning touched code. Use for clean code, code smells, maintainability, readability, naming, small functions, comments/docstrings, DRY, duplication, magic numbers, boundary conditions, Boy Scout cleanup, refactor review, PR review, code quality review, test readability, boundary test coverage, test maintainability, pytest monkeypatch rejection, fixture/conftest cleanup, or requests like "make this cleaner", "review for maintainability", "is this clean code", "simplify this", "remove code smells", "rename this", "split this function", "clean up comments", "clean up tests", or "review tests for clarity". For Python or TypeScript, load only the matching language reference file for files in active scope./code-design-patternsOther plugins' skills for the same job