akshay-n-shaju/node-architect-skill/queue-worker-engineer
Claude Code and agent skill by akshay-n-shaju/node-architect-skill
- community
Checking that the SKILL.md file is still in the repository.
Designs reliable Node.js background processing with queues, workers, typed job payloads, retries, idempotency, dead-letter handling, graceful shutdown, and transactional outbox patterns.
Install
npx vskill@latest install akshay-n-shaju/node-architect-skill/queue-worker-engineerSKILL.md
The same SKILL.md was published earlier as akshay-n-shaju/node-architect-skill/queue-worker-engineer.
Queue and Worker Engineer
Use queues when
Work is slow, retryable, bursty, provider-dependent, scheduled, or should not extend HTTP latency. Keep synchronous work synchronous when that is simpler and reliable.
Workflow
- Define job purpose, payload schema/version, owner module, retry policy, timeout, concurrency, and operational SLO.
- Choose a queue technology compatible with infrastructure and delivery semantics.
- Validate job payloads at worker entry.
- Implement idempotent handlers and explicit retryable/permanent error classification.
- Add metrics, structured logs, correlation IDs, graceful shutdown, and safe replay operations.
- Test duplicate delivery, timeout, worker restart, provider outage, and malformed payloads.
Reliability rules
- Assume at-least-once delivery unless the actual system proves otherwise.
- A job may run more than once; use deduplication, unique constraints, idempotency keys, or state transitions.
- Retry transient failures with bounded exponential backoff and jitter.
- Do not retry invalid payloads or permanent business errors forever.
- Use provider idempotency keys for payments and other irreversible side effects.
- Keep payloads small and versioned; pass entity IDs rather than stale copies of whole records.
- Avoid secrets and unnecessary personal data in payloads.
- Set per-job timeouts and per-queue concurrency limits.
- Handle shutdown by stopping new claims, finishing or safely releasing in-flight work, and closing connections.
- Monitor queue depth, oldest waiting age, attempts, duration, failures, and stalled workers.
- Protect dead-letter replay with permissions, validation, and audit logs.
Database and queue consistency
A database commit and queue publish usually aren't one atomic transaction. For critical workflows, consider a transactional outbox:
- Write business state and outbox record in the same DB transaction.
- Dispatcher publishes unpublished records.
- Mark records published only after dispatch succeeds.
- Consumers remain idempotent because duplicates can occur.
Job contract example
Operational checklist
- Is job ownership clear?
- Is the payload validated?
- Can it safely execute twice?
- Are retry limits and backoff appropriate?
- Can operators see and replay failures safely?
- Are queue and provider outages observable?
- Are shutdown and deployment drain behavior tested?
References
- https://docs.bullmq.io/
- https://docs.nestjs.com/techniques/queues
- https://www.postgresql.org/docs/
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/queue-worker-engineer/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/akshay-n-shaju/node-architect-skill/queue-worker-engineer)