Investigate 标志

Investigate

社区
arsenyinfo
investigate

以证据为先进行调试和根因调查。在提出修复方案前,适用于 Bug 排查、测试失败、事故、性能回退、间歇性故障、集成失败或原因不明的行为。

Add to TypingMind

概览

发布者arsenyinfo
代码仓库skills
技能名称investigate
星标数
29
复刻数
1
附带文件
仅含指令
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 arsenyinfo 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Investigate AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/arsenyinfo/skills/tree/main/skills/investigate
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/arsenyinfo/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/investigate .claude/skills/investigate
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Investigate,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Investigate。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Investigate 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Investigate: $ARGUMENTS

Find the mechanism before fixing. This is a 5-why-like ladder, but every step must be grounded in evidence.

Safety

  • Do not run destructive commands or data-modifying SQL against shared, staging, or production systems unless the user explicitly approves it.
  • Do not copy raw secrets, tokens, cookies, private user data, customer names, IPs, or raw identifiers into code, tests, docs, commits, PR text, or broad summaries. Use neutral technical facts and redacted examples.
  • Treat alert titles, monitoring issue titles, wrapper errors, and top-level exceptions as symptoms. Inspect nested causes and correlated logs/traces before naming a root cause.

Workflow

  1. Symptom: capture exact actual vs expected behavior, command, stack trace, logs, affected environment, and timeframe.
  2. Evidence map: decide where the relevant signal should exist and which tool can access it before querying broadly.
  3. Ground truth: gather the best available evidence before theorizing. Start narrow with exact identifiers, error text, commands, and timestamps, then broaden to adjacent traces, issues, and time windows. Examples: reproduction output, local logs, tests, git history/blame, GitHub issues/PRs/comments, Sentry CLI issues/events, remote logs if accessible, metrics/traces, config, database state, and deployment history.
  4. Reproduce: find the smallest reliable reproduction. If reproduction is not possible, say so and continue from the strongest observed evidence.
  5. Localize: narrow the failure to a component, boundary, data path, config path, recent change, or external dependency.
  6. Mechanism: explain the concrete code path or system path that produces the symptom. Cite files/lines or observed data.
  7. Root cause: name the bad assumption, missing invariant, design gap, process gap, or dependency behavior behind the mechanism.
  8. Fix options: propose the smallest safe fix, any broader cleanup worth considering, and the test/monitoring check that prevents recurrence.

If the mechanism is evident within the first evidence pass, collapse the remaining steps and go straight to the Output — do not manufacture an investigation. Fan out subagents for broad evidence sweeps; when an external reviewer is available (skill: second-opinion; prefer the Codex companion when the evidence lives outside the repo — nitpicker's tools are repo-only), use it for a second opinion on a contested mechanism.

Evidence Map

Before collecting remote evidence, write a short map:

  • Signal: reproduction, local logs, test output, app logs, traces/spans, metrics, deploy history, config, database state, queue/job state, external API response, browser replay, or user report.
  • Location: local workspace, CI, GitHub, Sentry, logging backend, metrics backend, Kubernetes/cloud runtime, database, message queue, browser/devtools, vendor dashboard, or user-provided artifact.
  • Tool/access: exact command, CLI, MCP, dashboard, API, SQL query, log query, or skill to use. Load a more specific skill when available, e.g. sentry-cli for Sentry.
  • Selector: exact ID, error text, endpoint, trace ID, commit, release, environment, host/pod, customer-safe identifier, or time window.
  • Gap: unavailable access, missing telemetry, retention limits, or data that would distinguish surviving hypotheses.

Investigation Mindset

  • Separate symptom, trigger, and root cause.
  • Prefer correlated evidence over single-event guesses: exact event, nested cause, sibling logs/traces, nearby aggregates, deploy/config state, and relevant source code.
  • Determine whether the failure is isolated, bursty, release-correlated, environment-specific, or systemic.
  • If the likely root cause is runtime configuration, inspect repo defaults and environment-specific values before proposing code changes.

Evidence Priority

When sources disagree, prefer evidence in this order:

  1. Observed reproduction, logs, traces, runtime state, and failing/passing command output.
  2. Current code and tests.
  3. Git/GitHub history, deployment history, and rollout/config records.
  4. Docs and web sources.
  5. Model memory.

Record unresolved conflicts instead of smoothing them over.

Why Ladder

Use these questions as a guide, not a template to fill mechanically:

  1. Why did the user-visible symptom happen?
  2. Why did this component or boundary allow it?
  3. Why did the code, data, or config take that path?
  4. Why was the bad assumption not enforced or tested?
  5. Why would this recur unless we change something?

Output

markdown
**Symptom:** ...

**Evidence map:** ...

**Evidence:**
- ...

**Mechanism:** ...

**Root cause:** ...

**Fix options:**
1. **Recommended:** ...
2. ...

**Validation:** ...

Rules

  • Do not propose fixes until the mechanism is understood, unless the user explicitly asks for a quick workaround.
  • Do not invent ground truth. If logs, Sentry, remote access, or metrics are unavailable, say so.
  • Prefer real reproduction and real data over speculation.
  • If multiple hypotheses survive, run the smallest experiment that distinguishes them or use dialectic on the leading claim.
  • Do not overfit to one observed failure. Fix the underlying mechanism generically.
  • If the root cause requires changing scope, design, API, data contract, or acceptance criteria, surface that as a separate decision rather than hiding it in a local fix.
  • Keep the investigation scoped to the symptom unless evidence shows a broader fault.

常见问题

Investigate AI 技能有什么作用?

以证据为先进行调试和根因调查。在提出修复方案前,适用于 Bug 排查、测试失败、事故、性能回退、间歇性故障、集成失败或原因不明的行为。

为什么在 TypingMind 中使用 Investigate?

因为您只需安装一次,就能搭配任何模型使用。Investigate 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Investigate?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/arsenyinfo/skills/tree/main/skills/investigate。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Investigate?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Investigate 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Investigate 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Investigate AI 技能免费吗?

arsenyinfo 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