Core OO Atom Types
These nodes define executable structure and configuration.
Documentation
Context Canvas is a source-first visual system for building Claude-compatible agent teams. Use these docs for model rules, relationship schema, build gate behavior, and export structure.
/packs/new using a template or an empty bundle./canvas/[packId], select a source node, and add related nodes from Inspector.Use these question patterns when you want an assistant to guide setup, modeling, and export decisions.
It prevents prompt sprawl and broken agent wiring. You model agent structure visually, enforce valid relationships with a build gate, and export deterministic `.claude` files you can review, diff, and audit.
Create a team from template, open it in Canvas, edit nodes and edges for your domain, run Validate/Auto Fix, then export. Either open a GitHub pull request directly or download the zip and commit it in your Claude Code repo.
Use a template when your workflow resembles an existing pattern (security review, incidents, feature implementation, migration). Start empty only when your process is materially different from available templates.
Move repeated instructions into shared SKILL and POLICY nodes, keep AGENT_CLASS prompts concise, and compose behavior through typed edges instead of copying long sections across agents.
Canvas is for human review of structure and intent. Export output is machine-ready for Claude Code (`.claude/agents`, `.claude/skills`, `.claude/rules`, settings files), so runtime usage is file-based and deterministic.
Run the build gate. It checks allowed edge pairings, cycle constraints, and Claude export compliance. Fix flagged issues in Inspector, then revalidate until the team is clean.
Choose one of two paths: create a GitHub pull request directly from Context Canvas, or download the zip and merge generated files into your repo. Review diffs and treat generated files like source.
These nodes define executable structure and configuration.
These nodes provide contextual guidance, policy references, and traceability.
| Label | Allowed Pair | Rationale | Constraints |
|---|---|---|---|
EXTENDS | AGENT_CLASS -> AGENT_CLASS | Inheritance specializes one agent from another, so both endpoints must be agent classes. | Multiple parent classes are allowed. EXTENDS graph must remain acyclic. |
COMPOSES | AGENT_CLASS -> SKILL | Composition models an agent owning reusable capabilities, so it points from agent to skill. | Composition is directional (owner -> capability). |
REQUIRES | SKILL -> SKILL | Skill dependencies describe capability prerequisites, so dependencies are only between skills. | REQUIRES graph must remain acyclic. |
CONFIGURES | SETTING -> AGENT_CLASS|SKILL | Settings provide runtime configuration and can only configure executable nodes (agents/skills). | Settings are attached, not inherited. |
RELATED | ANY -> ANY | RELATED is a contextual linkage for knowledge traceability and should not replace OO structural edges. | At least one endpoint must be a knowledge atom. Use only for context/policy linkage, not OO structure. |
| Atom Type | Export Target | Notes |
|---|---|---|
AGENT_CLASS | .claude/agents/<slug>.md | Merged prompt sections + YAML frontmatter |
SKILL | .claude/skills/<slug>/SKILL.md | Skill instructions + frontmatter |
POLICY | .claude/rules/<slug>.md (when exportAsRule=true) | Policy/rule export for Claude consumption |
SETTING | .claude/settings.json and/or .mcp.json | Permissions, env, and MCP configuration |
Knowledge Atoms | CLAUDE.md sections | Context and references merged into top-level guide |
For machine-readable references and endpoint examples, use the API page at /apis.