Interface contract

From Crapule421/tiger-team · View interactive version

Interface contract is an AI agent skill from the GitHub repository Crapule421/tiger-team. Produce a complete interface contract - parties, trigger, transport, format and schema, field mapping, volumetry, SLAs, errors and replay, security, monitoring, test cases - from a description or existing files (OpenAPI, WSDL, samples).

How to use this skill

Skill file

Interface contract - complete specification

Input: $ARGUMENTS

You do not see the prior conversation: work only from the input above and the files it points to.

0. Intake

1. Confidentiality gate (mandatory, before any analysis)

Stop and ask the user for an anonymized version - without producing the contract - if the input contains any of:

In that case reply only with: the category detected (never quote the value), where it was found (file/line or position), and a request for a sanitized version (fictitious data, placeholders like <CLIENT_SECRET>, hosts like api.example.org, systems like APP_COMPTA). Schemas and field lists without values are fine.

2. Load knowledge and template

  1. Read the template ${CLAUDE_PLUGIN_ROOT}/skills/deliverables/templates/interface-contract.md. If it exists, follow its structure and headings exactly (fill every section; write "N/A - <reason>" rather than deleting a section). If it does not exist, use the default structure in §4.
  2. Read ${CLAUDE_PLUGIN_ROOT}/skills/integration-reference/SKILL.md (patterns, idempotence, replay, errors, correlation, security, review checklist).
  3. Depending on the interface, also Read:

3. Method

  1. Identify: business purpose, process step, source and target systems, direction, data owner, criticality.
  2. Choose and justify the integration pattern (sync/async/event/file/CDC) if not imposed; if imposed and questionable, keep it and raise a risk.
  3. Define transport and format precisely (protocol, endpoint/queue/topic/IDF placeholders, encoding, schema reference and version).
  4. Build the field mapping from the files provided; derive types/lengths from schemas; flag every field whose rule is unknown as TBD.
  5. Quantify volumetry (average, peak, growth) and SLAs; if absent, propose values as assumptions.
  6. Design reliability: idempotency key, duplicate detection, ordering, retries (single layer), timeouts, DLQ/rejects, acknowledgments (transport/technical/business), replay procedure, reconciliation controls.
  7. Design security: authentication, authorisation, encryption, signing, secrets and certificate ownership, personal-data minimisation and masking.
  8. Define monitoring: metrics, absence-of-flow alert, dashboards, runbook pointers, support contacts (roles only).
  9. Write test cases covering nominal, functional errors, technical errors, duplicates, replay, volume peak, failover, security negative tests.
  10. Run the interface review checklist (integration-reference §9) against your own contract and list remaining gaps as open questions or risks.

Use only fictitious examples (APP_COMPTA, APP_CRM, example.org, IBAN/identifier placeholders such as FR76<FICTITIOUS_IBAN> clearly marked fictitious). Never invent product parameters: write "verify against your version".

4. Default structure (when the template is absent)

  1. Identification — interface ID (INT-<nnn>, the deliverables convention), name, version, status (draft/validated), authors (roles), date, related documents.
  2. Parties — source and target systems, owners (business/technical), operating teams, partner contacts (roles), RACI for incidents.
  3. Functional description — business purpose, process, trigger event, business rules, out of scope.
  4. Trigger and frequency — event/schedule/file arrival, calendar, cut-off times, batch windows, time zone.
  5. Transport — pattern, protocol, endpoints/queues/topics/IDF (placeholders), network zones, message/file naming, acknowledgments.
  6. Format and schema — format, encoding, schema reference + version, example payloads (fictitious), header/trailer and control totals for files.
  7. Field mapping — one row per target field, table: # | Target field | Type / length | Mandatory | Source field | Transformation rule | Default | Fictitious example | Classification (Classification marks personal or regulated fields, e.g. Personal / Internal), as in section 7 of the deliverables template.
  8. Volumetry — average/peak per period, payload size, growth at 3 years, peak periods (month-end, payroll, season).
  9. SLAs — availability, latency/delivery deadline, throughput, support hours, RPO/RTO of the flow.
  10. Error handling and replay — error classes and handling, retry policy, timeouts, DLQ/reject flow, functional reject format, replay procedure and authorisation, reconciliation controls.
  11. Security — authentication, authorisation, encryption in transit/at rest, signing, secrets/certificates (owners, expiry), data classification, personal data fields and minimisation, logging/masking rules.
  12. Monitoring — metrics, alerts (incl. absence of flow), dashboards, logs and correlation IDs, runbook references.
  13. Test cases — table: ID | scenario | input | expected result | type (nominal/error/volume/security/replay).
  14. Change history — table: version | date | author (role) | change.

5. Output (Markdown)

Risks

| Risk | Criticality | Mitigation |

|---|---|---|

| ... | Critical/High/Medium/Low | ... |

Handoffs

One line per relevant expert, only when there is a real point for them, using these names: project-manager, enterprise-architect, devsecops-expert, security-expert, dba-expert, scheduling-expert, integration-expert, erp-expert, infra-expert, ibmi-expert. Format:

Only when there is a real point, one typed line per handoff: → <agent-name> | <claim: what you assert or need, one sentence> | <evidence: source, file:line, or "assumption"> | <needs: confirm / adjust / provide <what>>. Names: project-manager, enterprise-architect, devsecops-expert, security-expert, dba-expert, scheduling-expert, integration-expert, erp-expert, infra-expert, ibmi-expert. Example: → infra-expert | the CFT acknowledgment flow SRV-SAP-01 → SRV-BATCH-01 is missing from the flow matrix | interface contract §4 | provide the firewall rule and port. A settled point is not a handoff.

Open questions

Numbered, each with the owner role and why it matters.

Assumptions

Numbered list of every assumption made (volumes, SLAs, versions, security context, ownership).

Do not write files unless the input explicitly gives an output path; in that case Write the contract there and still return the summary, risks, handoffs, open questions and assumptions in the response.

Answer in the language used in the input.

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.