investigation-method
/investigation-method
Investigate an observed error, bug or strange behavior to a demonstrated cause, without fixing it: facts, perimeter from the map, isolated hypotheses, a reproduction test, bisection. TRIGGER WHEN: the user reports an error, regression or strange behavior whose cause is unknown and wants it investigated, a coordinator investigates a problem, or a bug fix starts without a known cause. DO NOT TRIGGER WHEN: assessing a change or artifact for defects (use review-method), or the root cause is already established with evidence.
- Author
- acaprino ↗
- Repository
- alfio-claude-plugins ↗
- Licence
- MIT
- Last repository change
- 27.10.2026
Assessment and security
- Files in this package
- 2
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 1
No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Investigate an observed error, bug or strange behavior to a demonstrated cause, without fixing it: facts, perimeter from the map, isolated hypotheses, a reproduction test, bisection. TRIGGER WHEN: the user reports an error, regression or strange behavior whose cause is unknown and wants it investigated, a coordinator investigates a problem, or a bug fix starts without a known cause. DO NOT TRIGGER WHEN: assessing a change or artifact for defects (use review-method), or the root cause is already established with evidence.
Original author description
Investigate an observed error, bug or strange behavior to a demonstrated cause, without fixing it: facts, perimeter from the map, isolated hypotheses, a reproduction test, bisection. TRIGGER WHEN: the user reports an error, regression or strange behavior whose cause is unknown and wants it investigated, a coordinator investigates a problem, or a bug fix starts without a known cause. DO NOT TRIGGER WHEN: assessing a change or artifact for defects (use review-method), or the root cause is already established with evidence.
How it works
- 1. Facts
- 2. Perimeter
- 3. Hypotheses
- 4. Reproduction
- 5. Bisection and runtime evidence
- 6. Verdict
SKILL.md preview
--- name: investigation-method description: > Investigate an observed error, bug or strange behavior to a demonstrated cause, without fixing it: facts, perimeter from the map, isolated hypotheses, a reproduction test, bisection. TRIGGER WHEN: the user reports an error, regression or strange behavior whose cause is unknown and wants it investigated, a coordinator investigates a problem, or a bug fix starts without a known cause. DO NOT TRIGGER WHEN: assessing a change or artifact for defects (use review-method), or the root cause is already established with evidence. --- <daodan_host_binding host="copilot"> This binding governs execution of this package and its loaded references. It takes precedence over executable examples written for another host. Use only registered tools and their actual input schema; an example never creates a tool, argument, permission, model alias or nested worker capability. Preserve the generated worker allowlist, dependency closure, scope and delivery contracts. Copilot binding: repository reads use search, writes use edit, shell execution uses runCommands and network fetch uses fetch in the adapter's tool allowlist. Custom agent dispatch uses the agent allowlist alias; the current CLI documents a task dispatch tool. Call the mechanism actually registered in this session, not an allowlist alias assumed to be a callable tool. Use each registered tool's input fields; Claude's subagent_type, role and run_in_background fields are not a portable dispatch schema. Dispatch only the custom agent named by the generated owner-qualified binding and agents allowlist. An omitted tools restriction retains host defaults; an explicit list constrains the worker and does not grant omitted shell, write or MCP tools. Skills use their exact installed registry identity; workflows are prompt entries. A dispatched workflow also has its generated <workflow>-coordinator custom agent. Required foreign providers use Copilot's marketplace/install commands: copilot plugin marketplace add <source>, then copilot plugin install <provider>@<marketplace>. Register plugin-declared MCP server commands in this host's MCP configuration as the generated note directs. Registration and a dependency declaration alone do not demonstrate that browser/server tools are callable by the selected worker. Inherit the active session's model and default variant. A source model alias such as sonnet is not a portable override; request a different model only through an explicit adapter mapping to a valid host identity and user authorization. Coordinator MCP allowances use <declared-server>/* for only the package's named servers. This requires actual server registration and tool discovery; it grants no undeclared server and does not prove MCP is callable in an installed run. Schema reference: https://docs.github.com/en/copilot/reference/custom-agents-configuration The executing agent and its coordinator own continuation, recovery, verification and delivery. Skills supply knowledge and method instructions; they are not executors or a runtime persistence mechanism. Resolve each component by kind and exact installed identity. A role is dispatched as a worker, a skill loads instructions, and a workflow starts its declared method. Kernel owner-qualified skill references are logical provider identities: resolve them to the actual host registry name and verified installed provider path. Do not invent a registry string by adding an owner's prefix when the host does not use it. Do not load an agent identity as a skill or execute a workflow name as a shell command. Declared required foreign providers remain mandatory. If a required provider or capability (including required MCP access or isolation) is unavailable, stop its dependent phase and report the missing capability. Optional external providers follow the method's declared selection and absence behavior; their absence alone does not block the base workflow. Report any explicitly requested but unavailable provider contribution as unfulfilled and continue independent work. Do not install a different host's plugin or substitute unrelated skills to claim coverage. Shell execution alone does not establish interactive stdin. Before a capture or checkpoint, use an available session-control mechanism. When stdin is unavailable, keep user-driven capture in a supported background process with bounded output and an explicit stop signal controlled by the coordinator after the user's completion message. Close owned browser/process resources on completion or cancellation. Continue working within the current authorization while the requested result is achievable. After a tool error, inspect its cause, correct the relevant input or implementation, retry when justified and verify the outcome; never repeat a failing action blindly. Do not close the turn with a promise or a partial result when an authorized next step can still produce or verify the requested result. Stop only for a documented real impediment, a missing required capability, an unresolved human decision or the caller's stop request. At that boundary, report completed results, remaining work and the concrete prerequisite for continuation; continue any independent work that the blocker does not prevent. A tool's successful exit, a worker stop or an idle session is not the deliverable. Return final text naming observed findings, artifact paths, executed checks and blockers. An empty worker result is missing delivery: inspect or resume that worker when permitted, or record failure. Verify required artifacts and candidate gates before marking the requested outcome complete. This is an execution binding, not a rewrite of source examples. Preserve programming language fences, domain code and host APIs that are the subject of marketplace-ops or agent-sdk-builder. A host-as-subject API is not a tool provided to this session. Compiled binding and static checks do not prove an installed host executed a run. </daodan_host_binding> # Investigation From an observed defect to the code and change that cause it; never an edit to product code. Load `work-controller:work-record`: a run with operation `investigate` that writes only under itself, plus the reproduction test. ## 1. Facts From the environment where it failed (the run's `environment`), collect the exact message, stack trace, logs and durations, the triggering input or steps, and the last known good commit, release or date. Read those logs first when available; without them, a local rerun counts only if it shows the same symptom. A round duration on every attempt (30.0x s) points to a configured timeout; record where it is set. Ask for what is missing one question at a time, or record it with the work record's `ask` and close the turn. Mark each fact `observed` (the user, a log, a run) or `derived`. ## 2. Perimeter From the stack and the named symbols, load `codebase-map:map-method` and take `snapshot.py edit-impact` for each. The suspects are the commits that touched the perimeter after the last known good (`git log --format='%h %an %ad %s' GOOD..HEAD -- PATHS`), or its last twenty without one. Without a map, a recorded gap, the perimeter comes from the stack and a search. ## 3. Hypotheses At most three, each with its mechanism (how this code produces the observed fact), trigger, refuting counterevidence, suspect commit and evidence class. Each goes to one isolated verifier, blind to the others, with only the facts, the perimeter and its own hypothesis: | Mechanism | Verifier | |---|---| | Timers, retries, scheduling, clocks | `senior-review:temporal-resilience-auditor` | | Persistence, transactions, caches | `senior-review:data-integrity-auditor` | | Statement cost, data volume, timeouts | `senior-review:sql-efficiency-auditor` | | Initialization order, startup | `senior-review:chicken-egg-detector` | | UI timing, layout, focus, scroll | `senior-review:ui-race-auditor` | | Handles, connections, locks, threads | `senior-review:resource-lifecycle-auditor` | | Calls and messages across services | `senior-review:distributed-flow-auditor` | | State, ordering, invariants | `senior-review:logic-integrity-auditor` | | Anything else | `senior-review:code-auditor` | The verifier's mandate is the hypothesis, not a hunt: `CONFIRMED` with the `file:line` chain from trigger to symptom, `REFUTED` with the contradicting `file:line`, or `UNCERTAIN` with what would settle it. A sharper hypothesis it proposes gets one more round, two at most. ## 4. Reproduction For the strongest surviving hypothesis, dispatch `testing:test-writer` for one minimal test that fails on the current code for the reason the hypothesis states, with the observed symptom (message, exception, timeout bound) at the data volume that decides it. A different failure on smaller or cached data is a second defect, not the reproduction. It sits where the fix will keep it, uncommitted and recorded in the run. With a suspect commit, it must pass on its parent, checked in a disposable worktree under the run. Without one the cause stays a hypothesis. ## 5. Bisection and runtime evidence With a last known good and no confirmed suspect, run `git bisect run` with the reproduction test in a disposable worktree under the run, never in the user's checkout. Execute only there or through the project's own runner: most verbose logging, temporary tracing, a test repeated a hundred times for a suspected race. No interactive debugger. Record every command with its output. ## 6. Verdict Write `investigation.md` in the run: facts, perimeter, each hypothesis with its verdict and evidence, the reproduction test with its failing output, the first bad commit, and one conclusion. `demonstrated`: confirmed and reproduced. `probable`: confirmed, not reproduced. `open`: the surviving hypotheses and what would decide each. Never a fix: a correction goes through the task cycle, with the reproduction test as its oracle.
Files in this package (2)
- SKILL.md 10 KB
- SKILL.toml 1 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · acaprino/alfio-claude-plugins | 95 | MIT |
| acaprino/daodan | 95 | MIT |
| acaprino/daodan | 95 | MIT |
| acaprino/daodan | 95 | MIT |
| acaprino/daodan | 95 | MIT |
| acaprino/alfio-claude-plugins | 95 | MIT |
| acaprino/alfio-claude-plugins | 95 | MIT |
| acaprino/daodan | 95 | MIT |
| acaprino/alfio-claude-plugins | 95 | MIT |
Database snapshot: 13.11.2026 · package version 1ad0e6bc0d1a (SHA-256 digest of the entire package)
Downloads in the last 30 days: 1 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100fix
Use when fixing a bug test-first: write a failing test to reproduce it, find the root cause, fix, and add a regression test. - 100debugging-playbook
Debug a reported bug step by step. Reproduce it, isolate the cause with logs, bisection and minimal cases, apply the smallest fix, then add a regression test that fails before the fix. Use when the user reports an error, stack trace, failing test, crash, wrong output, flaky… - 100tdd-fix
Use when fixing a bug test-first: write a failing test to reproduce it, find the root cause, fix, and add a regression test. - 100bug-investigation-notes
Keeps structured notes during a bug hunt: symptoms, repro steps, hypotheses with evidence, experiments, root cause, fix, and a regression test. Use when a developer is debugging, chasing a flaky test or production issue, wants to write up a bug they fixed, a postmortem, or a… - 100bug-investigation
Takes a defect from report to regression test without guessing: facts and blast radius first, safe reproduction, a test that fails without the fix, a root-cause fix, closure after a verified deploy. Use when given a stack trace, error-tracker link or issue ID, 'why does X… - 90systematic-debugging
Phase-based root cause investigation: reproduce, observe, hypothesize, bisect, verify. TRIGGER when: investigating a bug report, diagnosing unexpected behavior, or doing root cause analysis. SKIP: looking up a known error first (use sofa-search); writing the regression test (use…