agentleFS
me-shaonme-shaon/agent-skills/skills/resilient-check/SKILL.md

resilient-check

Skill27 starsChanged 8 months agoMITView on GitHub

Review Laravel workflows for retries, timeouts, idempotency, and graceful failure under partial outages.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    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 this skill for Laravel jobs, integrations, webhooks, scheduled tasks, listeners, notifications, or user-facing flows that must stay …

    line 17
  2. Distinctive:

    Keep the answer practical and prioritized.

    line 35
  3. Distinctive:

    Use the skill on a Laravel queue-driven integration flow with synchronous API calls, naive retries, and no deduplication.

    line 81

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

Resilient Check

When to use

Use this skill for Laravel jobs, integrations, webhooks, scheduled tasks, listeners, notifications, or user-facing flows that must stay reliable when dependencies are slow, unavailable, or inconsistent. It is most useful when queues, Redis, Horizon, external APIs, or payment/provider callbacks are involved.

Input parameters

  • The workflow or subsystem to assess.
  • External services, queues, or webhooks involved.
  • Existing retry, timeout, circuit-breaker, or deduplication behavior.
  • Known incidents, flaky tests, or production failure modes.
  • Relevant jobs, listeners, commands, controllers, events, notifications, or queue config files.

Procedure

  1. Trace the Laravel execution path for the workflow. Inspect controllers, dispatched jobs, listeners, commands, notifications, service classes, and relevant config such as config/queue.php, config/services.php, and Horizon settings.
  2. Identify where the workflow can fail or partially succeed: external HTTP calls, payment providers, webhooks, database writes, cache writes, file storage, notifications, and chained or batched jobs.
  3. Review retry behavior in Laravel terms. Check tries, backoff, retryUntil, job timeouts, Horizon worker configuration, queue visibility/timeout alignment, and whether failures land in failed_jobs with useful context.
  4. Review idempotency and duplicate-delivery safety. Look for webhook deduplication, cache locks, unique jobs, database uniqueness guarantees, firstOrCreate race conditions, unsafe side effects before persistence, and handlers that are not safe to replay.
  5. Flag high-risk patterns such as synchronous third-party API calls inside controllers, jobs that both mutate state and call external APIs without compensation, unbounded retries, missing dead-letter handling, and scheduled tasks that can overlap without withoutOverlapping() or locks.
  6. Return findings under High-risk failure modes, Code changes, and Operational safeguards. Prefer concrete Laravel fixes such as queue settings, locks, unique jobs, timeout changes, retry tuning, ThrottlesExceptions, or graceful fallback responses.
  7. Keep the answer practical and prioritized. Focus on the smallest changes that reduce operational risk fastest.

Output expectations: return the highest-risk failure modes first, then concrete Laravel code and operational fixes, with the smallest high-impact next steps called out clearly.

Examples

Prompt 1:

Use resilient-check on our payment webhook processing flow. Focus on duplicate deliveries, idempotency, timeouts, retry storms, and safe recovery.

Prompt 2:

Review this Laravel job pipeline for resilience. We call two external APIs and workers sometimes retry the same job for hours. Prioritize the highest-risk failure modes first.

JSON:

{
  "skill": "resilient-check",
  "context": {
    "workflow": "payment_webhook_processing",
    "dependencies": ["stripe", "erp_api", "redis_queue"],
    "focus": ["idempotency", "timeouts", "retries", "fallbacks"],
    "files": ["app/Jobs", "app/Listeners", "config/queue.php"],
    "concerns": ["duplicate_delivery", "retry_storms", "timeout_alignment"]
  }
}

Code example:

final class SyncInvoiceJob implements ShouldQueue
{
    public int $tries = 5;
    public int $timeout = 30;
    public array $backoff = [60, 300, 900];
}

Smoke test

Use the skill on a Laravel queue-driven integration flow with synchronous API calls, naive retries, and no deduplication. Verify that the response references job-level settings like tries, backoff, and timeouts, flags idempotency gaps, and recommends concrete Laravel resilience fixes instead of general reliability advice.

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.