Add Langroid Design Patterns

VerifiedSafe

Add new Langroid design patterns to documentation files, with clear descriptions and proper references.

Sby Skills Guide Bot
DocumentationBeginner
8/22/2026
Claude CodeCodex
#langroid#design-patterns#knowledge-base#code-examples#documentation

Recommended for

Automated summary

This skill guides the addition of a new Langroid design pattern to an internal knowledge base, with an index entry in patterns/SKILL.md and a detailed Markdown document in patterns/.

Strengths

  • Enforces a two-level structure: a short, matchable description in patterns/SKILL.md plus a full reference document
  • The description is written specifically so future agents can match it against design problems they hit
  • Pattern documents follow a fixed format (Problem, Solution, Complete Code Example, Key Points, When to Use), keeping the catalog consistent
  • Points to existing pattern files as the template, which limits stylistic drift

Limitations

  • Provides no literal skeleton or template; you must read existing files to match the format
  • Assumes the agent can already write correct Langroid code — the skill does not explain the patterns themselves
  • No deduplication or validation step before a new entry is added
When to use it

Use it right after solving a Langroid design problem so the approach is captured as a reusable pattern in the repository.

When not to use it

Avoid it for documenting a one-off API trick or code with no reusable pattern value, or when the project has no patterns/ directory.

Security analysis

Safe
Quality score72/100

The skill only instructs the agent to update local markdown documentation files. It declares no tools and performs no execution, network access, or data exfiltration, so there is no meaningful security risk.

No concerns found

How this analysis is made

Examples

Capture a new Langroid pattern
I just worked out how to wire Langroid's Task with a vector store so agents can recall prior turns. Add this as a new pattern: update patterns/SKILL.md under the right category and write the reference document in patterns/ following the existing format.
Document an existing solution
Turn the approach in agent_utils.py into a Langroid design pattern — create patterns/task-delegation.md with Problem, Solution, Complete Code Example, Key Points and When to Use, then link it from patterns/SKILL.md.

name: add-pattern description: Use this skill when you learn one or more design pattern(s) in the metadata: author: langroid

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


Converted and distributed by TomeVault — claim your Tome and manage your conversions.

<!-- tomevault:4.0:skill_md:2026-04-11 -->

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/add-langroid-design-patterns-mt3wm172/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/add-langroid-design-patterns-mt3wm172' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/add-langroid-design-patterns-mt3wm172/download' --output '.skill-downloads/add-langroid-design-patterns-mt3wm172/SKILL.md.part' && mv '.skill-downloads/add-langroid-design-patterns-mt3wm172/SKILL.md.part' '.skill-downloads/add-langroid-design-patterns-mt3wm172/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/add-langroid-design-patterns-mt3wm172/SKILL.md' && test -s '.skill-downloads/add-langroid-design-patterns-mt3wm172/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/add-pattern' && cp -R '.skill-downloads/add-langroid-design-patterns-mt3wm172' '.claude/skills/add-pattern'

Codex
test -f '.skill-downloads/add-langroid-design-patterns-mt3wm172/SKILL.md' && test -s '.skill-downloads/add-langroid-design-patterns-mt3wm172/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/add-pattern' && cp -R '.skill-downloads/add-langroid-design-patterns-mt3wm172' '.agents/skills/add-pattern'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/add-langroid-design-patterns-mt3wm172'

openskills read 'add-langroid-design-patterns-mt3wm172'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/add-langroid-design-patterns-mt3wm172/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills