orchestration-capability-builder

Creates agent capabilities with Zod schemas, function definitions, registry wiring, and database bindings.

Updated Jul 28, 2026
One-click install
npx skills add https://github.com/human-centric-engineering/resparkable --skill orchestration-capability-builder-human-centric-engineering
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: orchestration-capability-builder
Source: https://github.com/human-centric-engineering/resparkable/tree/main/.claude/skills/orchestration-capability-builder
Command: npx skills add https://github.com/human-centric-engineering/resparkable --skill orchestration-capability-builder-human-centric-engineering

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires zod, and includes references (resource) components.

What problem does it solve? Building a new tool for an AI agent requires coordinated changes across four locations — a TypeScript class, a dispatcher registry entry, a database row, and an agent binding — and missing any one causes silent failures that are hard to debug. ## Core Features & Use Cases - 4-Step Capability Pipeline: Generates the capability class (Zod schema + OpenAI-compatible function definition + execution handler), registers it with the dispatcher, creates the database row, and binds it to an agent. - Execution Type Guidance: Decides between internal (TypeScript class), api (external REST URL), and webhook (fire-and-forget) execution types, with ready-to-use templates for each. - PII & Provenance Safety: Enforces the processesPii / redactProvenance contract so sensitive data is masked in durable audit rows while the LLM still sees live results. - Use Case: When an agent needs to look up an order, charge a payment, or send a Slack notification, this Skill produces all four artifacts correctly — or recommends an existing call_external_api recipe instead of writing redundant code. ## Quick Start Ask the agent to build a new capability that lets a support agent look up an order by ID and return its status and total.

Frequently Asked Questions about orchestration-capability-builder

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a custom tool for an AI agent in TypeScript?▼

Extend BaseCapability with a Zod schema, an OpenAI-compatible function definition, and an execute method, then register the class in registry.ts, create the AiCapability database row, and bind it to the agent. All four steps are required for the tool to work.

When should I use call_external_api instead of building a new capability?▼

Use the call_external_api capability with a recipe for HTTP-shaped integrations like sending email, charging payments, or posting to chat. Build a fresh capability only for stateful integrations, multi-step OAuth flows, or logic that does not fit a single HTTP request/response.

What is the difference between internal, api, and webhook execution types?▼

Internal runs TypeScript business logic in the app and requires a registered class. Api calls an external REST endpoint directly with no code needed. Webhook is fire-and-forget notification where the response is not fed back to the LLM.

Why does my capability fail with unknown_capability or capability_inactive errors?▼

Unknown_capability means the handler class is not registered in registry.ts. Capability_inactive means the database row has isActive set to false. The dispatch pipeline returns the error code for exactly the step that failed.

How do I prevent customer PII from leaking into conversation audit logs?▼

Set processesPii to true and override redactProvenance to mask sensitive fields using helpers like maskEmail, maskPhone, and redactedString. The registry refuses to load a PII-handling capability without an explicit redactor override.

When should I set isIdempotent to true on a capability?▼

Set isIdempotent to true only when the capability is provably safe to rerun, such as idempotent PUTs or vendors handling Idempotency-Key headers. The default false keeps the dispatch cache active, which deduplicates side effects on re-drive after crashes.