Agent skill

Add Pattern

by pchalasani in pchalasani/claude-code-tools

A skill your agent uses when you learn one or more design pattern(s) in the Langroid (multi) agent framework, and want to make a note for future reference for yourself.

MITAuto-check passedDevelopment

Install Add Pattern

skills CLI
$ npx skills add pchalasani/claude-code-tools --skill add-pattern -a claude-code

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

GitHub CLI
$ gh skill install pchalasani/claude-code-tools add-pattern --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/pchalasani/claude-code-tools.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/langroid/skills/add-pattern .claude/skills/add-pattern && 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
add-pattern
GitHub stars
2k
Token cost
~258 tokens
SKILL.md length
110 words
Files
1
Skills in repo
17
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when you learn one or more design pattern(s) in the Langroid (multi) agent framework, and want to make a note for future reference for yourself.

  • Works in 2 steps: Add an entry in the sibling… → In that DOCUMENT, describe the idea of…
  • More design pattern(s) in the Langroid (multi) agent framework
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Want to make a note for future reference for yourself

What it does

Add Pattern is an agent skill from pchalasani/claude-code-tools. Use this skill when you learn one or more design pattern(s) in the Langroid (multi) agent framework, and want to make a note for future reference for yourself. Use this either autonomously, or when asked by the user to record a new pattern.

Its SKILL.md is about 260 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, covering Design patterns and Building AI agents. The repository describes itself as: Practical productivity tools for Claude Code, Codex-CLI, and similar CLI coding agents. The licence is MIT.

When your agent uses it

  • More design pattern(s) in the Langroid (multi) agent framework
  • Want to make a note for future reference for yourself

Example prompts

  • “/add-pattern”

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  1. Add an entry in the sibling patterns/SKILL.md file in the appropriate category
  2. In that DOCUMENT, describe the idea of the implementation along with code examples.

What it can do on your machine

Read from SKILL.md and the folder at commit 0ca7320. 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.

    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

Add Pattern loads about 258 tokens when it runs. Until then it costs about 63 tokens; SKILL.md has 110 words of instructions outside code blocks.

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

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

The full file from pchalasani/claude-code-tools at commit 0ca7320, republished under its MIT licence (© pchalasani). 110 words, ~258 tokens.

