stage-3-integration

stage-3-integration is a skill for Claude Code from cdeust/ai-architect-mcp. It costs 5 tokens per session (2,135 once invoked), scanned A, original, MIT.

An architecture-planning workflow for designing how a software change connects to an existing system. It maps the interfaces, connecting components, and startup wiring that need changes.

In plain words
What is it for?
Use it to identify affected ports and adapters, plan cross-component connections, and document required composition-root changes.
Why use it?
It clarifies integration points before implementation and checks that the design does not introduce circular dependencies.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the ai-architect plugin — 13 skills, 4 commands, 2 MCP servers, 1 plugin shipped together

Good fit Use it to identify affected ports and adapters, plan cross-component connections, and document required composition-root changes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cdeust/ai-architect-mcp/stage-3-integration
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add cdeust/ai-architect-mcp --skill stage-3-integration
Clone the repo
git clone --depth 1 https://github.com/cdeust/ai-architect-mcp

Made for: Claude Code.

Or install ai-architect, the plugin that ships this one along with the rest of its 13 skills, 4 commands, 2 MCP servers, 1 plugin.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for stage-3-integration

README.md
[![agentmods](https://agentmods.dev/badge/skills/cdeust/ai-architect-mcp/stage-3-integration/github.svg)](https://agentmods.dev/skills/cdeust/ai-architect-mcp/stage-3-integration)
Your own site
<a href="https://agentmods.dev/skills/cdeust/ai-architect-mcp/stage-3-integration"><img src="https://agentmods.dev/badge/skills/cdeust/ai-architect-mcp/stage-3-integration/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for stage-3-integration

Your own site · 80×15
<a href="https://agentmods.dev/skills/cdeust/ai-architect-mcp/stage-3-integration"><img src="https://agentmods.dev/badge/skills/cdeust/ai-architect-mcp/stage-3-integration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,135 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00005 $0.02135
Opus 5 $0.00003 $0.01068
Sonnet 5 $0.00001 $0.00427
Haiku 4.5 $0.00001 $0.00214

Measured 9d ago against content hash 402ebd509bd4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

stage-3-integration scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/stage-3-integration/SKILL.md · 221 lines

How it starts

The opening of the file, as written. The whole thing — 221 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Allostatic Priming

You are a software architect designing the seam where this change meets the existing system. Hexagonal architecture. Ports and adapters. You identify the affected ports, the adapters to change, and the composition root wiring required. You do not implement — you design the integration blueprint.

Trigger

USE WHEN: integration design, architecture design, affected ports, adapter design, cross-engine, hexagonal, composition root, port inventory, seam analysis, interface design NOT FOR: plan interview, PRD generation, impact analysis — stage 2, implementation — stage 6

Survival Question

"Do I have a complete list of affected ports, adapters, and composition root changes — with no circular dependency introduced?"

Before you start

MANDATORY: Load ALL required upstream artifacts.

  1. ai_architect_load_context(stage_id=0, finding_id="{findingID}") — load Stage 0 health report (codebase intelligence engine availability)
  2. ai_architect_load_context(stage_id=1, finding_id="{findingID}") — load Stage 1 findings
  3. ai_architect_load_context(stage_id=2, finding_id="{findingID}") — load Stage 2 impact map (propagation paths, affected engines)
  4. ai_architect_load_session_state(session_id="{sessionID}") — confirm currentStage = 3
  5. ai_architect_list_experience_patterns(stage_id=3, min_relevance=0.1) — load architecture decisions for context

If codebase_intelligence: "ai_codebase_intelligence" in Stage 0 health report: 6. ai_architect_codebase_cypher(query="MATCH (a)-[:CodeRelation {type: 'IMPLEMENTS'}]->(b) WHERE b.name IN {affected_ports} RETURN a.name, a.filePath", repo="{target_repo}") — find existing adapter implementations 7. ai_architect_codebase_context(name="{affected_port}", include_content=true, repo="{target_repo}") — for each affected port from impact map

Missing Stage 2 impact map = BLOCK. Cannot design integration without knowing blast radius.

Input contract

Field Type Source Required
stage-2-impact-map.json JSON StageContext[stage-2] YES — BLOCK if missing
ImpactMap.affectedEngines list Stage 2 output YES
Port/interface definitions files Codebase (discovered via search) YES — need to cross-reference

Read the full file on GitHub · 221 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 221 lines · 5 tokens per session scan A 402ebd509bd4

Subscribe to this mod's changes

stage-3-integration is a skill published in the GitHub repository cdeust/ai-architect-mcp (1 stars, last pushed 4mo ago), licensed MIT. It adds 5 tokens to every session and 2,135 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.