Skip to main content
ClaudeWave
Skill1.9k repo starsupdated today

add-pattern

The add-pattern skill documents newly discovered Langroid design patterns by creating entries in a skills catalog with clear problem descriptions and matching criteria, then writing detailed pattern documentation with implementation examples, problem context, solutions, complete code samples, key points, and usage guidelines in a standardized format.

Install in Claude Code
Copy
git clone --depth 1 https://github.com/pchalasani/claude-code-tools /tmp/add-pattern && cp -r /tmp/add-pattern/plugins/langroid/skills/add-pattern ~/.claude/skills/add-pattern
Then start a new Claude Code session; the skill loads automatically.

SKILL.md

# 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).