Download SKILL.mdSave it as .claude/skills/add-pattern/SKILL.md (or your agent's skills folder).
name
add-pattern
description
Use this skill when you learn one or more design pattern(s) in the Langroid (multi) agent framework, and want to make a note for future reference for yourself. Use this either autonomously, or when asked by the user to record a new pattern.

add-pattern

Instructions

When you learn a new Langroid design pattern, do the following:

  1. Add an entry in the sibling patterns/SKILL.md file in the appropriate category section, containing a DESCRIPTION of the goal of the pattern (i.e. what it enables you to implement), accompanied by a - Reference: pointer to a markdown DOCUMENT in the patterns/ directory.

    IMPORTANT - The DESCRIPTION should be clear enough that future YOU can effectively use it to MATCH design problems you may encounter in future.

  2. In that DOCUMENT, describe the idea of the implementation along with code examples. Follow the format of existing pattern files (Problem, Solution, Complete Code Example, Key Points, When to Use).

© pchalasani, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugins/langroid/skills/add-pattern of pchalasani/claude-code-tools.

Open the folder on GitHubat commit 0ca7320

Compare with similar skills

Add Pattern 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.

Add Pattern compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Add Pattern this skillpchalasani/claude-code-tools2k—~258Automated safety check: PassMIT
Fail-Closed Agent Tool Buildersimbajigege/book2skills184—~2kAutomated safety check: PassCustom licence
Autonomous Agent Patternsdavila7/claude-code-templates32k8 repos~5.6kAutomated safety check: PassMIT
Pydanticaimagnus919/agent-skills113—~4kAutomated safety check: PassMIT
Vercel Composition Patternssupabase/supabase111k59 repos~726Automated safety check: PassMIT
Swiftui View RefactorDimillian/Skills4k5 repos~2kAutomated safety check: PassMIT

Similar skills

  • Fail-Closed Agent Tool Builder

    simbajigege/book2skills

    Helps define agent tools with a fail-closed pattern: one class holding name, schema, security flags and a validate, permission and call execution chain.

    184 GitHub stars~2k tokensUpdated 1 mo ago
    AI & LLM EngineeringAuto-check passed
  • Autonomous Agent Patterns

    davila7/claude-code-templates

    Design patterns for building autonomous coding agents. An agent skill from davila7/claude-code-templates.

    32k GitHub starsUsed in 8 repos~5.6k tokens
    Agent WorkflowsAuto-check passed
  • Pydanticai

    magnus919/agent-skills

    Build type-safe AI agents and graph-based workflows with PydanticAI and PydanticGraph.

    113 GitHub stars~4k tokensUpdated yesterday
    AI & LLM EngineeringAuto-check passed
  • Official

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

    111k GitHub starsUsed in 59 repos~726 tokens
    DevelopmentAuto-check passed
  • Swiftui View Refactor

    Dimillian/Skills

    Refactor and review SwiftUI view files with strong defaults for small dedicated subviews, MV-over-MVVM data flow, stable view trees, explicit dependency injection, and correct Observation usage.

    4k GitHub starsUsed in 5 repos~2k tokens
    DevelopmentAuto-check passed
  • Describes seven Rust design patterns for the RTK CLI filter modules, with when to use each, RTK examples, and notes on when a pattern is overkill.

    83k GitHub stars~1.9k tokensUpdated yesterday
    DevelopmentAuto-check passed

More from pchalasani/claude-code-tools

All 17 skills in this repo
  • Remove AI Patterns

    pchalasani/claude-code-tools

    Remove AI-writing patterns ("AI-isms") from text using the avoid-ai-writing catalog (conorbronsdon/avoid-ai-writing).

    2k GitHub stars~1.4k tokensUpdated 3 days ago
    Auto-check passed
  • Dynamic Workflow

    pchalasani/claude-code-tools

    Create, review, run, inspect, pause, resume, and cancel durable JavaScript workflows that coordinate multiple headless Codex agents.

    2k GitHub stars~5.3k tokensUpdated 3 days ago
    Auto-check passed
  • Voxtype Install

    pchalasani/claude-code-tools

    Guide the user through installing, configuring, and launching voxtype — local on-device voice dictation (speech-to-text that types wherever the cursor is).

    2k GitHub stars~857 tokensUpdated 3 days ago
    Auto-check: notes
  • Agent Style

    pchalasani/claude-code-tools

    Literature-backed English technical-prose writing rules (agent-style, 21 rules).

    2k GitHub stars~1.4k tokensUpdated 3 days ago
    Auto-check passed
  • Msg

    pchalasani/claude-code-tools

    Inter-agent communication via the msg CLI. An agent skill from pchalasani/claude-code-tools.

    2k GitHub stars~362 tokensUpdated 3 days ago
    Auto-check passed
  • Tmux CLI

    pchalasani/claude-code-tools

    CLI utility to communicate with other CLI Agents or Scripts in other tmux panes; use it only when user asks you to communicate with other CLI Agents or Scripts in other tmux panes.

    2k GitHub stars~324 tokensUpdated 3 days ago
    Auto-check passed

Categories

Questions about Add Pattern

What does Add Pattern do?

A skill your agent uses when you learn one or more design pattern(s) in the Langroid (multi) agent framework, and want to make a note for future reference for yourself. Add Pattern is an agent skill from pchalasani/claude-code-tools. Use this skill when you learn one or more design pattern(s) in the Langroid (multi) agent framework, and want to make a note for future reference for yourself.

When should I use Add Pattern?

Add Pattern fits situations like: more design pattern(s) in the Langroid (multi) agent framework; want to make a note for future reference for yourself.

How do I install Add Pattern in Claude Code?

Run `npx skills add pchalasani/claude-code-tools --skill add-pattern -a claude-code`. Or copy the skill folder (plugins/langroid/skills/add-pattern in pchalasani/claude-code-tools) into .claude/skills/add-pattern in your project. Claude Code loads it when a task matches its description.

How do I install Add Pattern in Codex?

Run `npx skills add pchalasani/claude-code-tools --skill add-pattern -a codex`. Or copy the skill folder (plugins/langroid/skills/add-pattern in pchalasani/claude-code-tools) into .agents/skills/add-pattern in your project. Codex loads it when a task matches its description.

Can I use Add Pattern 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 pchalasani/claude-code-tools --skill add-pattern -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/add-pattern, .gemini/skills/add-pattern, .github/skills/add-pattern and .opencode/skills/add-pattern in your project.

What does Add Pattern need to run?

SKILL.md names no scripts, command-line tools or credentials: Add Pattern is instructions for the agent only.

Does Add Pattern 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 Add Pattern 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 Add Pattern use?

Add Pattern is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Add Pattern use?

About 258 tokens (SKILL.md is roughly 1k 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 Add Pattern?

Skills that share tags, products or a category with Add Pattern: Fail-Closed Agent Tool Builder (simbajigege/book2skills, 184 stars), Autonomous Agent Patterns (davila7/claude-code-templates, 32k stars), Pydanticai (magnus919/agent-skills, 113 stars) and Vercel Composition Patterns (supabase/supabase, 111k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Add Pattern?

pchalasani (a GitHub user) maintains it in pchalasani/claude-code-tools, which has 2,010 GitHub stars. The repository holds 17 skills in this directory. The repository was last updated on October 5, 2026.

Source: pchalasani/claude-code-tools on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.