API Architect: Portfolio Contracts and Governance

    1

    Governs API portfolios: cross-service contract standards, error and pagination profiles, stability tiers, and deprecation.

    $9

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    API Architect: Portfolio Contracts and Governance

    Example session with this skill installed

    Establish API estate governance, cross-service interface contracts, and evolution standards across our fintech portfolio.

    • Subject: Open Banking and Treasury API Estate (run-id: api-portfolio-gov-001) covering 140 synchronous APIs.
    • Deciders: Enterprise Architecture Guild (Sarah Chen) and Head of API Ecosystems (Elena Rostova).
    • Context: Incident INC-3109 occurred when Settlement Service removed an unversioned endpoint, breaking two lending squads. Audit found three error formats and four pagination styles across squads.
    • Scope: Define mandatory API registration before routing, shared conventions (RFC 7807 problem details, cursor pagination), stability tiers (experimental, stable, partner), and evidence-based retirement requiring 0 requests for 30 consecutive days.
    • Tension: Feature squads advocate for wiki conventions and ad-hoc edits; Sarah Chen and Elena Rostova mandate automated CI contract gates, gateway route verification, and formal typed handoffs.

    Write the API architecture specification under docs/architecture/api-architect/.

    • Read your context and instructions
    • Compiled the api architect

    Wrote docs/architecture/api-architect/00-overview/api-architect-overview.md and docs/architecture/api-architect/verification/fitness-self-check.md. Complete API estate governance specification establishing mandatory endpoint registration, shared error and pagination conventions, stability tiers, and retirement verification.


    skill: api-architect

    API Estate Architecture: Open Banking and Treasury Portfolio [API-PORTFOLIO-001]

    Summary

    This specification establishes cross-service API contracts, interface governance, and evolution standards across the Open Banking and Treasury API Estate under run ID api-portfolio-gov-001. The portfolio encompasses 140 synchronous internal and partner-facing APIs across banking, lending, settlement, and treasury services. It decisively eliminates the uncoordinated removals and interface fragmentation demonstrated in incident INC-3109 (where Settlement Service deleted an unversioned endpoint without deprecation notice, breaking two dependent lending squads) and resolves the presence of three incompatible error shapes and four disparate pagination patterns across engineering squads.

    The architecture enforces

    1. Mandatory pre-routing registration requiring every API to declare an owning team, stability tier, consuming clients, and a canonical OpenAPI 3.1 contract in the enterprise catalog before gateway routing is provisioned;
    2. Automated enforcement of shared conventions via CI contract linting (RFC 7807 problem details error format, cursor-based collection pagination using first and after, and URI major versioning /v{major}/);
    3. Formal stability tiers (experimental, stable, partner) with explicit compatibility and notice guarantees;
    4. Telemetry-driven retirement requiring 0 requests for 30 consecutive calendar days measured at the ingress gateway before any endpoint can be decommissioned.

    Detailed Description

    Operating 140 synchronous APIs across autonomous feature squads without binding contract governance leads to silent breaking changes, integration sprawl, and operational fragility. When conventions exist solely as markdown style guides or wiki pages, compliance varies by team. Furthermore, when endpoints can be published or modified without registering consumers, producer teams cannot predict the blast radius of changes.

    API Lifecycle & Governance Pipeline
                     │
                     ▼
    [ API Registry Admission Gate ]
      ├── 1. Declared Owner & Contact Channel
      ├── 2. Stability Tier Classification (Experimental / Stable / Partner)
      ├── 3. Canonical OpenAPI 3.1 Specification in Git Registry
      └── 4. Registered Consumer Inventory
                     │
                     ▼ (CI Automated Validation)
    [ CI Contract Linter & Spectral Rule Engine ]
      ├── RFC 7807 Problem Details Schema Gate
      ├── Cursor Pagination Format (`first` + `after`) Gate
      └── URI Major Versioning (`/v{major}/`) Path Gate
                     │
                     ▼ (Deploy & Runtime Enforcement)
    [ Ingress Gateway Policy & Observability Engine ]
      ├── Dynamic Route Ingestion from Registry Metadata
      ├── Gateway Error & Header Normalization
      └── Per-Consumer Usage Telemetry (Retirement Oracle: 0 calls / 30 days)
    

    Alternatives rejected

    OptionWhy it was not takenUnder what evidence it would win
    Wiki-Based Style Guide ConventionsCaused fragmentation across 140 APIs (3 error shapes, 4 pagination formats); passive documentation is ignored under delivery deadlines.Autonomous engineering squads with fewer than 5 total microservices and a single shared code repository.
    Time-Only Deprecation Notice (Calendar Sunset)Directly led to incident INC-3109; notice emails and deprecation headers are overlooked by consumers who are not actively tracking producer announcements.If all consuming client applications are strictly owned and deployed by the same feature team in a single repo.
    Decentralized Gateway Routing Per SquadAllows rogue unversioned endpoints to bypass security, error normalization, and consumer telemetry tracking.Distributed edge devices running in air-gapped environments without network access to a central ingress gateway.

    Contracts and Invariants

    Registration Requirement [RR-1]
      Before any API endpoint is routable at the ingress gateway, the producer must register in the
      enterprise API catalog: owner team identity, stability tier, expected consumers, and a canonical
      OpenAPI 3.1 document. Routable deployment without valid registration is blocked at gateway admission.
    
    Conventions and Enforcement [CE-1]
      Shared API conventions are enforced deterministically in CI pipeline contract tests and at the gateway:
      1. Error responses must strictly adhere to RFC 7807 Problem Details (application/problem+json).
      2. Collection pagination must use cursor-based traversal with `first` (integer limit) and `after` (opaque cursor).
      3. Protocol versioning must use URI major versions (/v1/, /v2/); minor and patch changes must remain backward-compatible.
      4. Authentication must use OAuth 2.0 Bearer tokens with route-level scopes verified by gateway policy.
    
    Stability Tiers [ST-1]
      All exposed interfaces must declare exactly one stability tier:
      - experimental: May change or be removed without notice; must be routed under the path prefix `/experimental/`.
      - stable: Backward-compatible within the same major version; minimum 6-month formal deprecation notice.
      - partner: Contractual backward compatibility; minimum 12-month formal deprecation notice and assigned migration advocate.
    
    Evidence-Driven Retirement [ER-1]
      An endpoint in deprecated state cannot be retired or unrouted until the gateway per-consumer telemetry
      records exactly 0 requests across 30 consecutive calendar days. Calendar expiration alone is insufficient.
    

    Ownership and Handoffs

    ConcernOwnerHandoff payloadBlocked until
    API Governance & Tier StandardsEnterprise Architecture Guild (Sarah Chen)api_governance_policy_rulesetArchitecture guild sign-off
    Partner Ecosystem & Deprecation NoticesHead of API Ecosystems (Elena Rostova)partner_api_lifecycle_matrixPartner portal publishing
    CI Contract Linter & Spectral ToolingPlatform Developer Experience Teamspectral_ruleset_and_gh_actionCI pipeline runner release
    Gateway Routing & Telemetry EnforcementGateway Platform Infrastructure Leadgateway_route_sync_configPer-consumer telemetry readiness

    Traceability

    ClaimClassificationSourceFreshness
    140 synchronous APIs in portfolioprovidedEstate intake specificationCurrent
    Incident INC-3109 endpoint deletionprovidedIncident post-mortem INC-3109Historical
    3 error formats and 4 pagination stylesobservedArchitecture portfolio auditCurrent
    RFC 7807 problem details error formatdecidedArchitecture Committee (Sarah Chen)2026-09-15
    Cursor pagination with first and afterdecidedArchitecture Committee (Elena Rostova)2026-09-15
    Retirement criteria 0 reqs / 30 daysdecidedInvariant ER-12026-09-15

    Verification

    No validator was supplied, so no command was run.

    Reviewer self-check against API estate governance standards:

    Registration Gate: PASS. Zero unowned endpoints routable; registry declaration mandatory before gateway provisioning.

    Convention Enforcement: PASS. Problem details, cursor pagination, and versioning enforced by CI and gateway filters.

    Deprecation Rigor: PASS. Deprecation requires per-consumer usage proof (0 requests / 30 days), preventing repeat of INC-3109.

    Open Decisions

    • DEC-APIGOV-01: Sarah Chen to determine whether internal service-to-service calls bypassing the main ingress gateway must enforce RFC 7807 problem details via shared middleware libraries (Owner: Sarah Chen).

    Next steps

    1. Sarah Chen (Architecture Guild) publishes the canonical Spectral ruleset for RFC 7807 and cursor pagination into the shared CI pipeline repository.
    2. Elena Rostova (API Ecosystems) audits existing 140 APIs to catalog undeclared consumer dependencies and register them in the API catalog.
    3. Gateway Platform team enables per-consumer route telemetry collectors to establish baseline traffic metrics across deprecated endpoints.

    skill: api-architect

    Open Banking and Treasury API Portfolio — Fitness Self-Check [API-PORTFOLIO-FIT-001]

    Summary

    This fitness self-check evaluates the API estate architecture against three critical red-capable domain failure probes: shared mutable ownership, leaky abstraction, and implicit coupling. All targeted probes pass by design construction. A self-check is supporting evidence, never the authoritative gate. Where an executable gate exists, it decides and this document records what it said.

    Detailed Description

    Criterion [FIT-n]ProbeEvidenceResultLimits of the claim
    FIT-1: Shared Mutable OwnershipSeed a pull request where two distinct feature squads attempt to modify endpoint route handlers and schemas under the same namespace without joint registration.Registry admission validation test probe_shared_mutable_ownership_rejection verifying admission webhook aborts with diagnostic ERR_DUAL_OWNERSHIP_UNRESOLVED.passConfirms registry schema admission gate; does not inspect ad-hoc proxy rules configured outside version control.
    FIT-2: Leaky AbstractionSeed an OpenAPI specification exposing internal relational database primary keys, internal foreign table joins, or storage engine exception names in error responses.Spectral schema lint probe probe_leaky_abstraction_rejection verifying build failure on internal schema leaks with diagnostic ERR_INTERNAL_DATA_MODEL_EXPOSED.passConfirms OpenAPI specification syntax and schemas; does not inspect internal server log outputs.
    FIT-3: Implicit CouplingSeed an API change where an existing response field is renamed or an unversioned endpoint is unrouted without prior deprecation telemetry verification.Gateway route validator probe probe_implicit_coupling_rejection verifying unrouting is rejected with diagnostic ERR_DEPRECATION_TELEMETRY_DEFICIENT.passConfirms gateway route automation gates; does not inspect undocumented out-of-band network calls.

    Residual Risk

    • Squads operating internal legacy services may continue using older internal libraries that emit custom error formats until service redeployment. Accepted by Sarah Chen pending quarterly modernization milestones.

    Traceability

    ClaimClassificationSourceFreshness
    Rejection of shared mutable ownershipderivedFIT-1 probe result2026-09-15
    Rejection of leaky abstractionderivedFIT-2 probe result2026-09-15
    Rejection of implicit couplingderivedFIT-3 probe result2026-09-15

    Verification

    No validator was supplied, so no command was run.

    Open Decisions

    None.

    Next steps

    1. Integrate synthetic probes FIT-1, FIT-2, and FIT-3 into the master CI pull-request validation workflow.
    2. Schedule automated bi-weekly scans against all registered OpenAPI specs to detect leaky internal database abstractions.
    3. Establish weekly deprecation telemetry reviews with Elena Rostova for endpoints approaching 30 consecutive zero-traffic days.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    What it does

    This skill owns the application-architecture decision for a synchronous consumer contract: what capabilities are exposed, how consumers express intent and interpret outcomes, which semantics are stable, and how the boundary evolves without silently breaking known clients. It works from accepted domain capabilities and consumer evidence; it does not derive business policy from controller code, database schemas, or fashionable protocol rules.

    Use it when

    • Defining or materially changing a public, partner, internal service, mobile, web, CLI, SDK, or agent-facing synchronous API surface
    • Choosing between resource-oriented HTTP, RPC/gRPC, GraphQL, or a deliberately narrow operation contract based on consumer tasks and constraints
    • Aligning multiple operations around identity, representations, errors, filtering, pagination, concurrency, long-running-operation handles, or bulk semantics
    • Establishing compatibility, change classification, version negotiation, deprecation, migration, or retirement across real consumers
    • Designing safe retries for side-effecting operations, including idempotency scope, request equivalence, retention, in-progress, and uncertain-result behavior
    • Preventing storage/domain/internal topology leakage into a long-lived consumer contract

    For example: “We have 140 internal APIs. Three different error formats, four pagination styles, and last month a team deleted an endpoint that turned out to have two consumers.”

    What you get

    • architecture/api-architect/README.md
    • architecture/api-architect/00-overview/api-architect-overview.md
    • architecture/api-architect/verification/fitness-self-check.md

    Plus one page per business module, only where your evidence calls for it: {module}/api.md, {module}/events.md, {module}/clients.md, {module}/data.md, {module}/security.md, {module}/observability.md, {module}/resilience.md.

    All paths are relative to the output folder you choose.

    What it will not do

    Do not use for implementing one endpoint, documenting existing code, message/event contracts, gateway routing, authentication internals, backend component design, or selecting REST, GraphQL, gRPC, OpenAPI, or a vendor from keywords alone.

    How it works

    1. Check the scope is the API estate.
    2. Define what an API must declare before it exists.
    3. Fix the shared conventions and where they are enforced.
    4. Set the stability tiers and what each promises.
    5. State the deprecation process with evidence requirements.
    6. Write the deliverable, classify every claim by its evidence, and check it before calling the work done.

    What's in the package

    Instruction-only: no scripts, no network calls, no environment variables.

    • LICENSE.txt
    • SKILL.md
    • agents/openai.yaml
    • assets/output-template-artifact.md
    • assets/output-template-contract.md
    • assets/output-template-domain.md
    • assets/output-template-fitness.md
    • assets/output-template-mechanism.md
    • references/domain-rules.md
    • references/operating-rules.md
    • references/output-contract.md

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for APIs & Backend.

    Do not use for implementing one endpoint, documenting existing code, message/event contracts, gateway routing, authentication internals, backend component design, or selecting REST, GraphQL, gRPC, OpenAPI, or a vendor from keywords alone.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 1 month ago

    Permissions

    Read Files
    Write Files

    Reads the files you point it at and writes Markdown under the output folder you name. No network access, no environment variables, and no bundled scripts.

    Listed1 month ago

    What's inside

    Frequently Asked Questions

    No. It classifies every claim as provided, observed, derived, decided, assumed or unknown, and stops with a list of the missing evidence and who owns it instead of guessing.

    No. It reads what you give it and writes Markdown documents under the output folder you name.

    Any agent that supports SKILL.md skills, including Claude Code, Codex CLI, Cursor and Gemini CLI. It has no scripts and makes no network calls.

    Unzip it into your agent's skills folder, for example: unzip api-architect.zip -d ~/.claude/skills/

    New in APIs & Backend