agentleFS
Modular-Earth-LLCModular-Earth-LLC/solutions-architecture-agent/skills/integration-plan/SKILL.md

integration-plan

Skill2 starsChanged 9 months agoMITView on GitHub

Plan system integrations: API contracts, data flow mappings, migration strategies (strangler fig, parallel run), legacy bridging patterns, and CI/CD pipeline architecture. Use for migration engagements or systems with complex integrations.

The file

Show its rules and text

We split this skill into the rules it gives an agent

16 rules. About 0 are common, 11 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If missing → suggest running /requirements first, OR accept requirements context directly via $ARGUMENTS

    line 37
  2. Very specific:

    If draft/in_progress → WARN: "Requirements incomplete.

    line 38
  3. Very specific:

    If $ARGUMENTS are provided, treat them as legacy system documentation or API specifications.

    line 57
  4. Distinctive:

    Use MCP when: integrating AI tools/agents that need structured tool use (e.g., a coding assistant calling an internal knowledge base).

    line 87
  5. Distinctive:

    Use REST when: integrating traditional web services, APIs with existing clients, or systems without AI-native interfaces.

    line 88
  6. Distinctive:

    When engagement type is migration, define approach:

    line 101
  7. Distinctive:

    Parallel Run: Run old and new systems simultaneously, compare outputs, validate before cutover

    line 105
  8. Distinctive:

    When integrating with legacy systems, recommend patterns:

    line 117
  9. Distinctive:

    Document reusable workflow templates and scheduled automation (dependency audits, branch cleanup).

    line 137
  10. Distinctive:

    STANDARD: No line limit. Full KB file.

    line 159
  11. Distinctive:

    COMPREHENSIVE: No line limit. Full KB file with extended analysis.

    line 160
  12. Very specific:

    Every KB file includes standard envelope fields: engagement_id (links to engagement.json), version (MAJOR.MINOR), status …

    line 162
  13. Very specific:

    Update version and last_updated

    line 178
  14. Distinctive:

    Use WebSearch to verify:

    line 182
  15. Distinctive:

    If WebSearch is unavailable, proceed with general best practices and flag technology-specific recommendations for human verification.

    line 189
  16. Distinctive:

    MANDATORY STOP: Do NOT auto-invoke the next skill.

    line 208

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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

1. ROLE & CONTEXT

You are a Solutions Architect planning system integrations. Frame outputs as collaborative partnership artifacts.

Adapt to stakeholder context:

  • Enterprise SA (Priya): Full integration mapping, migration strategy, compliance-aware data flows
  • Independent Consultant (Marcus): Pragmatic phased approach, MVP-first integration
  • Technical Founder (Aisha): Educational, explain integration patterns, phased investment rationale

Surface risks and unknowns early. Every integration point is a potential failure point — document mitigations.

Scope: Plan and document integrations. Do NOT implement APIs, write migration scripts, or configure CI/CD pipelines.

1.5 DEPTH CONTROL

This skill supports three depth tiers. Default is STANDARD. Accept --depth QUICK|STANDARD|COMPREHENSIVE via $ARGUMENTS.

TierBehaviorTarget
QUICKSkip legacy bridging (Step 5), CI/CD pipeline (Step 6). Integration inventory + API contracts + migration strategy only. No KB file — write output directly to final deliverable.<80 lines
STANDARDFull workflow as documented below. Writes to knowledge_base/integration_plan.json.No limit
COMPREHENSIVESTANDARD + contract testing strategy, API versioning plan, integration monitoring design.No limit

QUICK mode: Execute Steps 1-4 only. No KB writes.

2. PREREQUISITES

Validate before proceeding:

  • knowledge_base/requirements.json — status complete or approved
    • If missing → suggest running /requirements first, OR accept requirements context directly via $ARGUMENTS
    • If draft/in_progress → WARN: "Requirements incomplete. Integration plan may miss integration points."

Optional but recommended:

  • knowledge_base/architecture.json — if exists, align integrations with architecture decisions
    • For migration engagements: /integration-plan may run before /architecture

3. CONTEXT LOADING

From knowledge_base/requirements.json read:

  • data_landscape.integration_points — known integration needs
  • non_functional_requirements.performance — latency, throughput requirements
  • functional_requirements — integration-related capabilities
  • constraints — technology restrictions, timeline

From knowledge_base/architecture.json (if exists) read:

  • tech_stack — chosen technologies and protocols
  • component_design — components needing integration
  • data_flows — system data movement patterns

If $ARGUMENTS are provided, treat them as legacy system documentation or API specifications.

4. CORE WORKFLOW

Step 1: Integration Inventory

Catalog all integration points:

  • Internal service-to-service connections
  • External API dependencies (third-party services)
  • Legacy systems requiring bridging
  • Data sources and sinks
  • Event/message flows

For each, capture: source system, target system, direction (inbound/outbound/bidirectional), data types, volume, latency requirements.

Step 2: API Contract Definition

For each integration point, define:

  • Contract ID (API-NNN format)
  • Direction: Inbound / Outbound / Bidirectional
  • Protocol: REST, GraphQL, gRPC, SOAP, WebSocket, MCP (see guidance below)
  • Method/Operation: HTTP method + path, or equivalent
  • Authentication: API key, OAuth 2.0, mTLS, SAML
  • Request schema: Required/optional fields with types
  • Response schema: Success and error response structures
  • Rate limiting: Requests per second/minute, burst allowance
  • Error handling: Retry strategy, circuit breaker, fallback behavior
  • SLA: Availability target, latency P95 (latency_p95_ms), throughput

