parallel-agent-contracts

Parallel Agent Type Contracts

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "parallel-agent-contracts" with this command: npx skills add parcadei/continuous-claude-v3/parcadei-continuous-claude-v3-parallel-agent-contracts

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.

  1. 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.

  1. 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

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

agentic-workflow

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

agent-orchestration

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

agent-context-isolation

No summary provided by upstream source.

Repository SourceNeeds Review