add-pattern

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.

⭐3.8kstars🔀349forks📁View on GitHub🕐Updated Jan 8, 2026⬇️1downloads

When & Why to Use This Skill

The add-pattern skill is a specialized developer tool designed to capture and organize architectural design patterns within the Langroid multi-agent framework. It facilitates the creation of a structured knowledge base by documenting specific problems, solutions, and code examples, ensuring that complex agentic design logic is preserved for future reference and architectural consistency.

Use Cases

  • Case 1: Recording a newly discovered multi-agent communication pattern to ensure it can be easily replicated in future Langroid projects.
  • Case 2: Building a comprehensive internal library of architectural solutions for common agentic challenges, such as task delegation or state management.
  • Case 3: Standardizing technical documentation by automatically generating structured pattern files that include problem statements, implementation details, and executable code snippets.
nameadd-pattern
descriptionUse this skill when you learn one or more design pattern(s) in the

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