Arckit agent integration

From tractorjuice/arckit-codex · View interactive version

Arckit agent integration is an AI agent skill from the GitHub repository tractorjuice/arckit-codex. Design multi-agent integration — inter-agent contracts, message protocols, shared state, failure isolation

How to use this skill

Skill file

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.

User Input

$ARGUMENTS

Instructions

Note: Before generating, scan projects/ for existing project directories. For each project, list all ARC-*.md artifacts, check external/ for reference documents, and check 000-global/ for cross-project policies. If no external docs exist but they would improve output, ask the user.

Prerequisites

Run this command after $arckit-agent-governance and $arckit-agent-security: it reads their AAOV and AASE when they exist, and neither of them reads AAIN.

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

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

  1. Identify the target project:

1. Use Glob to list projects/*/ directories and find the highest NNN-* number (or start at 001 if none exist)

2. Calculate the next number (zero-padded to 3 digits, e.g., 002)

3. Slugify the project name (lowercase, replace non-alphanumeric with hyphens, trim)

4. Use the Write tool to create projects/{NNN}-{slug}/README.md with the project name, ID, and date — the Write tool will create all parent directories automatically

5. Also create projects/{NNN}-{slug}/external/README.md with a note to place external reference documents here

6. Set PROJECT_ID = the 3-digit number, PROJECT_PATH = the new directory path

  1. Read the template (with user override support):

> Tip: Users can customize templates with $arckit-customize agent-integration

  1. 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?", with "Proceed with what exists (Recommended)" and "Expand the scope" as its options, as .arckit/references/interview-pattern.md sets out. With no answer, proceed with what exists and list that as an assumption.

  1. Build the integration architecture:

A. Integration Architecture Overview:

B. Inter-Agent Contracts:

C. Message Protocol (Mermaid sequence diagram):

D. Shared State Design:

E. Failure Isolation Boundaries:

F. Observability Design:

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

  1. Write the output:

IMPORTANT - Auto-Populate Document Information Fields:

Before completing the document, populate document information fields:

Auto-populated fields

User-provided fields

Revision History

| 1.0 | {DATE} | ArcKit AI | Initial creation from `$arckit-agent-integration` command |

Generation Metadata Footer

**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]
  1. Summarize what you created:

Example Usage

User: $arckit-agent-integration Design integration for the research swarm in project 003

You should:

Important Notes

Integration with Other Commands

Quality Checks

Before writing the output file, verify:

Output Instructions

CRITICAL - Token Efficiency:

1. Generate Integration Architecture

Create the comprehensive integration architecture following the template structure with all sections.

2. Write Directly to File

Use the Write tool to create projects/{project-dir}/ARC-{PROJECT_ID}-AAIN-v{VERSION}.md with the complete integration architecture.

DO NOT output the full document in your response. This would exceed token limits.

3. Show Summary Only

After writing the file, show ONLY a concise summary:

## Agent Integration Architecture Complete ✅

**Project**: [Project Name]
**File Created**: `projects/[PROJECT]/ARC-{PROJECT_ID}-AAIN-v{VERSION}.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-maturity` to assess programme maturity across all five dimensions

Statistics to Include:

Generate the agent integration architecture now, write to file using Write tool, and show only the summary above.

Suggested Next Steps

After completing this command, consider running:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.