Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计提醒

investigation-mode调查模式

Agent Skill

investigation-mode 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,152

周安装

49

GitHub Stars

156

下载量

404
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:investigation-mode(调查模式)
来源仓库:https://github.com/vercel-labs/vercel-plugin
仓库路径:skills/investigation-mode
安装命令:
npx skills add https://github.com/vercel-labs/vercel-plugin --skill investigation-mode
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/vercel-labs/vercel-plugin --skill investigation-mode

简介

用于查找、检索和筛选相关信息。

  • 适合根据关键词快速定位候选结果。
  • 通过 GitHub 安装,适用于多种 AI 宿主。
  • 建议确认权限和网络访问能力。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。
  • investigation-mode 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Investigation Mode — Orchestrated Debugging

When a user reports something stuck, hung, broken, or not responding, you are the diagnostic coordinator. Do not guess. Follow the triage order, report what you find at every step, and stop when you have a high-confidence root cause.

Reporting Contract

Every investigation step MUST follow this pattern:

  1. Tell the user what you are checking — "I'm checking the runtime logs for errors…"
  2. Share the evidence you found — paste the relevant log line, status, error, or screenshot
  3. Explain the next step — "The logs show a timeout on the DB call. I'll check the connection pool next."

Never silently move between steps. The user is already frustrated — silence makes it worse.

Triage Order

Work through these in order. Stop as soon as you find the root cause.

1. Runtime Logs (check first — most issues leave traces here)

  • Dev server: Check terminal output for errors, warnings, unhandled rejections
  • Vercel logs: vercel logs --follow (production) or vercel logs <deployment-url>
  • Browser console: Open DevTools → Console tab for client-side errors
  • If no logs exist: This is the problem. Add logging before continuing (see "Add Logging" below)

Tell the user: "Checking runtime logs…" → share what you found → explain next step.

2. Workflow / Background Job Status

If the app uses workflows, queues, or cron jobs:

  • Run vercel workflow runs list to check recent run statuses
  • Look for runs stuck in running state — likely a missing await or unresolved promise
  • Check individual run details: vercel workflow runs get <run-id>
  • Look for failed steps, retry exhaustion, or timeout errors

Tell the user: "Checking workflow run status…" → share the run state → explain next step.

3. Browser Verification

Use agent-browser to visually verify what the user sees:

  • Take a screenshot of the current page state
  • Check the browser console for JavaScript errors
  • Check the Network tab for failed requests (4xx/5xx, CORS errors, hanging requests)
  • Look for hydration mismatches or React error boundaries

Tell the user: "Taking a browser screenshot to see the current state…" → share the screenshot → explain what you see.

4. Deploy / Environment Status

  • vercel inspect <deployment-url> — check build output, function regions, environment
  • vercel ls — verify the latest deployment succeeded
  • Check for environment variable mismatches between local and production
  • Verify the correct branch/commit is deployed

Tell the user: "Checking deployment status…" → share the deployment state → explain findings.

Stop Condition

Stop investigating when:

  • You find a high-confidence root cause (specific error, missing env var, failed step, etc.)
  • Two consecutive triage steps produce no signal — report what you checked and that you found no evidence, then ask the user for more context

Do not keep cycling through steps hoping something appears. If logs are empty and workflows look fine, say so and ask the user what they expected to happen.

Common Hang Causes

When logs point to code issues, check for these frequent culprits:

  • Missing await: Async functions called without await cause silent failures
  • Infinite loops: while(true) without break conditions, recursive calls without base cases
  • Unresolved promises: new Promise() that never calls resolve() or reject()
  • Missing env vars: process.env.X returning undefined causing silent auth/DB failures
  • Connection pool exhaustion: Database connections not being released
  • Middleware chains: A middleware that never calls next() or returns a response
  • Timeout misconfigs: Function timeout too short for the operation (check vercel.json maxDuration)

Add Logging (If Missing)

If the investigation reveals insufficient observability, add structured logging immediately — you cannot debug what you cannot see.

// API routes — wrap handlers with try/catch + logging
export async function POST(request: Request) {
  console.log('[api/route] incoming request', { method: 'POST', url: request.url });
  try {
    const result = await doWork();
    console.log('[api/route] success', { resultId: result.id });
    return Response.json(result);
  } catch (error) {
    console.error('[api/route] failed', { error: String(error), stack: (error as Error).stack });
    return Response.json({ error: 'Internal error' }, { status: 500 });
  }
}
// Workflow steps — log entry/exit of every step
const result = await step.run('process-data', async () => {
  console.log('[workflow:process-data] step started');
  const data = await fetchData();
  console.log('[workflow:process-data] step completed', { count: data.length });
  return data;
});

Key principle: Every async boundary, every external call, every step entry/exit should have a log line. When something hangs, the last log line tells you exactly where it stopped.

Cross-reference: For comprehensive logging setup (OpenTelemetry, log drains, Sentry, Vercel Analytics), see the observability skill. For workflow-specific debugging, see the workflow skill.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.64%
按下载量换算156

Claude

29.17%
按下载量换算118

Cursor

20.77%
按下载量换算84

Gemini CLI

8.78%
按下载量换算35

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills