agentleFS
adymireadymire/CraftLayer/skills/integrations-and-webhooks/SKILL.md

integrations-and-webhooks

Skill0 starsChanged 3 days agoMITView on GitHub

Connect external services with verified signatures, bounded retries, idempotency, timeouts, and observable delivery.

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
  1. Distinctive:

    Use for third-party APIs, inbound webhooks, outbound event delivery, or background synchronization.

    line 10
  2. Distinctive:

    Do not build a custom integration layer before identifying the external contract, supported use cases, and operational needs.

    line 15
  3. Distinctive:

    Verify inbound webhook authenticity using the provider's recommended signature method and constant-time comparison where applicable.

    line 26
  4. Distinctive:

    Use timeouts, bounded retries with backoff, and provider rate limits.

    line 31
  5. Distinctive:

    Test invalid signatures, duplicates, timeouts, rate limits, and partial provider failures.

    line 34
  6. Distinctive:

    Never trust a webhook because it arrived over HTTPS alone.

    line 39
  7. Distinctive:

    Do not retry non-idempotent side effects blindly.

    line 41
  8. Distinctive:

    Keep provider credentials in managed secret configuration.

    line 42

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

Integrations and Webhooks

When to use

Use for third-party APIs, inbound webhooks, outbound event delivery, or background synchronization.

When not to use

Do not build a custom integration layer before identifying the external contract, supported use cases, and operational needs.

Inputs and assumptions

Inspect provider docs, authentication model, rate limits, event ordering, retry policy, idempotency, privacy, and failure ownership.

Workflow

  1. Pin and document the provider contract and supported event/API version.
  2. Verify inbound webhook authenticity using the provider's recommended signature method and constant-time comparison where applicable.
  3. Validate payload structure and reject or quarantine unsupported events.
  4. Make processing idempotent and safe under duplicate or out-of-order delivery.
  5. Use timeouts, bounded retries with backoff, and provider rate limits.
  6. Store delivery state and correlation IDs without logging secrets.
  7. Provide replay/recovery controls with permission checks and audit.
  8. Test invalid signatures, duplicates, timeouts, rate limits, and partial provider failures.

Decision rules

  • Never trust a webhook because it arrived over HTTPS alone.
  • Acknowledge only according to the provider's delivery contract.
  • Do not retry non-idempotent side effects blindly.
  • Keep provider credentials in managed secret configuration.

Example

For an order-created webhook, verify signature, persist an idempotency key, then enqueue processing; a duplicate delivery should not create a second order.

Common failures

  • Accepting spoofed events or replayed payloads.
  • Unbounded retries and queue growth.
  • Returning success before required durable acceptance.

Validation

Exercise signature verification, deduplication, ordering, retry limits, timeouts, secret redaction, and operational replay.

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.