🧩
AI EngineeringPython

Langroid Patterns

by pchalasani

Langroid Patterns is an AI Engineering skill for Claude Code, published by pchalasani in claude-code-tools.

2K stars128 forkson pchalasani/claude-code-toolsAdded 2026/08/18Repository updated 2026/08/17
claude-codeclicli-agentcode-agentcodexcodex-clicontextllmtmux
Install in seconds
Install Langroid Patterns
Copy Langroid Patterns into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/pchalasani/claude-code-tools/tree/main/plugins/langroid/skills/patterns ~/.claude/skills/patterns

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/pchalasani/claude-code-tools.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
plugins/langroid/skills/patterns/SKILL.md in pchalasani/claude-code-tools
Installs to
~/.claude/skills/patterns
Collection
One of 17 skills cataloged from this repository
Category
AI Engineering2451 skills

What Langroid Patterns does

Langroid Patterns catalogs design patterns for the Langroid multi-agent LLM framework, including task returns, tool handlers, task control, MCP integration, and quiet mode. Use it to find reference code examples when building Langroid agents.

Langroid Patterns is cataloged under AI Engineering on DirSkills. Langroid Patterns comes from a repository tagged claude-code, cli, cli-agent, code-agent and codex.

Documentation

README

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

  1. Stateful Handler on Agent

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Langroid Patterns

  • What else does pchalasani publish alongside Langroid Patterns?

    Langroid Patterns is one of 17 skills that DirSkills catalogs from pchalasani/claude-code-tools, the repository it ships in. Its siblings there include Add Pattern, Agent Style and Avoid AI Writing. Each one is a separate skill with its own page in this directory, installs the same way Langroid Patterns does, and is maintained by pchalasani in that same repository. The rest of the collection is listed on the pchalasani/claude-code-tools page.

  • How does Langroid Patterns compare to other AI Engineering skills?

    Langroid Patterns ranks #874 by stars among the 2451 AI Engineering skills in this catalog. The most-starred ones next to it are Architecture Decision Records, AI-First Engineering and Agentic OS. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Langroid Patterns against them. Open each page to compare what they document and how they install.

More from pchalasani/claude-code-tools

Langroid Patterns is one of 17 skills cataloged on DirSkills from pchalasani/claude-code-tools.

See all 17 skills
🧩
2w ago

Add Pattern

Add Pattern records newly learned Langroid design patterns into the patterns library with a reference link and an implementation document. Use it when you discover a pattern to keep the catalog organized and searchable for future design problems.
AI Engineering
2K128
✍️
2w ago

Agent Style

Agent Style applies 21 literature-backed English technical-prose writing rules (passive voice, concrete language, needless words, citation discipline) for AI-assisted formal documents. Use when the user explicitly asks for agent-style by name for papers, design docs, proposals, READMEs, or commit messages.
Writing
2K128
✍️
2w ago

Avoid AI Writing

Avoid AI Writing audits and rewrites content to remove AI writing patterns (AI-isms) such as em-dash overuse, bold overuse, and excessive bullet lists. Use it when asked to remove AI-isms, clean up AI writing, or make text sound less like AI.
Writing
2K128
👣
2w ago

Code Walk Thru

Code Walk Thru opens files in the user's editor one by one at specific line numbers so they can follow along while the agent explains code or shows changes.
Automation
2K128
🔀
2w ago

Dynamic Workflow

Dynamic Workflow creates, runs, and manages durable JavaScript workflows that coordinate multiple headless Codex agents for fan-out/fan-in, multi-stage pipelines, and background runs. Use it when you need dynamic branching, looping, or long-running multi-agent work that a single model turn cannot handle directly.
Automation
2K128
🔔
2w ago

Issue Reply Wakeup

Issue Reply Wakeup registers an existing GitHub issue so the current Codex or Claude Code session is woken when its first future comment arrives. Use when work is blocked on a GitHub reply and the session must resume asynchronously.
Automation
2K128