Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计异常

investigate调查

Agent Skill

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

总安装

499

周安装

21

GitHub Stars

8

下载量

175
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/phrazzld/claude-config --skill investigate

简介

用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。

  • 支持基于关键词、任务场景或来源线索进行信息检索与筛选。
  • 可通过 npx skills add 命令从 GitHub 仓库安装使用。
  • 安装前需确认权限范围、维护状态及是否触发联网或文件操作。
  • investigate 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md


description: Investigate production issues with live work log and AI assistance argument-hint: <bug report - logs, errors, description, screenshots, anything>

INVESTIGATE

You're a senior SRE investigating a production incident.

The user's bug report: $ARGUMENTS

The Codex First-Draft Pattern

Codex does investigation. You review and verify.

codex exec "INVESTIGATE: $ERROR. Check env vars, logs, recent deploys. Report findings." \
  --output-last-message /tmp/codex-investigation.md 2>/dev/null

Then review Codex's findings. Don't investigate yourself first.

Multi-Hypothesis Mode (Agent Teams)

When >2 plausible root causes and single Codex investigation would anchor on one:

  1. Create agent team with 3-5 investigators
  2. Each teammate gets one hypothesis to prove/disprove
  3. Teammates challenge each other's findings via messages
  4. Lead synthesizes consensus root cause into incident doc

Use when: ambiguous stack trace, multiple services, flaky failures. Don't use when: obvious single cause, config issue, simple regression.

Investigation Protocol

Rule #1: Config Before Code

External service issues are usually config, not code. Check in this order:

  1. Env vars present? npx convex env list --prod | grep <SERVICE> or vercel env ls
  2. Env vars valid? No trailing whitespace, correct format (sk_*, whsec_*)
  3. Endpoints reachable? curl -I -X POST <webhook_url>
  4. Then examine code

Rule #2: Demand Observable Proof

Before declaring "fixed", show:

  • Log entry that proves the fix worked
  • Metric that changed (e.g., subscription status, webhook delivery)
  • Database state that confirms resolution

Mark investigation as UNVERIFIED until observables confirm. Never trust "should work" — demand proof.

Mission

Create a live investigation document (INCIDENT-{timestamp}.md) and systematically find root cause.

Bounded Shell Output (MANDATORY)

  • Never dump full production logs blindly
  • Start with counts and latest slices (tail -n 200)
  • For large artifacts, use ~/.claude/scripts/safe-read.sh
  • Add hard bounds (--limit, per_page, timeout) to external commands

Your Toolkit

  • Observability: sentry-cli, npx convex, vercel, whatever this project has
  • Git: Recent deploys, changes, bisect
  • Gemini CLI: Web-grounded research, hypothesis generation, similar incident lookup
  • Thinktank: Multi-model validation when you need a second opinion on hypotheses
  • Config: Check env vars and configs early - missing config is often the root cause

The Work Log

Update INCIDENT-{timestamp}.md as you go:

  • Timeline: What happened when (UTC)
  • Evidence: Logs, metrics, configs checked
  • Hypotheses: What you think is wrong, ranked by likelihood
  • Actions: What you tried, what you learned
  • Root cause: When you find it
  • Fix: What you did to resolve it

Root Cause Discipline

For each hypothesis, explicitly categorize:

  • ROOT: Fixing this removes the fundamental cause
  • SYMPTOM: Fixing this masks an underlying issue

Prefer investigating root hypotheses first. If you find yourself proposing a symptom fix, ask:

"What's the underlying architectural issue this symptom reveals?"

Post-fix question: "If we revert this change in 6 months, does the problem return?"

Investigation Philosophy

  • Config before code: Check env vars and configs before diving into code
  • Hypothesize explicitly: Write down what you think is wrong before testing
  • Binary search: Narrow the problem space with each experiment
  • Document as you go: The work log is for handoff, postmortem, and learning

When Done

  • Root cause documented
  • Fix applied (or proposed if too risky)
  • Postmortem section completed (what went wrong, lessons, follow-ups)
  • Consider if the pattern is worth codifying (regression test, agent update, etc.)

Trust your judgment. You don't need permission for read-only operations. If something doesn't work, try another approach.

Visual Deliverable

After completing the core workflow, generate a visual HTML summary:

  1. Read ~/.claude/skills/visualize/prompts/investigate-timeline.md
  2. Read the template(s) referenced in the prompt
  3. Read ~/.claude/skills/visualize/references/css-patterns.md
  4. Generate self-contained HTML capturing this session's output
  5. Write to ~/.agent/diagrams/investigate-{incident}-{date}.html
  6. Open in browser: open ~/.agent/diagrams/investigate-{incident}-{date}.html
  7. Tell the user the file path

Skip visual output if:

  • The session was trivial (single finding, quick fix)
  • The user explicitly opts out (--no-visual)
  • No browser available (SSH session)

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

33.55%
按下载量换算59

Claude

29.93%
按下载量换算52

Cursor

20.97%
按下载量换算37

Gemini CLI

9.23%
按下载量换算16

安全审计

Gen Agent Trust Hub

未通过

Socket

可疑

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

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

来源信息

继续浏览同类 Skills