Agent skill · Design & Presentation

patterns

Design patterns for the Langroid multi-agent LLM framework. Covers agent configuration, tools, task control, and integrations.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill patterns --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 5 KB
Bundled scripts: none
Path: skills/ai-llm/patterns/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Langroid Patterns ## Instructions Below is an INDEX of design patterns organized by category. Each item describes WHAT you might want to implement, followed by a REFERENCE to a document with a complete code example. Scan this index to find patterns matching your needs, then consult the corresponding document. --- ## Agent & Task Basics 1. **Task Returns Tool Directly** Create a Langroid Agent equipped with a single Tool (a ToolMessage), and wrap it in a Task so that running the task returns that ToolMessage directly. Use this pattern when you want a simple LLM agent that returns a structured response. - Reference: `./task-return-tool.md` --- ## Tool Handlers 2. **Stateful Handler on Agent** Define a STATEFUL tool handler as a METHOD on the agent (not inside the ToolMessage). Use this pattern when: (a) the tool handler needs to execute external operations (API calls, database queries, file I/O), (b) you need to track state across retries (e.g., failure counter), (c) the handler needs access to agent-level resources (connections, configs), or (d) you want Langroid to automatically loop errors back to the LLM for self-correction. The method name must match the `request` field of the

What's inside
Steps it walks through
  1. Instructions
  2. Agent & Task Basics
  3. Tool Handlers
  4. Task Control
  5. Integration & Output
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the patterns skill do?

Design patterns for the Langroid multi-agent LLM framework. Covers agent configuration, tools, task control, and integrations.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill patterns --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going