parallel-agent-contracts

Parallel Agent Type Contracts

By parcadei · 473 installs

npx skills add parcadei/continuous-claude-v3 --skill parallel-agent-contracts

Source repository · Upstream listing

Parallel Agent Type Contracts When launching parallel agents for code implementation, prevent type duplication. Required in Every Agent Prompt 1. Verification Command (MANDATORY) 2. Grep Before Create 3. Canonical Type Map Include relevant entries from this map in agent prompts: Type Owner File Import From NormalizedTool src/sdk/agent.ts './agent' ToolCall src/sdk/agent.ts './agent' ToolResult src/sdk/agent.ts './agent' ToolDefinition src/sdk/agent.ts './agent' Message src/sdk/types.ts './types' ContentBlock src/sdk/types.ts './types' TokenUsage src/sdk/types.ts './types' ProviderAdapter src/sdk/providers/index.ts './providers' RiggClient src/sdk/client.ts './client' Prompt Template When spawning implementation agents: Why This Works 1. Type checker is the contract tsc catches conflicts automatically 2. Grep is fast 1 second to check if type exists 3. Explicit ownership No ambiguity about where types live 4. Fail fast Agent can't claim "done" with broken types