investigate
Skill3 starsChanged 8 months agoMITView on GitHub
Dispatch codebase investigation for a bead task. Resolves bead context, runs the research agent, and flags spec drift before implementation.
74 other projects use a version of this.
Adopted by
Most recently taken up by
- skycmoon/skillstheir own version, first seen Oct 6, 2026
- ku5ic/claude-kittheir own version, first seen Oct 6, 2026
- lohi-ai/babysittheir own version, first seen Oct 5, 2026
- blas1n/claude-skillstheir own version, first seen Oct 4, 2026
- HanksChen0110/skillstheir own version, first seen Oct 3, 2026
- linchpin/skillstheir own version, first seen Oct 2, 2026
Used with
Projects with it also use qa-only, document-release and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
AICreator-WindSkillqa-only
纯 QA 报告工具。只生成 bug 报告,不修复。
Also in 10 projects that use this
AICreator-WindSkilldocument-release
技术作家工具。更新项目文档。
Also in 9 projects that use this
ayudaySkillcso
Chief Security Officer mode. Performs OWASP Top 10 audit, STRIDE threat modeling, attack surface analysis, auth flow verification, secret detection, dependency CVE scanning, supply chain risk assessment, and data classification review. Use when: "security audit", "threat model", "pentest review", "OWASP", "CSO review".
Also in 7 projects that use this
ayudaySkillsetup-deploy
Configure deployment settings for /land-and-deploy. Detects your deploy platform (Fly.io, Render, Vercel, Netlify, Heroku, GitHub Actions, custom), production URL, health check endpoints, and deploy status commands. Writes the configuration to CLAUDE.md so all future deploys are automatic. Use when: "setup deploy", "configure deployment", "set up land-and-deploy", "how do I deploy with gstack", "add deploy config".
Also in 7 projects that use this
Kit4SomeSkillunfreeze
Also in 8 projects that use this
CodeWithBehnamSkillsetup-browser-cookies
Import cookies from your real browser (Comet, Chrome, Arc, Brave, Edge) into the headless browse session. Opens an interactive picker UI where you select which cookie domains to import. Use before QA testing authenticated pages.
Also in 7 projects that use this
- +4 more from AICreator-Wind
- +1 more from ayuday
Other versions74 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 74
- vercel/eve★ 5.5ksame name
- cyrusagents/cyrus★ 846same name
- blueberrycongee/termcanvas★ 406same name
- Houseofmvps/ultraship★ 123same name
- no-session/pstack★ 122same name
- mr-daedalium/ostack-saas★ 114same name
- Dimon94/skills★ 107same name
- dlupiak/claude-session-dashboard★ 71same name
- alamops/skills★ 52same name
- AICreator-Wind/gstack-openclaw-skills★ 44same name
64 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository21 other files it gives its agents.
- skills/setup/templates/AGENTS.mdAGENTS.md
- skills/setup/templates/CLAUDE.mdCLAUDE.md
- add-supervisorSkill
- architectureSkill
- core-loopSkill
- doSkill
- implementationSkill
- manifestoSkill
- planSkill
- productSkill
- qualitySkill
- requirementsSkill
- researchSkill
- reviewSkill
- setupSkill
- specificationSkill
- specSkill
- subagents-disciplineSkill
- tasksSkill
- updateSkill
- workflowSkill
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 4 are distinctive, and 8 are very specific to this project.
0
Common
Most of the 64 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
Run codebase investigation on a bead task before implementation.
- Very specific: line 14
If the user provides $ARGUMENTS, check if it contains a bead ID (e.g., bd-a3f, bd-001.2).
- Distinctive: line 16
If bead ID provided: use it directly.
- Very specific: line 19
Run bd ready --json to get unblocked tasks
- Very specific: line 26
Check for existing investigation: Read bead comments: bd comments {BEAD_ID}.
- Very specific: line 45
Read the epic: bd show {EPIC_ID} --json
- Distinctive: line 47
Read the design doc content — this is the implementation contract
- Very specific: line 65
After the research agent completes, read the investigation comment: bd comments {BEAD_ID}
- Very specific: line 69
Ask: "Spec drift detected.
- Very specific: line 70
If user chooses (1) → stop and recommend /spec
- Very specific: line 71
If user chooses (2) → inform user to run /do {BEAD_ID} with drift noted
- Distinctive: line 72
If user chooses (3) → stop
“Common” is measured: kept by at least 6 in 10 of the 64 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Investigate
Run codebase investigation on a bead task before implementation. Dispatches the research agent to analyze the task context, trace code paths, and flag spec drift.
<on-init>
If the user provides $ARGUMENTS, check if it contains a bead ID (e.g., `bd-a3f`, `bd-001.2`).If bead ID provided: use it directly.
If no bead ID provided:
- Run
bd ready --jsonto get unblocked tasks - Present the list showing: ID, title, priority, and labels
- Pick by order and priority; if unclear, ask the user
</on-init>
<on-check>
1. **Bead must exist.** Validate with `bd show {BEAD_ID} --json`.
2. **Check for existing investigation.** Read bead comments: `bd comments {BEAD_ID}`. Search for a comment containing `INVESTIGATION:`.
</on-check><on-check-fail if="bead">
Bead does not exist. Inform the user and stop.
</on-check-fail><on-check-fail if="investigation_exists">
An investigation already exists for this bead. Show the existing findings and ask:
"An investigation already exists. Do you want to (1) re-investigate, or (2) proceed to `/do` with the existing findings?"
</on-check-fail><on-execute>Step 1: Read Full Bead Context
- Parse bead JSON. Extract:
description,acceptance,design,notes,status,parent,labels - If bead is an epic child (BEAD_ID contains a dot, e.g.,
bd-001.2):- Extract EPIC_ID: the part before the first dot (e.g.,
bd-001) - Read the epic:
bd show {EPIC_ID} --json - Extract the design doc path from the epic if available
- Read the design doc content — this is the implementation contract
- Extract EPIC_ID: the part before the first dot (e.g.,
- Store all context for the dispatch prompt
Step 2: Dispatch Research Agent
Dispatch using exactly these parameters — no more, no less:
Agent(
subagent_type="research",
prompt="Investigate BEAD {BEAD_ID}. [Include EPIC_ID if epic child]. Read the bead (bd show {BEAD_ID}) for full context — description, acceptance criteria, and design notes. Read the spec and plan referenced in the bead's external-ref or spec-id fields. If the spec has a Research Findings section, spot-check 2-3 assumptions against the current codebase. Flag any SPEC_DRIFT in your investigation comment. Log your structured findings as a bead comment using bd comments add."
)Do NOT add extra parameters unless the user explicitly requests it.
Step 3: Handle Spec Drift
After the research agent completes, read the investigation comment: bd comments {BEAD_ID}
If SPEC_DRIFT found:
- Present the drift to the user clearly
- Ask: "Spec drift detected. Do you want to (1) update the spec first with
/spec, (2) proceed to/doanyway with known drift, or (3) skip this task?" - If user chooses (1) → stop and recommend
/spec - If user chooses (2) → inform user to run
/do {BEAD_ID}with drift noted - If user chooses (3) → stop
If no SPEC_DRIFT → inform user investigation is complete.
</on-execute><on-complete>
1. Show the investigation summary from the bead comments
2. Report spec drift status (clean or drift detected)
</on-complete><on-next>
Recommend proceeding with `/do {BEAD_ID}` to dispatch the implementation supervisor.
</on-next>Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

