Контракты типов для параллельных агентов
engineering
parallel-agent-contracts is a Claude Code skill that prevents type duplication when multiple agents implement code in parallel. Each agent is required to run `npx tsc --noEmit 2>&1 | head -20` before marking a task complete, and to grep for existing interfaces with `grep -r "interface TypeName" src/` before defining any new type. The skill provides a canonical type map listing owner files and import paths for types such as `NormalizedTool`, `ToolCall`, `ToolResult`, `Message`, `ContentBlock`, `ProviderAdapter`, and others in a typical SDK layout. A ready-made prompt template lets you embed the relevant registry entries directly into each agent's instructions, leaving no ambiguity about type ownership. Useful for teams coordinating parallel Claude Code agents on TypeScript projects who need contract enforcement without manual cross-agent review.
- #typescript
- #type-checking
- #parallel-agents
- #contracts
- #code-quality