Learn-skills.dev agent-builder
Provides guidance for building and deploying Claude Agent SDK agents and Claude Code Skills. Use when designing agents (dev or non-dev), choosing architectures/tools, or deploying to a VPS.
install
source · Clone the upstream repo
git clone https://github.com/NeverSight/learn-skills.dev
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/NeverSight/learn-skills.dev "$T" && mkdir -p ~/.claude/skills && cp -r "$T/data/skills-md/aaronbakerdev/knearme-platform/agent-builder" ~/.claude/skills/neversight-learn-skills-dev-agent-builder && rm -rf "$T"
manifest:
data/skills-md/aaronbakerdev/knearme-platform/agent-builder/SKILL.mdsource content
Agent Builder Skill
Build and deploy Claude Agent SDK applications to your Hetzner VPS.
Metadata
- Name: agent-builder
- Version: 1.1.0
- Author: KnearMe
- Tags: claude, agent-sdk, skills, vps, deployment
When to Use
Use this skill when:
- Creating a new AI agent application (coding or non-coding use cases)
- Designing agent behavior, escalation paths, and decision boundaries
- Deploying agents to the Hetzner VPS
- Setting up multi-agent architectures
- Troubleshooting agent deployments
Non-Dev First Principle
Always consider non-development use cases. Many high-value agents are workflow-focused, not code-focused:
- Customer support triage
- Sales qualification
- Operations checklists
- Marketing content coordination
- Finance/QA reviews
- Hiring or onboarding workflows
If the request is non-dev or mixed, start with discovery and workflow design before writing code.
Start Here (Design → Build)
- Define the outcome, user, and trigger →
references/agent-design-guide.md - Choose an architecture pattern →
references/architectures.md - Select tools with least-privilege →
references/tool-development.md - Define roles + escalation rules →
references/role-definition.md - Instrument + improve →
+references/performance-monitoring.mdreferences/improving-agents.md - Add UX if needed →
references/ui-development.md - Test before shipping →
references/testing-guide.md
Reference Map (Progressive Disclosure)
— Discovery, use-case fit, tool decision trees, anti-patternsreferences/agent-design-guide.md
— Single, orchestrator+subagents, multi-agent fleetsreferences/architectures.md
— Role prompts, delegation patterns, escalation triggersreferences/role-definition.md
— Tool selection, MCP tools, guardrailsreferences/tool-development.md
— Metrics, budgets, alerts, logsreferences/performance-monitoring.md
— Feedback loops, evals, regression testsreferences/improving-agents.md
— Chat UX patterns + component examplesreferences/ui-development.md
— Test strategy, fixtures, mocks, evalsreferences/testing-guide.md
— Ready-to-use chat UI (React)references/react-chat-component.tsx
— Complete agent server templatereferences/agent-template.ts
— Expanded non-dev templates (support, sales, ops, marketing, finance)references/non-dev-templates.md
— Background/autonomous role execution patternsreferences/background-agents.md
— Self-improving agent loop (AlphaEvolve patterns)references/self-improving-agents.md
Claude Code Skill Authoring Rules
- Required frontmatter:
(lowercase, hyphen/underscore) andname
(what the skill does + when to use).description - Optional
: If present, it limits tools in Claude Code. If omitted, tools are not restricted by the skill file.allowed-tools - Keep it short: Aim to keep
under ~500 lines and move long content intoSKILL.md
.references/ - Progressive disclosure: Link reference files at most one level deep (no nested reference chains).
Quick Start
Create New Agent
mkdir my-agent && cd my-agent npm init -y npm install @anthropic-ai/claude-agent-sdk express ws # See references/agent-template.ts for a full server template
Deploy to VPS (Short Version)
- Run
once per serverscripts/setup-vps.sh - Use
per agentscripts/deploy-agent.sh - See
for multi-agent deploymentsreferences/architectures.md
Non-Dev Agent Templates
Use these when the goal is business workflow impact, not coding. Expanded templates:
references/non-dev-templates.md
1) Support Triage Agent
- Outcome: Accurate category + next action in <2 minutes
- Trigger: New ticket or chat created
- Inputs: Ticket text, user plan, last 5 interactions
- Outputs: Priority, summary, suggested response, escalation flag
- Tools: Read, Glob, Grep, AskUserQuestion (Write for drafts)
- Escalate when: Refunds, security, legal threats, angry users
- Pattern: Single agent → Orchestrator+Subagents as volume grows
2) Sales Qualification Agent
- Outcome: Score lead + recommended next step
- Trigger: Inbound form or sales inbox message
- Inputs: Form fields, source, company size, prior contact
- Outputs: Fit score, objections, suggested reply
- Tools: Read, Glob, Grep, AskUserQuestion (Write for drafts)
- Escalate when: Enterprise/legal requirements, pricing exceptions
- Pattern: Single agent
3) Ops Checklist Agent
- Outcome: Runbook completed with clear status
- Trigger: Daily/weekly ops cadence, incident checklist
- Inputs: Runbook file, system status snapshots
- Outputs: Checklist state, anomalies, recommended follow-ups
- Tools: Read, Glob, Grep (Bash only if strictly required)
- Escalate when: Missing signals, critical thresholds
- Pattern: Single agent (orchestrator if many systems)
4) Marketing Content Coordinator
- Outcome: On-brand draft + distribution checklist
- Trigger: New campaign request or content brief
- Inputs: Brand voice docs, product updates, target persona
- Outputs: Draft content, channel checklist, CTA options
- Tools: Read, Glob, Grep, Write, Edit
- Escalate when: Claims need legal review, sensitive topics
- Pattern: Orchestrator+Subagents (researcher/writer/reviewer)
5) Finance/QA Review Agent
- Outcome: Flag anomalies + recommend follow-ups
- Trigger: Monthly close, QA batch, or audit request
- Inputs: Reports, threshold rules, last period baselines
- Outputs: Findings list, confidence, next steps
- Tools: Read, Glob, Grep (no Write unless drafting)
- Escalate when: Large variances, policy violations
- Pattern: Single agent with strict constraints
Non-Dev Decision Checklist
- Is the source of truth clear and accessible?
- What actions are advisory vs automatic?
- What requires human approval?
- What are the escalation triggers?
- What does success look like in measurable terms?
- What is the lowest-risk toolset that still works?
Background Agents (Summary)
- Use job-based execution for discrete tasks (events, cron).
- Use continuous execution for live routing and monitoring.
- Map authority to an autonomy ladder and enforce escalation rules.
- See
for full patterns.references/background-agents.md
Self-Improving Agents (Summary)
- Use a generate → evaluate → promote loop with automated evaluators.
- Treat best prompts/workflows as a "skill library" that evolves over time.
- Only promote when metrics improve on a fixed regression suite.
- See
for AlphaEvolve-inspired patterns.references/self-improving-agents.md
Architecture Patterns (Summary)
- Single Agent: One domain, simple logic
- Orchestrator + Subagents: Multi-specialty, parallel work
- Multi-Agent Fleet: Separate products/domains
- See
for the full decision treereferences/architectures.md
SDK Essentials (Summary)
const response = query({ prompt, options: { systemPrompt, allowedTools: ["Read", "Glob", "Grep", "Task", "Skill"], agents: SUBAGENTS, permissionMode: "acceptEdits", settingSources: ["user", "project"], }, });
must be inTask
for subagents to spawnallowedTools- Subagents cannot spawn other subagents
- Skills load only with
andsettingSources
in"Skill"allowedTools - Include
to load"project"
instructionsCLAUDE.md
frontmatter applies to Claude Code CLI, not SDKallowed-tools- See
for streaming/session examplesreferences/agent-template.ts
Deployment & Ops (Summary)
- Use
+scripts/setup-vps.shscripts/deploy-agent.sh - Put Nginx + SSL in front of web UIs
- Track latency, cost, and error budgets (
)references/performance-monitoring.md - Add feedback loops and evals (
)references/improving-agents.md
Testing & Quality (Summary)
- Test behavior, not phrasing; keep regression fixtures
- Validate tool safety boundaries and escalation paths
- See
for full patternsreferences/testing-guide.md
Resources
Claude Agent SDK Docs: https://docs.anthropic.com/claude-code/agent-sdk Hetzner Cloud Console: https://console.hetzner.cloud PM2 Documentation: https://pm2.keymetrics.io/docs Cloudflare Tunnel Docs: https://developers.cloudflare.com/cloudflare-one/connections/connect-apps
Scripts
- Initial VPS configurationscripts/setup-vps.sh
- Deploy a new agentscripts/deploy-agent.sh
- Scaffold a new agent projectscripts/new-agent.sh