parallel-agent-contracts
Maintains type consistency and prevents duplication when using multiple agents.
Install
mkdir -p .claude/skills/parallel-agent-contracts && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/4204" && unzip -o skill.zip -d .claude/skills/parallel-agent-contracts && rm skill.zipInstalls to .claude/skills/parallel-agent-contracts
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Parallel Agent Type ContractsKey capabilities
- →Enforce canonical type usage across parallel agents
- →Validate code against TypeScript standards
- →Prevent duplication of interfaces and types
- →Automate verification of type integrity
How it works
It mandates a grep-based check to prevent duplicate type definitions and uses the TypeScript compiler to verify that all type contracts are satisfied before completion.
Inputs & outputs
When to use parallel-agent-contracts
- →Check for existing types before creating new ones
- →Verify code implementation against TypeScript standards
- →Ensure parallel agents share a canonical type map
About this skill
Parallel Agent Type Contracts
When launching parallel agents for code implementation, prevent type duplication.
Required in Every Agent Prompt
1. Verification Command (MANDATORY)
## Before Marking Complete
Run verification:
\`\`\`bash
npx tsc --noEmit 2>&1 | head -20
\`\`\`
If ANY type errors exist, fix them before completing.
2. Grep-Before-Create
## Before Creating Any Type/Interface
First check if it exists:
\`\`\`bash
grep -r "interface YourTypeName\|type YourTypeName" src/
\`\`\`
If found, import it. NEVER duplicate existing types.
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:
# Task: [Description]
## Type Ownership (DO NOT recreate)
- [List relevant types from canonical map]
## Before Creating New Types
Run: `grep -r "interface TypeName" src/` - if exists, import it.
## Before Marking Complete
Run: `npx tsc --noEmit 2>&1 | head -20`
Fix all type errors before completing.
## Your Implementation
[Actual task description]
Why This Works
- Type checker is the contract - tsc catches conflicts automatically
- Grep is fast - 1 second to check if type exists
- Explicit ownership - No ambiguity about where types live
- Fail fast - Agent can't claim "done" with broken types
When not to use it
- →Projects without TypeScript configuration
- →Single-agent workflows where type collisions are not a risk
Prerequisites
Limitations
- →Requires manual inclusion of the canonical type map in agent prompts
- →Limited to the scope of the provided canonical type map
How it compares
Unlike manual verification, this enforces a standardized pre-completion check that prevents agents from introducing conflicting type definitions.
Compared to similar skills
parallel-agent-contracts side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| parallel-agent-contracts (this skill) | 1 | 7mo | No flags | Intermediate |
| typescript-write | 30 | 2mo | Review | Advanced |
| codex-skill | 12 | 5mo | Review | Advanced |
| typescript | 0 | 4mo | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by parcadei
View all by parcadei →You might also like
typescript-write
metabase
Write TypeScript and JavaScript code following Metabase coding standards and best practices. Use when developing or refactoring TypeScript/JavaScript code.
codex-skill
feiskyer
Use when user asks to leverage codex, gpt-5, or gpt-5.1 to implement something (usually implement a plan or feature designed by Claude). Provides non-interactive automation mode for hands-off task execution without approval prompts.
typescript
Jordy756
>
drizzle
lobehub
Drizzle ORM schema and database guide. Use when working with database schemas (src/database/schemas/*), defining tables, creating migrations, or database model code. Triggers on Drizzle schema definition, database migrations, or ORM usage questions.
zustand
lobehub
Zustand state management guide. Use when working with store code (src/store/**), implementing actions, managing state, or creating slices. Triggers on Zustand store development, state management questions, or action implementation.
dependency-upgrade
wshobson
Manage major dependency version upgrades with compatibility analysis, staged rollout, and comprehensive testing. Use when upgrading framework versions, updating major dependencies, or managing breaking changes in libraries.