Skip to content
Skill

agent-builder

by youware-labs

AI Summary

agent-builder enables developers to create production-ready AI agents with pai-agent-sdk and Pydantic AI, including tools configuration, session persistence, and hierarchical agent setups. Ideal for building autonomous applications, chatbots, and HITL workflows.

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to install the "agent-builder" skill in my project.

Please run this command in my terminal:
# Install skill into the correct directory
mkdir -p .claude/skills/pai-agent-sdk && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/pai-agent-sdk/SKILL.md "https://raw.githubusercontent.com/youware-labs/pai-agent-sdk/main/SKILL.md"

Then restart Claude Code (or reload the window in Cursor) so the skill is picked up.

Description

Build AI agents using pai-agent-sdk with Pydantic AI. Covers agent creation via create_agent(), toolset configuration, session persistence with ResumableState, subagent hierarchies, and browser automation. Use when creating agent applications, configuring custom tools, managing multi-turn sessions, setting up hierarchical agents, or implementing HITL approval flows.

Creating Custom Tools

Inherit from BaseTool: `python from pai_agent_sdk.toolsets.core.base import BaseTool from pydantic_ai import RunContext from pai_agent_sdk.context import AgentContext class MyTool(BaseTool): name = "my_tool" description = "Does something useful" async def call(self, ctx: RunContext[AgentContext], arg: str) -> str: return f"Result: {arg}" ` Full guide: docs/toolset.md

See examples/browser_use.py for complete implementation

` Full example: examples/browser_use.py

Agent can read messages via bus tools

` Full guide: docs/message-bus.md

Complete Examples

| Example | Description | | ---------------------------------------------------- | -------------------------------------------------------- | | examples/general.py | Production pattern: streaming, HITL, session persistence | | examples/deepresearch.py | Autonomous research agent with web tools | | examples/browser_use.py | Browser automation with Docker sandbox |

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 1mo ago
Active
AdoptionUnder 100 stars
14 ★ · Niche
DocsREADME + description
Well-documented

GitHub Signals

Stars14
Forks4
Issues9
Updated1mo ago
View on GitHub
BSD-3-Clause License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Claude Code