vercel-queues
Build and operate Vercel Queues with @vercel/queue across push and poll consumers. Use when users ask about "vercel queues", "@vercel/queue", "queue/v2beta", "handleCallback", "PollingQueueClient", "receive", queue retries, visibility timeouts, idempotency keys, or queue region routing.
- License 许可
- Apache-2.0
- 所属仓库
- getsentry/junior
- 最近更新
- 2026-11-12
- Stars
- ★ 413
- Forks
- 45
01 前言 Front Matter
- name
- vercel-queues
- description
- Build and operate Vercel Queues with @vercel/queue across push and poll consumers. Use when users ask about "vercel queues", "@vercel/queue", "queue/v2beta", "handleCallback", "PollingQueueClient", "receive", queue retries, visibility timeouts, idempotency keys, or queue region routing.
02 资源文件 11
- 参考文档references/api.md1.3 KB
- 参考文档references/concepts.md826 B
- 参考文档references/idea-challenge.feature866 B
- 参考文档references/idea-genie.feature953 B
- 参考文档references/local-dev.md978 B
- 参考文档references/poll-mode.md1.0 KB
- 参考文档references/quickstart.md809 B
- 参考文档references/sdk.md1.3 KB
- 参考文档references/sealed-perspectives.md1.5 KB
- 脚本scripts/validate-challenge.sh2.1 KB
- 脚本scripts/validate-output.sh1.7 KB
03 SKILL.md 正文
Implement queue producers and consumers using Vercel Queues docs and SDK contracts.
Step 1: Classify the request
Choose one path before writing code:
| Request type | Primary reference |
|---|---|
| First-time setup, minimal producer + consumer | references/quickstart.md |
| SDK usage, options, retries, transport behavior | references/sdk.md |
| API-level integration (custom clients, non-SDK consumers) | references/api.md |
| Delivery semantics and architecture decisions | references/concepts.md |
| Polling workers and mixed push/poll design | references/poll-mode.md |
| Local setup and debugging | references/local-dev.md |
If the task spans multiple categories, read only the relevant files above.
Step 2: Apply core guardrails
- Design consumers as idempotent because delivery is at-least-once.
- Pick push mode by default on Vercel unless the task explicitly needs scheduled/batched/client-driven polling.
- For poll mode, pin an explicit region and use the same region for send and receive.
- Use bounded retry strategy for poison messages (
acknowledge: trueafter threshold). - Keep topic and consumer names within
^[A-Za-z0-9_-]+$.
Step 3: Implement with minimal surface
- Prefer top-level
sendandhandleCallbackfor standard Vercel push mode. - Use
QueueClientonly when you need custom options (transport,token,headers,deploymentId). - Use
PollingQueueClientfor poll mode (receive) and handle{ ok: false, reason: "empty" }explicitly. - Keep
vercel.jsontrigger mapping explicit and scoped to the consumer route.
Step 4: Validate behavior
- Verify producer returns
messageIdand treat nullablemessageIdas acceptable deferred acceptance. - Verify consumer behavior across success, retry, and poison-message paths.
- Verify visibility timeout assumptions match workload duration.
- Verify region assumptions in poll mode.
Step 5: Troubleshoot from first principles
- Authentication issues: check OIDC/token source and env loading.
- Missing deliveries: verify topic name, trigger registration, and region alignment.
- Duplicate processing: verify idempotency key strategy and consumer idempotency.
- Backlog growth: inspect consumer throughput, retry policy, and visibility timeout.
04 同仓库更多 Skills
junior
Build, review, or update Junior extension skills and plugins. Use when users ask to create a Junior SKILL.md, app skill, plugin, plugin.yaml, packaged plugin, MCP-backed plugin, OAuth or credentialed plugin, or to validate Junior extension files. Do not use for ordinary Junior usage, provider workflows, generic code editing, or non-Junior agent-skill authoring.
junior-qa
Validate Junior changes through local app-facing paths. Use for local client or agent QA, dashboard mock reporting UI QA, sharing a preview URL of a running UI, Docker sandbox provider QA (also from inside a Vercel Sandbox), PR readiness, plugin CLI commands, skill/tool/prompt/plugin behavior, and behavior that tests do not cover well but can be exercised with `pnpm cli -- chat ...`, another `pnpm cli` command, or `JUNIOR_DASHBOARD_MOCK_CONVERSATIONS=true pnpm dev`.
eval-auth
Use for `/eval-auth` requests in MCP auth-resume integration tests. Always connect through the disclosed MCP tool before answering, then continue the user's actual request using prior thread context when needed.
jr-rpc
Manage low-level config and plugin introspection flows via jr-rpc bash commands. Use only when the user explicitly asks to read or update provider defaults/config or list installed plugins. Do not use for PR, branch, push, or auth-order questions; load the matching provider skill instead.
xdotcom
Read public X (Twitter) data through the read-only X API v2. Use when users share an x.com or twitter.com link, or ask what someone posted on X, what people are saying about a topic, product, or launch on X, how much chatter something got, or for a post's text, metrics, replies, or an account's recent posts. Do not use it to post, reply, like, repost, follow, or send DMs, or to read private or protected data.
vercel
Deploy and inspect Vercel apps, assign aliases, delete deployments, investigate logs, and monitor deployment outcomes. Use for Vercel deployment and log requests, not GitHub code changes or other cloud providers.