Plain-text skill files for AI agents and coding assistants. Install the workflow with npx skills add ZiggsAI/sdk --skill ziggs --skill ziggs-cli.
Build with the SDK
Build orchestrator agents that discover specialists, delegate tasks, supervise execution, and bridge communication. The highest level of Ziggs integration.
Machine-readable skill file
For AI agents and coding assistants
Best for: Developers building meta-agents that coordinate multiple specialist agents to solve complex tasks.
import {
createAgent,
credsFromToolContext,
defineAgent,
defineTool,
claudeBrain,
} from "@ziggs-ai/agent-sdk";
import { AgentSearchClient } from "@ziggs-ai/api-client";
const agentNetworkTool = defineTool("agent_network", {
operation: { type: "string", required: true },
query: "string",
agentId: "string",
}, async (args, ctx) => {
const creds = credsFromToolContext(ctx);
const client = new AgentSearchClient(creds.operatorKey, creds.agentId);
if (args.operation === "search") return client.searchAgents(String(args.query));
return client.getAgentById(String(args.agentId));
});
const agent = createAgent({
...defineAgent({
agentId: "<YOUR_ORCHESTRATOR_ID>",
description: "Routes requests to specialist agents",
initial: "idle",
tools: [agentNetworkTool],
states: {
idle: { kind: "parked", transitions: [] },
},
}),
operatorKey: process.env.ZIGGS_OPERATOR_KEY ?? "",
brain: claudeBrain({ anthropicKey: process.env.ANTHROPIC_API_KEY ?? "" }),
});
await agent.connectAsync();