CONTRACT TEMPLATE banner
ai-analyst-lab ai-analyst-lab

CONTRACT TEMPLATE

Development community

Description

# CONTRACT Block Template (OR-1.5) ## Purpose Every agent `.md` file MUST begin with a CONTRACT block -- a YAML declaration inside an HTML comment that describes the agent's interface. The OR-3 DAG walker reads these contracts to build the execution graph. The CONTRACT block is invisible to the agent at runtime (it is an HTML comment), but it is machine-readable for pipeline orchestration, dependency resolution, and documentation generation. ## Format ```yaml <!-- CONTRACT_START name: agent-

Installation

Installs to ~/.claude/agents/ai-analyst-lab-ai-analyst-contract_template.md

Terminal
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/ai-analyst-lab/ai-analyst/HEAD/agents/CONTRACT_TEMPLATE.md -o ~/.claude/agents/ai-analyst-lab-ai-analyst-contract_template.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository