investigate
Investigation flow. Takes a question about the system (why does X happen, where does Y live, is Z feasible, what broke) and returns a verified written answer with evidence. Read-only end to end, no branch, no code change, no pull request. Use when asked to investigate, diagnose, explain behaviour or assess feasibility, or on /investigate <question>.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 3
- Forks
- 0
01 前言 Front Matter
- name
- investigate
- description
- Investigation flow. Takes a question about the system (why does X happen, where does Y live, is Z feasible, what broke) and returns a verified written answer with evidence. Read-only end to end, no branch, no code change, no pull request. Use when asked to investigate, diagnose, explain behaviour or assess feasibility, or on /investigate <question>.
03 SKILL.md 正文
investigate: question in, verified answer out
Read-only, end to end. If the fix becomes obvious mid-flight, the finding becomes the spec for the task funnel; you do not edit files here. An investigation that quietly turns into a change skips triage, tests and review, which is every gate the funnel has.
Input: the question after the command. Empty, ask what to investigate and stop.
Stage 1 · Sharpen the question
Restate the question and state what evidence would settle it. If you cannot say what would settle it, ask and stop. Fanning out on a vague question buys file dumps, not an answer.
Stage 2 · Fan out, read-only, in parallel, in one message
Each subagent gets the full question, because it inherits nothing, plus one angle:
- code path, where it lives, who calls it, what it returns
- data, schema, migrations, what the rows actually allow
- history,
git logandgit blame, the tracker, why it is the way it is - runtime, config, environment, scheduled jobs, webhooks, external services
Skip the angles the question obviously does not touch. Two is a normal number,
and the concurrency ceiling is kit config get .maxParallelAgents (with no kit on
PATH, ${CLAUDE_PLUGIN_ROOT}/scripts/kit).
Every claim a subagent returns is tagged MEASURED, with the command and its output, or INFERRED.
Stage 3 · Verify
An INFERRED claim that bears on the conclusion is measured before the report: run, or dispatch, the one command that would prove it. Two angles disagreeing is resolved by measuring, never by picking the more plausible one. An inherited claim is not a fact.
Stage 4 · Deliver
- The answer in short prose, conclusion first, evidence after it.
- Tied to an existing issue, post it as a comment on that issue, in the language the rest of the tracker uses.
- Out-of-scope findings discovered along the way become new issues, the way the repo's pipeline document says to open them. Never code.
- If the fix is then asked for, hand the finding to the task funnel as its spec.
Token rules
- No worktree and no dependency install. Nothing here writes, so nothing here installs.
- You hold conclusions, not file dumps. Subagents read, you consolidate.
- One MEASURED claim beats a paragraph of maybes. The command's output is cheaper than a wrong conclusion re-litigated across the session.
04 同仓库更多 Skills
task
Delivery funnel for one repository task: a feature, bug fix, refactor or chore, from description or issue number to a pushed branch and a draft pull request with the board moved. Use whenever the user asks, in any language, to implement, fix, build, change or refactor something in this repository, including requests like "fix this and leave it ready for a PR", "open a pull request for", or a bare issue number, and a one-line change the user dictates, calls urgent or says is already approved, and on /task <description | issue number>. Not for questions about why something happens: that is investigate. Every path, gate command and board id comes from .claude/funnel.config.json, so this runs on any stack.
ship
Takes work that is already implemented and committed on a branch and ships it: runs the repo's ship gates off receipts, pushes, opens a draft pull request, moves the board to in review, and removes the worktree. Use when the code exists and the task is to get it reviewable, or on /ship, and not when anything still needs writing.
review
Reviews a diff, branch, commit or pull request this session did not write and returns only the Critical and Important findings that survive an attempt to refute them, each with the input and the wrong output. Use when asked, in any language, to review, check or look over a diff, a branch, a commit or a pull request, or on /review. Not for a change the task funnel is writing: it reviews that with its own agents.
note
Writes one durable fact into a markdown knowledge vault, with the frontmatter and the provenance that keep it checkable, then reindexes so search can find it. Use when something learned in a session has to outlive it, or on /note <the fact>, and not for what the repo already records.
backlog
Grooms an open backlog before the next task is picked: finds issues that are the same work, adopts orphans into the epic they belong to, and proposes what can ship in one pull request. Read-only until the user approves each move. Use when the board feels like it only grows, before planning a sprint or picking the next issue, or on /backlog [epic-number].