AI

Provides a collection of proven patterns, anti-patterns, and strategies for effective AI-augmented development.

Install

mkdir -p .claude/skills/ai-patterns && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/12289" && unzip -o skill.zip -d .claude/skills/ai-patterns && rm skill.zip

Installs to .claude/skills/ai-patterns

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Reference patterns for augmented coding with AI. Use when discussing AI coding patterns, anti-patterns, obstacles, context management, steering AI, or looking up Lexler's patterns collection.
191 chars✓ has a “when” trigger
Beginner

Key capabilities

  • Reference patterns for effective AI-augmented software development
  • Understand context management obstacles and patterns
  • Identify anti-patterns in AI reliability and quality
  • Learn patterns for directing AI behavior and communication
  • Browse collections of patterns, anti-patterns, and obstacles

How it works

The skill provides a reference for AI-augmented coding patterns, categorizing them into context management, reliability & quality, and communication. It lists obstacles, anti-patterns, and effective patterns.

Inputs & outputs

You give it
Query about AI coding patterns, context management, or anti-patterns
You get back
Information on relevant AI patterns, obstacles, or anti-patterns from the reference collection

When to use ai-patterns

  • Researching AI context management strategies
  • Identifying AI coding anti-patterns
  • Setting up project-specific ground rules
  • Extracting insights from ephemeral AI sessions

About this skill

AI Patterns Reference

Patterns for effective AI-augmented software development by Lada Kesseler (github nickname lexler), Llewellyn Falco, Ivett Ördög, and Nitsan Avni.

First Step: Ensure Repository Exists and Update

~/.claude/skills/ai-patterns/scripts/ensure-patterns-repo

Patterns Location

Base path: ~/.cache/claude-skills/augmented-coding-patterns/documents


Context Management

Managing AI context, knowledge, and focus.

Obstacles

  • context-rot - Earlier instructions lose influence as conversation grows
  • cannot-learn - LLMs can't learn from interactions; fixed weights prevent adaptation
  • limited-context-window - Fixed context size forces choices about what to keep loaded
  • limited-focus - Too much context causes diluted or misdirected attention
  • excess-verbosity - AI defaults to verbose output with low signal-to-noise ratio

Anti-patterns

  • distracted-agent - Using one agent for everything spreads attention; instructions inconsistently followed

Patterns

  • context-management - Treat context as scarce resource requiring active append/reset operations
  • knowledge-document - Save important information as markdown files for session loading
  • ground-rules - Essential behavioral rules auto-loaded into every session
  • extract-knowledge - Save emerging insights and corrections from ephemeral context to files immediately during sessions
  • focused-agent - Single narrow responsibility gives AI cognitive space to follow rules better
  • reference-docs - On-demand knowledge loaded only when needed for current task
  • knowledge-composition - Split knowledge into focused, composable files with single responsibilities
  • semantic-zoom - Control abstraction levels—zoom out for overview or zoom in for details
  • noise-cancellation - Explicitly ask AI to be succinct and strip filler from responses

Reliability & Quality

Handling non-determinism, complexity, and verification.

Obstacles

  • non-determinism - Same input produces different outputs; results unpredictable
  • hallucinations - AI invents non-existent APIs, methods, or syntax
  • degrades-under-complexity - AI performance drops with complex multi-step tasks
  • selective-hearing - AI ignores certain instructions; training data overrides explicit directives

Anti-patterns

  • perfect-recall-fallacy - Expecting AI to perfectly remember library details instead of letting it discover
  • unvalidated-leaps - Building on unverified assumptions instead of validating each step
  • ai-slop - Using AI output without human judgment, just light editing

