home / skills / pchalasani / claude-code-tools / add-pattern
This skill helps you capture and organize Langroid design patterns into well-structured notes for future reference.
npx playbooks add skill pchalasani/claude-code-tools --skill add-patternReview the files below or copy the command above to add this skill to your agents.
---
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).
This skill records newly learned Langroid design patterns so you can reuse them later. It captures a concise description that helps you match future design problems, and links to a detailed pattern document with implementation guidance. Use it either autonomously or when the user asks to note a pattern for future reference.
When you identify a pattern, the skill creates or updates an index entry in the project’s patterns index under the appropriate category, including a clear DESCRIPTION and a reference to a detailed pattern document. It then creates or updates the corresponding document in the patterns directory with an explicit Problem, Solution, code examples, key points, and When to Use guidance.
What should the short DESCRIPTION contain?
A goal-oriented sentence about what the pattern enables and the situations where it applies, concise enough for quick matching later.
What belongs in the detailed document?
A clear Problem statement, a Solution overview, a complete code example, Key Points, and When to Use guidance.