Investigating
Use this when a question needs a durable investigation record, not just a chat answer.
Create The I Document First
Resolve {SKILL_DIR} to the directory containing this SKILL.md and
{PROJECT_ROOT} to the absolute active project root. Run the bundled script
by its absolute path with that project as the explicit target:
node "{SKILL_DIR}/scripts/codex-docs.js" investigation "topic" --topic="what is being investigated and why" --questions="Q1; Q2; Q3" --sources="Internet: TBD; Local: TBD; User-specified: TBD" --constraints="[Project] ...; [Inferred] ..." --project-dir="{PROJECT_ROOT}"
The script creates .crabshell/investigation/INNN-*.md and appends to .crabshell/investigation/INDEX.md.
Investigation Workflow
- Read the new I document before researching.
- Use at least two source types unless the user explicitly restricts scope:
- Internet or external documentation when current/public facts matter.
- Local files, code, tests, configs, or logs when project behavior matters.
- User-provided URLs/files when supplied.
- Fill
## Investigation Logwith separate workstreams. Each workstream needs evidence: commands, file paths, URLs, dates, or direct observations. - Fill
## Cross-Reviewbefore synthesis. Challenge the workstreams for contradictions, missing sources, stale facts, and weak evidence. - Fill
## Synthesisand## Conclusionsin the document before summarizing in chat. - In
## Conclusions, answer each question individually, include confidence level, and list remaining gaps.
The document update is the primary output. The chat response should be a short summary pointing to the I document.