skills/arckit-agent-integration/SKILL.md
Design multi-agent integration — inter-agent contracts, message protocols, shared state, failure isolation
npx skillsauth add tractorjuice/arckit-codex arckit-agent-integrationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are helping an enterprise architect design the integration architecture for a multi-agent system — defining inter-agent contracts, message protocols, shared state, and failure isolation boundaries.
$ARGUMENTS
Note: Before generating, scan
projects/for existing project directories. For each project, list allARC-*.mdartifacts, checkexternal/for reference documents, and check000-global/for cross-project policies. If no external docs exist but they would improve output, ask the user.
Determine integration scope:
Ask the user: "What agents or agent group should this integration architecture cover? (e.g., a specific project, a swarm, a pipeline, or cross-project integration)"
Use the user's input and $ARGUMENTS to determine scope.
Read existing artifacts from the project context:
MANDATORY (must be present to proceed):
RECOMMENDED (read if available, note if missing):
OPTIONAL (read if available, skip silently if missing):
Identify the target project:
projects/*/ directories and find the highest NNN-* number (or start at 001 if none exist)002)projects/{NNN}-{slug}/README.md with the project name, ID, and date — the Write tool will create all parent directories automaticallyprojects/{NNN}-{slug}/external/README.md with a note to place external reference documents herePROJECT_ID = the 3-digit number, PROJECT_PATH = the new directory pathRead the template (with user override support):
.arckit/templates-custom/agent-integration-template.md exists in the project root.arckit/templates/agent-integration-template.md (default)Tip: Users can customize templates with
$arckit-customize agent-integration
Analyze agent designs for integration points:
Read all AAGR documents to identify:
For each agent, document:
If fewer than 3 agents are found, ask the user: "I've identified fewer than 3 agents for integration. Do you want to expand the scope, or proceed with what exists?"
Build the integration architecture:
A. Integration Architecture Overview:
B. Inter-Agent Contracts:
C. Message Protocol (Mermaid sequence diagram):
sequenceDiagram syntaxD. Shared State Design:
E. Failure Isolation Boundaries:
F. Observability Design:
Read the quality checklist:
Before writing the file, read .arckit/references/quality-checklist.md and verify all Common Checks plus the AAIN per-type checks pass. Fix any failures before proceeding.
Write the output:
projects/{project-dir}/ARC-{PROJECT_ID}-AAIN-v1.0.mdagent-integration-template.mdIMPORTANT - Auto-Populate Document Information Fields:
Before completing the document, populate document information fields:
[PROJECT_ID] → Extract from project path (e.g., "001")[VERSION] → Start with "1.0" for new documents[DATE] / [YYYY-MM-DD] → Current date in YYYY-MM-DD format[DOCUMENT_TYPE_NAME] → Document purposeARC-[PROJECT_ID]-AAIN-v[VERSION] → Generated document ID[STATUS] → "DRAFT" for new documents[CLASSIFICATION] → Default to ${default_classification}; if unavailable, use "OFFICIAL" (UK Gov) or "PUBLIC"[PROJECT_NAME] → Full project name[OWNER_NAME_AND_ROLE] → Document owner| 1.0 | {DATE} | ArcKit AI | Initial creation from `$arckit-agent-integration` command |
**Generated by**: ArcKit `$arckit-agent-integration` command
**Generated on**: {DATE}
**ArcKit Version**: {ARCKIT_VERSION}
**Project**: {PROJECT_NAME} (Project {PROJECT_ID})
**AI Model**: [Actual model name]
User: $arckit-agent-integration Design integration for the research swarm in project 003
You should:
projects/003-research-swarm/)projects/003-research-swarm/ARC-003-AAIN-v1.0.md
AAGR is mandatory — you need at least one agent design to define integration contracts
Contracts define behavior: Each contract must specify input/output schemas, protocol, and SLA
≥3 agent contracts required — fewer than 3 contracts indicates incomplete integration coverage
Sequence diagram is mandatory — shows message routing and agent interactions
Failure isolation boundaries must cover agent processes, tool executions, and message delivery
Observability must include alerts with specific threshold values
Cross-reference AAGR, AAGI, AAOV to ensure consistency with existing agent definitions
Traceability: All integration decisions must link back to AAGR agent designs
Reference agent architecture reference from .arckit/references/agent-architecture-reference.md for integration patterns and communication models
Markdown escaping: When writing less-than or greater-than comparisons, always include a space after < or > (e.g., < 3 seconds, > 99.9% uptime) to prevent markdown renderers from interpreting them as HTML tags or emoji
$arckit-agent-governance (governance for multi-agent orchestration)$arckit-agent-security (securing inter-agent communication)$arckit-agent-maturity (maturity assessment of integration capabilities)Before writing the output file, verify:
CRITICAL - Token Efficiency:
Create the comprehensive integration architecture following the template structure with all sections.
Use the Write tool to create projects/{project-dir}/ARC-{PROJECT_ID}-AAIN-v1.0.md with the complete integration architecture.
DO NOT output the full document in your response. This would exceed token limits.
After writing the file, show ONLY a concise summary:
## Agent Integration Architecture Complete ✅
**Project**: [Project Name]
**File Created**: `projects/[PROJECT]/ARC-{PROJECT_ID}-AAIN-v1.0.md`
### Integration Summary
**Agents**: [Number] agents integrated
**Contracts**: [Number] inter-agent contracts defined
**Patterns**: [Pattern 1, Pattern 2]
**Shared State Stores**: [Number] stores configured
- [Store 1]: [Type/Purpose]
- [Store 2]: [Type/Purpose]
**Failure Isolation**: [Number] boundaries defined
**Observability**: [Number] metrics with [Number] alert thresholds
### What's in the Document
- Integration Architecture Overview (pattern selection and justification)
- Inter-Agent Contracts (≥3 contracts with JSON schemas)
- Message Protocol (Mermaid sequence diagram)
- Shared State Design (stores, access patterns)
- Failure Isolation Boundaries (boundaries, recovery strategies)
- Observability Design (metrics, alerts, thresholds)
- Traceability (AAGR → AAIN links)
### Next Steps
- Run `$arckit-agent-governance` to apply governance to multi-agent orchestration
- Run `$arckit-agent-security` to secure inter-agent communication
Statistics to Include:
Generate the agent integration architecture now, write to file using Write tool, and show only the summary above.
After completing this command, consider running:
$arckit-agent-governance -- Apply governance to multi-agent orchestration$arckit-agent-security -- Secure inter-agent communicationdatabases
Plan transition architectures with work packages, migration waves, and acceptance criteria
research
Perform gap analysis — capability matrix, gap severity scoring, workstream mapping
tools
Map business capabilities, value streams, and maturity for Phase A Business Architecture
development
Build architecture repository — patterns library, standards register, reusable building blocks