mcpbeat

Parallel Agent Contracts

vibeeval/parallel-agent-contracts

Parallel Agent Type Contracts

531 tokens
context cost
the whole folder, loaded on every use
1
files
instructions only
0
copies elsewhere
how many repositories repackaged it
521
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/vibeeval/vibecosystem --skill parallel-agent-contracts

The instruction itself

7 sections, as written by the author

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

How to use it

Copy the folder

Take vibeeval/parallel-agent-contracts from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.

Install what it needs

The instructions reference npx. Without those the skill loads but fails at the first command.