/tstack:investigatefrom tstack
Find the root cause of a failure before fixing it. This skill MUST be used when a bug's cause is unknown or the user asks for root-cause analysis, and SHOULD be used for unexplained failures, regressions, flaky behavior, a red CI pipeline, an error that recurs, or an expected result that never appeared. It MUST NOT be used for failures outside software and its systems, and MUST NOT treat an apparently obvious cause as confirmed without evidence. When evidence already establishes the cause, go to verification and repair without restarting the investigation, unless the task is only to find the cause. Triggers on: 根因調查, 為什麼會這樣, 壞掉了, 怎麼又, 還是不行, CI 紅燈, pipeline 失敗, failing, broken, flaky
Ships in tstack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
No fix without understanding the root cause. Use verified evidence to explain how the cause produces the symptom. An apparently obvious cause still needs verification; an already established cause does not need a new round of hypotheses.
Claims in the investigation and its report follow the core's Evidence for Claims: name the check behind every conclusion, and keep an unverified cause labeled as a hypothesis.
Gather the following from the report, available logs, project configuration, and prior attempts. Ask only for missing information that materially affects the investigation:
When the symptom matches a row in references/common-checks.md, run that row's check before forming hypotheses.
Propose plausible causes supported by the available evidence. Rank them by evidential support and explain the uncertainty without inventing percentages or padding the list to a fixed count. For each hypothesis, identify a discriminating check:
Hypothesis: [possible cause]
Evidence: [observations supporting it]
Would rule it out: [contradicting observation]
Next check: [how to obtain evidence that distinguishes it from alternatives]
Common categories:
A user's belief that an area cannot be at fault affects investigation priority, but does not itself rule out that area.
Prefer existing logs, a debugger, configuration inspection, and controlled reproductions. Choose checks by their ability to distinguish causes, cost, and operational impact.
When observation is insufficient, use a reversible diagnostic change within the authorized scope. Record what changed, preserve existing work, and remove temporary instrumentation or restore diagnostic-only dependency changes after the check. Retain a diagnostic change only when it is intentionally part of the agreed fix.
| Hypothesis | Example check |
|---|---|
| A value is missing | Inspect it at the relevant boundary with a debugger or temporary targeted logging |
| Operations race | Compare operation timing and state transitions in a controlled reproduction |
| Configuration differs | Compare only relevant settings; redact secrets and prefer presence or equality checks for sensitive values |
| Dependency behavior changed | Compare relevant versions in an isolated reproduction without changing the shared environment |
Inspect source history for changes tied to the affected behavior and symptom onset. Follow relevant evidence rather than a fixed number of commits or days. Record the outcome of each check and revise or eliminate hypotheses.
Use the evidence to trace the affected path, checking hypotheses along the way:
[Request/Event enters at: ]
→ [Layer 1] — state here: [what you found]
→ [Layer 2] — state here: [what you found]
→ [Where behavior diverges from expected] — state here: [what you found]
→ [Where the symptom manifests]
Identify the earliest verified point where actual behavior diverges from expected. Cite the exact file and line when applicable, explain how it causes the symptom, and continue tracing upstream until earlier causes are ruled out. Steps 2–4 can inform one another as new evidence appears.
Fix the verified root cause under the core's Fixing at the cause. Before editing, explain the cause and why the proposed change resolves it. Mention related unresolved problems only when they affect the user's outcome or the scope of this fix.
Add the regression test required by the core's Regression Tests. Commit under Staging and Commits.
Repeat the original reproduction with the fix and verify the regression coverage before and after it. Run relevant checks for affected behavior and follow the project's full-suite rules. Confirm temporary diagnostic changes have been cleaned up or intentionally retained.
If the symptom persists, use the observed result to revisit the hypothesis and data flow. Another fix attempt needs what the core's Evidence for Claims requires of a retry; otherwise go to Step 7.
Pause affected repair attempts when the next one fails that same requirement, repeats a disproven guess, or needs unavailable information, access, expertise, or authorization. Continue independent investigation that can safely produce new evidence.
Report the actual blocker and a concrete next step:
Blocked investigation: [what cannot currently be established]
Attempts and observations:
- [check or fix attempted, what changed, and observed result]
Current understanding:
[confirmed facts, remaining hypotheses, and what is uncertain]
Missing evidence or access:
[what is needed to distinguish the remaining causes]
Recommended next step:
[specific check, information request, or authorized action]
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub timlai666/tstack --plugin tstack13 skills in this plugin
/acceptance-reviewCheck finished work against what was originally asked: every requirement is matched to a result that was actually exercised, and the original problem is shown to be solved. This skill MUST be used before reporting substantial work as done or handing it back, and when the user asks whether the result meets the request. Work this conversation produced MUST be checked by an independent reviewer who is not given the implementer's summary. It MUST NOT be used outside software engineering work, and MUST NOT replace diff-review, security-scan or test-and-fix. Triggers on: 驗收、有沒有做到、有沒有符合需求、有沒有解決問題、做完了嗎、acceptance review/agent-delegationRules and script for handing work to a subagent or another CLI (OpenCode, Antigravity, Copilot, Codex, Claude). This skill MUST be loaded before dispatching any subagent or CLI, even for a small task, and before changing an existing API's name, signature, usage or behavior. New delegation MUST go through scripts/dispatch.py and its task-local levels, and MUST NOT skip tools based on earlier turns. It MUST NOT be applied to work that is not software engineering. A main agent MUST NOT dispatch through its own CLI. A dispatched worker MUST NOT apply this skill or delegate further. Triggers on: subagent、派工、分工、antigravity、agy、opencode、copilot、codex、誰來寫、用哪個模型、介面變更Other plugins' skills for the same job