Ai Patterns logo

Ai Patterns

Community
lexler
ai-patterns

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.

Overview

Publisherlexler
Repositoryskill-factory
Skill nameai-patterns
Stars
239
Forks
63
Bundled files
1
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by lexler on GitHub. Read the source before you install it.

Installation

Install the Ai Patterns AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/lexler/skill-factory/tree/main/output_skills/ai/ai-patterns
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/lexler/skill-factory.git /tmp/skill-factory
mkdir -p .claude/skills
cp -r /tmp/skill-factory/output_skills/ai/ai-patterns .claude/skills/ai-patterns
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Ai Patterns in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Ai Patterns on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Ai Patterns is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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

bash
~/.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:

bash
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/

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Ai Patterns AI skill do?

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.

Why use Ai Patterns on TypingMind?

Because you install it once and use it with any model. Ai Patterns is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Ai Patterns in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/lexler/skill-factory/tree/main/output_skills/ai/ai-patterns. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Ai Patterns?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Ai Patterns?

As many as you like. As long as a model supports skills, you can use Ai Patterns with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Ai Patterns AI skill free?

Yes. It is published on GitHub by lexler under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