vercel-queues

作成者: sentry

@vercel/queueを使用して、プッシュおよびポールコンシューマーでVercel Queuesを構築・運用します。ユーザーが「vercel queues」、「@vercel/queue」、「queue/v2beta」などについて尋ねた場合に使用します。

npx skills add https://github.com/getsentry/junior --skill vercel-queues

Implement queue producers and consumers using Vercel Queues docs and SDK contracts.

Step 1: Classify the request

Choose one path before writing code:

Request typePrimary reference
First-time setup, minimal producer + consumerreferences/quickstart.md
SDK usage, options, retries, transport behaviorreferences/sdk.md
API-level integration (custom clients, non-SDK consumers)references/api.md
Delivery semantics and architecture decisionsreferences/concepts.md
Polling workers and mixed push/poll designreferences/poll-mode.md
Local setup and debuggingreferences/local-dev.md

If the task spans multiple categories, read only the relevant files above.

Step 2: Apply core guardrails

  1. Design consumers as idempotent because delivery is at-least-once.
  2. Pick push mode by default on Vercel unless the task explicitly needs scheduled/batched/client-driven polling.
  3. For poll mode, pin an explicit region and use the same region for send and receive.
  4. Use bounded retry strategy for poison messages (acknowledge: true after threshold).
  5. Keep topic and consumer names within ^[A-Za-z0-9_-]+$.

Step 3: Implement with minimal surface

  1. Prefer top-level send and handleCallback for standard Vercel push mode.
  2. Use QueueClient only when you need custom options (transport, token, headers, deploymentId).
  3. Use PollingQueueClient for poll mode (receive) and handle { ok: false, reason: "empty" } explicitly.
  4. Keep vercel.json trigger mapping explicit and scoped to the consumer route.

Step 4: Validate behavior

  1. Verify producer returns messageId and treat nullable messageId as acceptable deferred acceptance.
  2. Verify consumer behavior across success, retry, and poison-message paths.
  3. Verify visibility timeout assumptions match workload duration.
  4. Verify region assumptions in poll mode.

Step 5: Troubleshoot from first principles

  1. Authentication issues: check OIDC/token source and env loading.
  2. Missing deliveries: verify topic name, trigger registration, and region alignment.
  3. Duplicate processing: verify idempotency key strategy and consumer idempotency.
  4. Backlog growth: inspect consumer throughput, retry policy, and visibility timeout.

sentryのその他のスキル

add-ai-integration
sentry
Sentry JavaScript SDKに新しいAIプロバイダー統合を追加します。新しいAIインストルメンテーション(OpenAI、Anthropic、Vercel AI、LangChainなど)を貢献する際に使用します…
add-cdn-bundle
sentry
指定された機能を持つブラウザパッケージ用の新しいCDNバンドルを作成します
agent-prompt
sentry
効果的なエージェントプロンプトとスキルを作成するためのリファレンスガイド。新しいスキルの作成、プロンプト品質のレビュー、またはWardenのプロンプトの理解に使用します。
agents-md
sentry
このスキルは、ユーザーが「AGENTS.mdを作成して」「AGENTS.mdを更新して」「エージェントドキュメントを管理して」「CLAUDE.mdを設定して」と依頼した場合や、エージェント…を維持する必要がある場合に使用します。
agents-md
sentry
60行未満の最小限で高シグナルなエージェントドキュメントを作成・維持します。研究に基づくエージェント向けドキュメントのベストプラクティスを適用し、長くなると指示の品質が低下します。パッケージマネージャー、ファイルスコープのコマンド(ファイルごとのテスト・リンター・型チェック)、エージェントIDによるコミット帰属の3つのコアセクションが必要です。プロジェクト構造(ロックファイル、リンター設定、CIコマンド、モノレポ指標)を分析してファイルに含める内容を決定します。ヘッダーと箇条書きのみを使用し、参照...
agents-md
sentry
このスキルは、ユーザーが「AGENTS.mdを作成」「AGENTS.mdを更新」「エージェントドキュメントを管理」「CLAUDE.mdを設定」と依頼した場合や、エージェント…
ai-sdk
sentry
ai-sdk — getsentry/webvitals.com が公開する、AIエージェント用のインストール可能なスキル。
analytics
sentry
SentryのフロントエンドUIでアナリティクスイベントを計測・発見します。ボタン、ページ、モーダル、カスタムインタラクションにトラッキングを追加する際や、新しい定義を行う際に使用します。