lauren-framework/lauren-ai/common-agent-patterns

Claude Code and agent skill by lauren-framework/lauren-ai

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Provides copy-paste complete Lauren AI agent implementations for the most common production scenarios. Covers a research agent with web search and knowledge base, a customer service bot with memory and guardrails, a data-analysis agent with database tools, and a sequential pipeline agent. Use when scaffolding a new agent or when a complete working example is needed rather than API reference.

Install

npx vskill@latest install lauren-framework/lauren-ai/common-agent-patterns

SKILL.md

The same SKILL.md was published earlier as lauren-framework/lauren-ai/common-agent-patterns.

Common Agent Patterns

Use codemap find "SymbolName" to locate any symbol before reading — it gives
exact file + line range and is faster than grep.

Complete, copy-pasteable agent patterns. Each is a working snippet you can drop into a project with minimal changes.

Patterns

  • Research agent: searches the web, synthesises results, streams tokens → research-agent.md
  • Customer service bot: multi-turn, memory, guardrails, agent handoff → customer-service-bot.md
  • Data-analysis agent: queries a database, formats results, explains findings → data-analysis-agent.md
  • Pipeline agent: sequential tool chain with no LLM mid-loop, streaming → see below

Quick reference: minimal streaming agent

python
from lauren_ai import agent, tool, use_tools, AgentRunnerBase, LLMConfig, LLMModule
@tool()
async def calculator(expression: str) -> dict:
"""Evaluate a Python math expression.
Args:
expression: A safe arithmetic expression, e.g. '2 + 2'.
"""
try:
result = eval(expression, {"__builtins__": {}})
return {"result": result}
except Exception as e:
return {"error": str(e)}
@agent(model="claude-haiku-4-5-20251001", system="You are a math tutor. Use the calculator for any arithmetic.")
@use_tools(calculator)
class MathTutorAgent: ...
# Wire (or inject via AgentModule in production)
cfg = LLMConfig(provider="anthropic", model="claude-haiku-4-5-20251001", api_key="sk-ant-...")
provider = LLMModule.for_root(cfg)
runner = AgentRunnerBase(transport=provider.transport_instance)
agent_instance = MathTutorAgent()
# Blocking
result = await runner.run(agent_instance, "What is 17 * 23?")
print(result.content)
# Streaming
async for chunk in await runner.run_stream(agent_instance, "What is 17 * 23?"):
if chunk.delta:
print(chunk.delta, end="", flush=True)

Pipeline agent (sequential tool chain, no LLM loop)

When you need deterministic tool execution without an LLM making routing decisions:

python
from lauren_ai import tool, AgentRunnerBase
@tool()
async def fetch_data(source: str) -> dict:
"""Fetch raw data from a source."""
return {"data": f"raw content from {source}"}
@tool()
async def transform_data(data: str, format: str = "json") -> dict:
"""Transform data into the specified format."""
return {"transformed": data, "format": format}
@tool()
async def save_result(content: str, filename: str) -> dict:
"""Save content to a file."""
return {"saved": filename, "bytes": len(content)}
# Call tools directly via ToolExecutor without an agent loop
from lauren_ai._tools._executor import ToolExecutor
executor = ToolExecutor(tools=[fetch_data, transform_data, save_result], config=cfg)
raw = await executor.call("fetch_data", {"source": "https://api.example.com/data"})
transformed = await executor.call("transform_data", {"data": raw["data"], "format": "csv"})
saved = await executor.call("save_result", {"content": transformed["transformed"], "filename": "output.csv"})

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/lauren-framework/lauren-ai/common-agent-patterns/badge)](https://verified-skill.com/skills/lauren-framework/lauren-ai/common-agent-patterns)

Something wrong with this skill or its page? Tell us.