external-integrations-and-messaging
Skill198 starsChanged 4 days agoMITView on GitHub
Design resilient integrations with external services and asynchronous messaging, including timeouts, retries, idempotency, delivery guarantees, and failure recovery.
In this repository20 other files it gives its agents.
- api-designSkill
- application-securitySkill
- apply-renovate-prsSkill
- architecture-guidelinesSkill
- authentication-authorizationSkill
- configuration-and-secretsSkill
- data-access-and-migrationsSkill
- database-designSkill
- deployment-and-deliverySkill
- java-code-reviewSkill
- jspecify-skillSkill
- observabilitySkill
- pair-programmingSkill
- progenSkill
- reliability-and-performanceSkill
- spec-writerSkill
- spring-boot-skillSkill
- spring-modulith-verifierSkill
- technical-decision-makingSkill
- testing-strategySkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 8 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
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
- Distinctive: line 12
Use when calling third-party APIs, publishing or consuming messages, processing webhooks, scheduling background work, or coordinating …
- Distinctive: line 18
Avoid retry storms; use concurrency limits, rate limits, and circuit-breaking where appropriate.
- Distinctive: line 21
Treat message ordering, duplication, delay, and redelivery as normal conditions.
- Distinctive: line 23
Keep external contracts behind adapters or clear integration boundaries.
- Distinctive: line 24
Do not let a remote system's data model become the application's internal domain model by accident.
- Distinctive: line 39
Ensure consumer effects are idempotent.
- Distinctive: line 42
Consider transactional outbox/inbox patterns when database updates and message delivery must stay coordinated.
- Distinctive: line 62
Avoid introducing a message broker or distributed workflow engine when a simpler in-process or scheduled solution is sufficient.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.
Files
External Integrations and Messaging
Purpose
Make interactions across process and organizational boundaries explicit, resilient, secure, and observable.
When to use
Use when calling third-party APIs, publishing or consuming messages, processing webhooks, scheduling background work, or coordinating workflows across services.
Principles
- Assume every remote dependency can be slow, unavailable, inconsistent, or return malformed data.
- Set explicit connection, request, and overall operation timeouts.
- Retry only transient failures and use bounded exponential backoff with jitter.
- Avoid retry storms; use concurrency limits, rate limits, and circuit-breaking where appropriate.
- Make side-effecting operations idempotent or protect them with deduplication.
- Distinguish at-most-once, at-least-once, and effectively-once business behavior; do not promise exactly-once processing without precise guarantees.
- Treat message ordering, duplication, delay, and redelivery as normal conditions.
- Validate webhook authenticity, timestamp/replay protections, and payloads.
- Keep external contracts behind adapters or clear integration boundaries.
- Do not let a remote system's data model become the application's internal domain model by accident.
Synchronous integration workflow
- Identify the dependency, business purpose, data exchanged, and trust boundary.
- Define timeout budgets across the full request path.
- Classify failures: transient, permanent, business rejection, throttling, and unknown.
- Define retry eligibility, attempt limits, backoff, and cancellation.
- Define fallback or degraded behavior when the dependency is unavailable.
- Protect credentials and restrict outbound destinations.
- Record latency, failure rates, throttling, and correlation identifiers.
Asynchronous messaging workflow
- Define event meaning, producer, consumer, and ownership.
- Specify schema, versioning, key, ordering needs, and retention.
- Decide delivery semantics and duplicate-handling strategy.
- Ensure consumer effects are idempotent.
- Define acknowledgement, retry, dead-letter, and replay procedures.
- Handle poison messages and schema incompatibility.
- Consider transactional outbox/inbox patterns when database updates and message delivery must stay coordinated.
- Monitor queue depth, age, redelivery, and dead-letter volume.
Workflow consistency
For multi-step processes spanning systems, define:
- State transitions and invariants.
- Compensation behavior for completed steps when later steps fail.
- Timeout and expiry behavior.
- Human intervention and reconciliation paths.
- Auditability and duplicate request handling.
Review checklist
- Are timeouts explicit and compatible with upstream budgets?
- Are retries bounded and safe?
- Can duplicate messages or callbacks cause duplicate effects?
- Are ordering and consistency assumptions explicit?
- Is there a dead-letter/replay/reconciliation strategy?
- Are secrets, payloads, and personal data handled safely?
- Can operators see and diagnose failures?
Avoid introducing a message broker or distributed workflow engine when a simpler in-process or scheduled solution is sufficient.
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
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.