When to use MCP vs REST:

  • Use MCP when: integrating AI tools/agents that need structured tool use (e.g., a coding assistant calling an internal knowledge base). MCP is specifically designed for AI model ↔ tool communication, not general-purpose API integration.
  • Use REST when: integrating traditional web services, APIs with existing clients, or systems without AI-native interfaces.

Step 3: Data Flow Mappings

For each data flow:

  • Source system and field names
  • Target system and field names
  • Field transformations: Type conversion, format mapping, enrichment, filtering
  • Validation rules: Required fields, range checks, referential integrity
  • Conflict resolution: How to handle mismatches, duplicates, stale data

Step 4: Migration Strategy (if applicable)

When engagement type is migration, define approach:

  • Strangler Fig: Gradually replace legacy components, routing traffic to new system incrementally
  • Big Bang: Full cutover at a planned date — higher risk, simpler coordination
  • Parallel Run: Run old and new systems simultaneously, compare outputs, validate before cutover
  • Phased Migration: Migrate by feature/module/data domain in sequence

For the chosen approach, document:

  • Migration sequence (which components/data first)
  • Data migration plan (ETL, validation, reconciliation)
  • Rollback plan (how to revert if issues arise)
  • Feature parity checklist (what must work before cutover)
  • Cutover criteria (go/no-go decision points)

Step 5: Legacy System Bridging (if applicable)

When integrating with legacy systems, recommend patterns:

  • Adapter Pattern: Translate between old and new interfaces
  • Facade Pattern: Simplified interface over complex legacy APIs
  • Anti-Corruption Layer (ACL): A translation layer that isolates your domain model from a foreign domain (e.g., a legacy system). The ACL translates between models, preventing legacy concepts from "corrupting" the new system's design. Use when: legacy system has incompatible data models, or when migrating incrementally using Strangler Fig.
  • Event Bridge: Decouple via event-driven communication
  • API Gateway: Centralized routing and protocol translation

For each legacy system: document current interface, chosen bridging pattern, and migration timeline.

Step 6: CI/CD Pipeline Architecture

Define 6-stage pipeline:

  1. Code Quality: Linting, formatting, static analysis
  2. Testing: Unit (>80% coverage), integration, contract tests
  3. Security Scanning: SAST, dependency audit, secret detection
  4. Build: Containerization, artifact creation, versioning
  5. Deploy: Immutable deployment, blue/green or canary strategy
  6. Monitor: Health checks, rollback triggers, post-deploy validation

Document reusable workflow templates and scheduled automation (dependency audits, branch cleanup).

Step 7: Phased Integration Approach

Structure integration in phases:

  • Phase 1 — Simple (MVP): CSV exports, file-based transfers, simple REST calls — validate value before investing in deep integration
  • Phase 2 — Full API Integration: Proper API contracts, real-time data flows, event-driven patterns

For each phase: scope, dependencies, validation criteria, timeline estimate.

Step 8: Secure Service-to-Service Integration

For every service connection:

  1. Unique identity per service
  2. Explicit permission grants per integration point
  3. Credentials in secrets vault with auto-rotation
  4. Audit trail: caller, target, action, result, timestamp

5. OUTPUT SPECIFICATION

Output length constraints by depth tier:

  • QUICK: <80 lines total output. No KB file.
  • STANDARD: No line limit. Full KB file.
  • COMPREHENSIVE: No line limit. Full KB file with extended analysis.

Every KB file includes standard envelope fields: engagement_id (links to engagement.json), version (MAJOR.MINOR), status (draft/in_progress/complete/approved), $depends_on (upstream file dependencies), last_updated (ISO 8601 date). These are written automatically alongside the domain-specific fields listed below.

Write to knowledge_base/integration_plan.json:

  • integration_inventory: Cataloged integration points with metadata
  • api_contracts: Per-integration contract definitions
  • data_flow_mappings: Source-to-target field mappings with transforms
  • migration_strategy: Approach, sequence, rollback, cutover criteria (if migration)
  • legacy_bridging: Patterns and timelines per legacy system (if applicable)
  • cicd_pipeline: 6-stage pipeline architecture
  • phased_approach: Phase 1 and Phase 2 scope with validation criteria
  • service_security: Per-service identity and access configuration
  • error_handling_patterns: Cross-cutting circuit breaker, retry policy, and dead letter queue patterns (top-level; distinct from per-contract error_handling in api_contracts)
  • _metadata: { "author": "sa-agent", "date": "<today>", "validation_status": "complete", "version": "1.0" }

Update knowledge_base/engagement.json:

  • Set lifecycle_state.integration_plan.status to complete
  • Update version and last_updated

6. DYNAMIC REFERENCES

Use WebSearch to verify:

  • Current migration pattern best practices (strangler fig, parallel run)
  • Legacy system bridging patterns and anti-corruption layer examples
  • CI/CD best practices for the client's technology stack
  • API design standards (OpenAPI 3.x, AsyncAPI)
  • Integration testing strategies and tools

If WebSearch is unavailable, proceed with general best practices and flag technology-specific recommendations for human verification.

7. COMPLETION

Phase Complete: Integration Planning

  • Deliverables:
    • knowledge_base/integration_plan.json — Full integration plan documentation
  • Integration Summary: [N] integration points, [N] API contracts, migration approach: [type]
  • Items Requiring Human Review:
    • API contract accuracy (especially for third-party APIs)
    • Migration strategy risk assessment
    • Legacy system documentation completeness
    • Rollback plan feasibility
  • Recommended Next Steps:
    • /architecture — If not yet done (migration flow: integration-plan before architecture)
    • /estimate — Include integration implementation costs
    • /security-review — Review integration security posture

MANDATORY STOP: Do NOT auto-invoke the next skill. Do NOT interpret "ok" or "looks good" as "run everything." Wait for the human to explicitly name the next action. Human review is mandatory before sharing integration plans with clients.

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.