Audit and improve web accessibility following WCAG 2.1 guidelines. Use when asked to "improve accessibility", "a11y audit", "WCAG compliance", "screen reader support", "keyboard navigation", or "make accessible".
中文简介正在准备中。当前显示原文说明。
Architect durable, event-driven workflows using step functions, retry strategies, idempotency, fan-out patterns, and the critical differences between orchestration approaches.
中文简介正在准备中。当前显示原文说明。
安装前可以查看交给 AI 代理的指令内容。
You are a workflow architect who understands the fundamental tradeoff: simplicity vs. correctness. Every workflow platform sits somewhere on that spectrum. Your job is to pick the right point for the user's situation and implement it correctly.
After reading the methodology below, read the reference matching your orchestration platform:
| Platform | Reference | Best For |
|---|---|---|
| Inngest | references/inngest.md | Serverless, event-driven, fast shipping |
| Temporal | references/temporal.md | Complex orchestration, human-in-the-loop |
| BullMQ | references/bullmq.md | Simple job queues, rate limiting, Redis stack |
Wrap each unit of work in a step, so the system can retry, resume, and checkpoint independently.
Without durable execution:
fetch data → process → save → send email
↑ server crashes here
↓ entire pipeline reruns from scratch
↓ customer gets duplicate email
With durable execution:
step("fetch") ✓ saved
step("process") ✓ saved
step("save") ← server crashes here
step("save") ← retries ONLY this step
step("email") ✓ runs once
| Factor | Inngest | Temporal | BullMQ |
|---|---|---|---|
| Complexity | Low (serverless functions) | High (workers + server) | Medium (Redis-backed) |
| Durability | Steps checkpointed | Full workflow replay | Job-level retry |
| Infrastructure | Managed or self-hosted | Requires Temporal Server | Requires Redis |
| Best for | Serverless, event-driven | Complex orchestration | Simple job queues |
| Learning curve | 1-2 days | 1-2 weeks | 1-2 days |
| Language support | TS, Python, Go | TS, Go, Java, Python, .NET | TS/JS only |
Each step depends on the previous result. Steps checkpoint independently.
step("create-db-record") → returns user
step("create-stripe-customer") → uses user.email
step("send-welcome-email") → uses user.email
If step 2 fails, only step 2 retries. Steps 1 and 3 are not re-executed.
One event triggers multiple independent workflows. Each runs and retries independently.
Event: user/signup.completed
→ Workflow A: send-welcome-email (independent)
→ Workflow B: create-stripe-trial (independent)
→ Workflow C: provision-workspace (independent)
If Workflow B fails, Workflows A and C are unaffected.
Prevent duplicate execution when the same event fires twice.
Rule: Idempotency at the workflow level AND the external call level. Belt and suspenders.
Cron-triggered workflows with observability:
Workflows that pause and wait for external input — approval flows, multi-day processes.
workflow: purchaseWorkflow(amount)
if amount > threshold:
pause and wait for approval signal (up to 72h)
if no approval → deny
continue with purchase
| Issue | Severity | Rule |
|---|---|---|
| No idempotency keys on external calls | Critical | ALWAYS use idempotency keys for payments, emails, mutations |
| Side effects in workflow code (Temporal) | Critical | Workflows must be deterministic — no I/O, no random, no clock |
| Giant payloads in step results | High | Steps serialize data — keep under 256KB |
| No timeouts on activities | High | ALWAYS set timeouts — default infinite hangs forever |
| Linear retry without backoff | Medium | ALWAYS use exponential backoff |
| Missing dead letter handling | High | Failed-after-all-retries jobs need a destination |
| Monolithic workflows | Medium | Break workflows >10 steps into child workflows |
| Don't | Do |
|---|---|
setTimeout(fn, 3600000) for delays | Platform sleep — survives restarts |
| Global variables for workflow state | Step results and explicit state passing |
| Retry loops in application code | Platform-level retry policies |
| Polling in a loop for completion | Event-driven triggers or workflow signals |
| One giant function with all logic | Decompose into steps/activities |
Works with: error-handling-patterns, deployment-procedures
还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Audit and improve web accessibility following WCAG 2.1 guidelines. Use when asked to "improve accessibility", "a11y audit", "WCAG compliance", "screen reader support", "keyboard navigation", or "make accessible".
中文简介正在准备中。当前显示原文说明。
Structured methodology for adversarial thinking — generating attack scenarios, abuse cases, race conditions, and security edge cases against specs and implementations. Produces spec-level gap items, not code-level fixes.
中文简介正在准备中。当前显示原文说明。
Orchestrate multiple Antigravity skills through guided workflows for SaaS MVP delivery, security audits, AI agent builds, and browser QA.
中文简介正在准备中。当前显示原文说明。
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewing API specifications, or establishing API design standards.
中文简介正在准备中。当前显示原文说明。
Manage API versioning and evolution with URL/header/query strategies, deprecation workflows, breaking change classification, sunset headers, and consumer-driven contract testing. Use when designing versioning strategy, deprecating endpoints, or evolving API contracts.
中文简介正在准备中。当前显示原文说明。
Analyzes codebase structure, data flow, module relationships, and key patterns to generate and maintain a living architecture document (ARCHITECTURE.md).
中文简介正在准备中。当前显示原文说明。