Skip to content
Back to skills

External Integrations And Messaging

ASecurity

Design resilient integrations with external services and asynchronous messaging, including timeouts, retries, idempotency, delivery guarantees, and failure recovery.

  • 200 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 29, 2026
ai-agentsrustapidatabase

Works with

  • api

Security analysis

A100/100

Scanned November 29, 2026

npx -y skills add sivaprasadreddy/sivalabs-agent-skills --skill external-integrations-and-messaging --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of External Integrations And Messaging?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for External Integrations And Messaging
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sivaprasadreddy-external-integrations-and-messaging/badge)](https://www.skillsdirectory.com/skills/sivaprasadreddy-external-integrations-and-messaging)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: external-integrations-and-messaging
description: Design resilient integrations with external services and asynchronous messaging, including timeouts, retries, idempotency, delivery guarantees, and failure recovery.
---

# 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
1. Identify the dependency, business purpose, data exchanged, and trust boundary.
2. Define timeout budgets across the full request path.
3. Classify failures: transient, permanent, business rejection, throttling, and unknown.
4. Define retry eligibility, attempt limits, backoff, and cancellation.
5. Define fallback or degraded behavior when the dependency is unavailable.
6. Protect credentials and restrict outbound destinations.
7. Record latency, failure rates, throttling, and correlation identifiers.

## Asynchronous messaging workflow
1. Define event meaning, producer, consumer, and ownership.
2. Specify schema, versioning, key, ordering needs, and retention.
3. Decide delivery semantics and duplicate-handling strategy.
4. Ensure consumer effects are idempotent.
5. Define acknowledgement, retry, dead-letter, and replay procedures.
6. Handle poison messages and schema incompatibility.
7. Consider transactional outbox/inbox patterns when database updates and message delivery must stay coordinated.
8. 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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.