agentleFS
patonkikhpatonkikh/APES/skills/architecture/integration-planner/skill.md

integration-planner

Skill3 starsChanged 4 months agoMITView on GitHub

Plan integrations between system containers and external systems: patterns, contracts, sequencing, failure handling, and monitoring. Use when working on solution architecture, C4 diagrams, APIs, ADRs, or system design.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Document 2–3 end-to-end integration sequences:

    line 57
  2. Distinctive:

    Prefer events over direct DB sharing between containers.

    line 123
  3. Distinctive:

    Use circuit breakers for external dependencies.

    line 124
  4. Distinctive:

    Document integration ADRs for non-obvious pattern choices.

    line 127

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
skill.md

Integration Planner

Purpose

Plan integrations between system containers and external systems: patterns, contracts, sequencing, failure handling, and monitoring.

Input: Container diagram, API designs (optional), external system inventory
Output: Integration Plan with connection matrix, sequence flows, and rollout phases Examples: See examples.md for worked input/output.


Workflow

Step 1: Inventory integration points

List all integrations:

SourceTargetType (sync/async/batch)DataCriticality

Include internal (container-to-container) and external (third-party) connections.

Step 2: Classify integration patterns

Assign pattern per connection:

PatternUse when
Request-response (REST/gRPC)Real-time queries, commands
Message queueDecoupled async processing
Event streamingMultiple consumers, audit trail
File/batch transferLarge volumes, scheduled sync
Webhook/callbackExternal system pushes events

Step 3: Define contracts

For each integration:

  • Message/event schema or API reference
  • SLA expectations (latency, availability)
  • Authentication mechanism
  • Retry and idempotency rules
  • Dead letter / poison message handling

Step 4: Sequence critical flows

Document 2–3 end-to-end integration sequences:

Actor → Container A → Queue → Container B → External System

Include happy path and failure branches.

Step 5: Plan rollout phases

PhaseIntegrationsDependenciesRisk

Order by dependency and risk (stub externals first).

Step 6: Define observability

Per integration:

  • Correlation ID propagation
  • Metrics (latency, error rate, throughput)
  • Alerts thresholds

Step 7: Validate

Run Validation checklist.


Decision Rules

ConditionAction
No container diagramStop; run container-diagram-builder
Synchronous chain > 3 hops for user requestFlag latency risk; recommend async
No auth on external integrationFlag security finding; block proceed
Duplicate integration pathsConsolidate; document single canonical path
External SLA unknownMark as risk; recommend SLA discovery task

Validation

  • All container diagram connections covered
  • Pattern assigned to each integration
  • Auth mechanism specified per external integration
  • Retry/idempotency rules for async integrations
  • ≥2 sequence diagrams for critical flows
  • Rollout phases ordered by dependency
  • Observability requirements per integration
  • Failure handling documented

Anti-patterns

  • Point-to-point spaghetti — n×n connections without hub/broker.
  • Sync everywhere — blocking chains for non-real-time needs.
  • No dead letter queue — lost messages on failure.
  • Missing correlation IDs — impossible to trace cross-service requests.
  • Big bang integration — all externals at once without phased rollout.

Best Practices

  • Prefer events over direct DB sharing between containers.
  • Use circuit breakers for external dependencies.
  • Stub external systems in early phases.
  • Align with api-designer output for REST contracts.
  • Document integration ADRs for non-obvious pattern choices.

Output Structure

# Integration Plan: [System Name]

## Integration Inventory
| ID | Source | Target | Pattern | Criticality |
|----|--------|--------|---------|-------------|

## Contracts
### INT-001: [Name]
- Pattern: [type]
- Auth: [method]
- Schema: [reference]
- Retry: [rules]

## Sequence Flows
### Flow 1: [Name]
[Step-by-step sequence]

## Rollout Phases
| Phase | Integrations | Milestone |
|-------|--------------|-----------|

## Observability
| Integration | Metrics | Alerts |
|-------------|---------|--------|

## Risks
| Risk | Mitigation |
|------|------------|

Next Skills

OutcomeRecommended Skill
Analyze data movementarchitecture/data-flow-analyzer
Review integration securityarchitecture/architecture-review
Design APIsarchitecture/api-designer
Document pattern decisionarchitecture/adr-generator

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.