diagnose
Find out why Trigger.dev runs or deploys misbehave (stuck QUEUED or PENDING_VERSION, failed, timed out, crashed or OOM, schedules not firing, 429s, CI deploy failures, chat history lost). Use when a Trigger.dev project shows an error, a run id such as run_abc123, or the user says a task did not run.
- License 许可
- MIT
- 最近更新
- 2026-11-02
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- diagnose
- description
- Find out why Trigger.dev runs or deploys misbehave (stuck QUEUED or PENDING_VERSION, failed, timed out, crashed or OOM, schedules not firing, 429s, CI deploy failures, chat history lost). Use when a Trigger.dev project shows an error, a run id such as run_abc123, or the user says a task did not run.
- allowed-tools
- Bash(trigger-ctx *) Bash(node *trigger-ctx.mjs *) Bash(node *trigger-ctx.mjs" *) Bash(npx trigger.dev@latest whoami*) Bash(npx trigger.dev@latest runs get *) Bash(npx trigger.dev@latest runs list *) Bash(npx trigger.dev@latest report *)
- argument-hint
- [run id, task, or symptom]
02 资源文件 2
- 参考文档symptoms.md5.5 KB
- 参考文档trql.md870 B
03 SKILL.md 正文
Trigger.dev: diagnose
Evidence first, then a verdict, then a fix with a doc link. Symptoms arrive in plain language ("my cron didn't fire"); map them, check them, and say what you could not look at.
Invariants
- Name the environment in every check and every claim. MCP project tools default to dev, CLI
runs/reportdefault to prod. "Prod is healthy" must come from a call withenvironment: "prod". - Never invent run data. If MCP is not connected or not logged in, say which checks you could not run, give the dashboard path or the CLI command for the user, and stop short of a verdict you cannot support.
- Evidence before verdict. Cite run ids, span ids, a query result or a code line for each cause you name. Rank causes; do not list ten.
- Writes ask. Replays, cancellations, prompt overrides and anything aimed at prod need the user's yes. The plugin's prod guard also asks.
Procedure
- Login. Do not start with MCP
whoami,list_profilesorlist_orgs: logged out they can hang. If you can run Bash,npx trigger.dev@latest whoamianswers "You must login first" in seconds; otherwise go straight to the data calls below, which answer "User did not allow login" in seconds when logged out. Either way, a missing login means: say which checks you could not run, give the dashboard path or the CLI command, and stop short of a verdict. A denied or unavailable CLI check is not a reason to stop when MCP answers. - Anchor on the project facts in context (or
trigger-ctx detect --brief): SDK version, Cloud or self-host, Trigger roots (passconfigPath/projectRefto MCP calls in a monorepo). - Find the symptom in
${CLAUDE_SKILL_DIR}/symptoms.md. It gives ranked causes, the first check, and the doc. - Run the first check with an explicit environment: MCP
get_report(health),list_runs,get_current_worker,list_deploys,get_run_details, orget_query_schemathenquery(TRQL ideas in${CLAUDE_SKILL_DIR}/trql.md). Without MCP:npx trigger.dev@latest runs get <id> --env <e>,report health --env <e>, or the dashboard. - A run id, or a task with large logs or traces: hand it to the
run-investigatoragent (start it in the foreground and wait for its result; you need it before the verdict), which returns at most 25 lines (verdict, evidence ids, ranked causes, fix, doc). Do not read huge traces yourself. - Propose the fix with its doc link as a full URL (
https://trigger.dev/docs/<path>, taking the path from the Doc column ofsymptoms.md;trigger-ctx docs "<error text>"resolves other topics). Never say you could not resolve a link: the Doc column is enough. If the fix is a code change, make it only when asked. - After the fix is deployed, offer a replay or bulk replay of the affected runs. Replays are writes: ask.
Plan-dependent facts (log retention, query lookback, concurrency, billing limits) differ by plan and by host. Billing limits and API-key presets are dashboard steps; alerts can be listed or created through the MCP alert tools (list_alert_capabilities first) for a human: say where to click. An alert on a query result (4.8.1+) is made from the Query page, the Dashboard Agent or the API; the MCP create_alert has no query field.
Related
Code-level causes (parallel waits, unawaited triggers, dynamic imports) can also be found statically: /trigger-dev:audit. Design questions go to the build skill; chat-agent issues to chat-agent.
04 同仓库更多 Skills
ship
Deploy Trigger.dev tasks (trigger deploy) to staging, prod or a preview branch with a preflight, the right CI or integration pipeline, an explicit --env, and a verification step. Use when asked to deploy, ship or release the Trigger.dev tasks or jobs. Not for deploying the app itself to Vercel, Fly or another host.
new
Add one capability to an existing Trigger.dev project (a task, a schedule, a progress UI, an approval step, a webhook handler) and prove it runs.
init
Set up Trigger.dev in this repository with a short discovery, an explicit architecture decision, and a first task proven to run.
doctor
Check the Trigger.dev toolchain around this project (Node, CLI login and profile, MCP server, versions, duplicate official skills, self-host target, plugin install scope) and report what to fix.
chat-agent
Build, migrate or debug AI chat agents on Trigger.dev (chat.agent, the chat transport, sessions, transcript storage, tool approvals, server, Slack and Linear callers). Use when a Trigger.dev project needs a chat assistant or agent, or code imports @trigger.dev/sdk/ai or @trigger.dev/sdk/chat.
audit
Review a Trigger.dev codebase against the plugin's rule catalog (stale APIs, silent-failure patterns, config, deploy, cost) and write a findings report; optionally apply safe fixes.