Patterns

  • knowledge-checkpoint - Checkpoint planning before implementation to preserve thinking investment
  • parallel-implementations - Run multiple implementations in parallel; pick best or combine
  • offload-deterministic - Use code scripts for deterministic work instead of asking AI repeatedly
  • playgrounds - Create isolated folders for AI to experiment and test assumptions safely
  • chain-of-small-steps - Break complex goals into small, focused, verifiable steps
  • hooks - Lifecycle event hooks intercept workflow; inject targeted corrections
  • reminders - Repeat critical instructions as explicit steps; structural compliance
  • feedback-flip - Have different AI focus on evaluation; flip from producing to finding problems
  • refinement-loop - Give AI specific improvement goal and loop it; each pass removes one layer

Communication

Directing AI behavior, getting honest feedback, and alignment.

Obstacles

  • black-box-ai - AI's reasoning is hidden; you can only see inputs and outputs
  • compliance-bias - AI prioritizes following instructions over questioning unclear requests

Anti-patterns

  • silent-misalignment - AI accepts nonsensical instructions instead of asking clarifying questions
  • answer-injection - Putting solutions in questions limits AI's breadth and better approaches
  • tell-me-a-lie - Forcing AI to provide answers that don't exist causes fabrication

Patterns

  • active-partner - Grant permission for AI to push back, disagree, and flag contradictions
  • check-alignment - Force AI to show understanding before implementing to catch misalignment early
  • context-markers - Visual emoji signals to show what instructions AI is currently following
  • cast-wide - Push AI to show alternatives you haven't considered; avoid first-solution bias
  • reverse-direction - Break monologue inertia—ask AI what it thinks instead
  • polyglot-ai - Use right modality for task—voice for convenience, images for visual problems
  • text-native - Keep everything as text; enables direct editing, version control, instant iteration

Additional Patterns

Patterns not on the main journey but useful in practice.

  • shared-canvas - Markdown files as shared specs/docs; all humans and AI collaborate together
  • softest-prototype - Use markdown instructions + AI agent instead of code for flexible exploration
  • take-all-paths - Build multiple prototypes not one; test all, pick best through exploration
  • borrow-behaviors - Give AI example and it adapts—styles, patterns, code across languages

Browse All

List patterns by category:

ls ~/.cache/claude-skills/augmented-coding-patterns/documents/patterns/
ls ~/.cache/claude-skills/augmented-coding-patterns/documents/anti-patterns/
ls ~/.cache/claude-skills/augmented-coding-patterns/documents/obstacles/

Online

View at: https://lexler.github.io/augmented-coding-patterns/

When not to use it

  • When the user is not discussing AI coding practices
  • When the user is not looking for patterns, anti-patterns, or obstacles related to AI
  • When the user needs to perform code generation or execution

Limitations

  • The skill is a reference and does not perform actions
  • Information is limited to the documented patterns, anti-patterns, and obstacles
  • The skill does not provide real-time AI behavior analysis

How it compares

This skill acts as a structured knowledge base for AI coding best practices, offering specific patterns and anti-patterns to guide effective AI interaction, unlike general coding advice.

Compared to similar skills

ai-patterns side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
ai-patterns (this skill)05moReviewBeginner
skill-creator1283moReviewAdvanced
skill-development178moReviewIntermediate
agent-identifier158moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

skill-creator

anthropics

Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.

128200

skill-development

anthropics

This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill content", or needs guidance on skill structure, progressive disclosure, or skill development best practices for Claude Code plugins.

17145

agent-identifier

anthropics

This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.

15122

llama-factory

zechenzhangAGI

Expert guidance for fine-tuning LLMs with LLaMA-Factory - WebUI no-code, 100+ models, 2/3/4/5/6/8-bit QLoRA, multimodal support

15112

dify-dsl-generator

wwwzhouhui

专业的 Dify 工作流 DSL/YML 文件生成器,根据用户业务需求自动生成完整的 Dify 工作流配置文件,支持各种节点类型和复杂工作流逻辑

18108

character-generator

Dexploarer

Generate complete elizaOS character configurations with personality, knowledge, and plugin setup. Triggers when user asks to "create character", "generate agent config", or "build elizaOS character"

583

Search skills

Search the agent skills registry