跳到正文
cccskills
免费在 GitHub 公开

investigate

Bring past diagnoses to a bug before fixing it, record the new root-cause hypothesis, and close it as confirmed or refuted once the fix is verified. Use when a bug could come from more than one layer, or looks like something seen before.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md2.9 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Investigate

Cartographer's part of bug work is memory: what was diagnosed before, which hypotheses turned out wrong, and what finally fixed it. How to debug is left to you. This skill adds three steps around your own diagnosis.

Resolve ROOT from CARTOGRAPHER_ROOT, CLAUDE_PLUGIN_ROOT, or PLUGIN_ROOT; otherwise use this skill's base directory (../.. from skills/investigate).

1. Recall before diagnosing

Search for the symptom and for the files or components involved:

bash "$ROOT/scripts/cartographer-search.sh" "Investigated <symptom words>" --limit 10
bash "$ROOT/scripts/cartographer-search.sh" "<file or component name>" --limit 10

For each earlier investigation result, search its event id to find how it ended. An investigation_outcome event names it in its summary:

bash "$ROOT/scripts/cartographer-search.sh" "evt-abc123def456" --limit 5

Use --get <ids> for the full records. Report what bears on this bug, most of all hypotheses that were refuted for a similar symptom, and a confirmed cause that could be recurring. An investigation with no outcome is an open guess, not a finding. If nothing relevant comes back, say so in one line.

2. Record the hypothesis

Once you have a diagnosis worth testing, record it. It should name the cause, the mechanism that produces the symptom, and one observation that would disprove it.

jq -n -c --arg symptom "$SYMPTOM" --arg hypothesis "$HYPOTHESIS" \
  --arg layer "$LAYER" --argjson files "$FILES_JSON" \
  '{kind:"open", symptom:$symptom, hypothesis:$hypothesis, layer:$layer, files:$files}' \
  | bash "$ROOT/scripts/record-investigation.sh"

layer is optional (for example logic, state, boundary, validation, build); files is an optional JSON array of paths. Keep the printed event_id for step 3. The receipt reports the durable write and the index separately; if indexing failed, the record is still searchable by keyword.

3. Close it

After the fix is verified against the real failure, or the hypothesis is disproved, record the outcome:

jq -n -c --arg id "$EVENT_ID" --arg outcome confirmed --arg evidence "$EVIDENCE" \
  '{kind:"close", resolves:$id, outcome:$outcome, evidence:$evidence}' \
  | bash "$ROOT/scripts/record-investigation.sh"

outcome is confirmed, refuted, or abandoned. evidence is the observation that decided it: a log line, a measured value, a passing check on the real target. A refuted hypothesis is worth closing: it is the record that saves the next session from repeating it.

If the investigation continues in another session, step 1 finds the open record and its id there.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

carto

免费

Open the Session Cartographer Explorer web UI for visual browsing of Claude Code and Codex session history.

中文简介正在准备中。当前显示原文说明。

andyed/session-cartographer82026年10月18日 更新

focus

免费

Retired. Project orientation moved to the remember skill (`/remember --project <name>` with no query). Use remember instead.

中文简介正在准备中。当前显示原文说明。

andyed/session-cartographer82026年10月18日 更新

remember

免费

Recall past work across Claude Code and Codex sessions. Finds decisions, research, fixes, and conversations by intent; with only a project and no question, orients on that project's recent state.

中文简介正在准备中。当前显示原文说明。

andyed/session-cartographer82026年10月18日 更新

setup

免费

Diagnose or enable Session Cartographer semantic search in Codex, including least-privilege localhost access to local Qdrant and the embedding server. Use when setup, Qdrant health, localhost reachability, sandbox network denial, or semantic indexing is in question.

中文简介正在准备中。当前显示原文说明。

andyed/session-cartographer82026年10月18日 更新

standup

免费

Brief on concurrent sessions — who else is working, in which repos, on which files, and what landed underneath you. Use when a commit appears that you did not make, before touching a shared file, or when orienting mid-task in a busy workspace.

中文简介正在准备中。当前显示原文说明。

andyed/session-cartographer82026年10月18日 更新

trustmap

免费

Derive or update the auto mode `autoMode.environment` block from the event corpus — which repos, hosts, buckets, and CLIs your work actually touches.

中文简介正在准备中。当前显示原文说明。

andyed/session-cartographer82026年10月18日 更新

查看 andyed 的全部技能

报告此技能的问题