/simpleapps:investigate [wip/GH14-slug.md]from simpleapps
Load a WIP file, read the wiki, explore the codebase, and update the WIP with research findings and suggestions. No code changes.
Ships in simpleapps. Installing the plugin adds it to Claude Code.
First, use Skill("wiki-conventions") to load the project wiki for codebase context, then Skill("project-defaults") for directory layout, then Skill("github") for GH conventions, then Skill("writing-style") for naming and documentation standards, then Skill("wip-conventions") for the WIP frontmatter schema, then Skill("work-habits") for autonomous execution rules and RFC 2119 compliance.
Investigate a WIP file. Explore the codebase, analyze the problem, and update the WIP with findings. MUST NOT make code changes.
Apply the "Branch hygiene before starting work" rule from simpleapps:work-habits. /investigate is research only. It does not write code, so the bar is low: nudge the user about the branch state, do the safe transition if needed, and proceed. The only pause condition is a dirty tree on a branch unrelated to this issue.
N from $ARGUMENTS if provided, or from the WIP filename (e.g., wip/GH367-…md → N=367)git -C repo branch --show-current → branch Bgit -C repo status --porcelain → tree state TB contains N: proceed (continuing investigation for this issue).B is main/master with T clean: proceed in place.B is a different issue branch (feat/M-…, M ≠ N) with T clean: nudge the user that you're switching off <branch> to main, switch, and proceed.T is dirty AND B does not contain N: pause and ask once. Surface the modified files, propose a path (commit on a branch, stash, discard), and proceed on the user's answer.If $ARGUMENTS is provided, read it directly as a relative path (e.g., wip/GH14-fix-oauth.md).
If no argument, run ls wip/ (Bash) to find all wip/*.md files (excluding the README.md index). If none exist, inform the user and suggest running /wip first. If only one exists, use it. If multiple exist, list them and ask the user which to investigate.
Read the WIP file. Extract:
Based on the problem statement, systematically investigate:
@simpleapps-com/augur-* packages, use Skill("augur-packages") to check if any package already provides the needed functionality. Sites MUST use augur package features before building custom solutions.find <dir> -name README.md or ls (Bash) to look for a colocated README.md or similar at the subsystem level (e.g., repo/src/helpers/README.md), and any per-item detail doc next to the specific thing you are investigating. Read them before going deeper into code. They were written to short-circuit exactly this kind of discovery. See simpleapps:wiki-conventions "Progressive Disclosure via Colocated Markdown" for the pattern.rg (preferred) or grep -rn/find via Bash to find files related to the problem. Use Agent with subagent_type=Explore for broader searches.repo/package.json for dependencies that may already solve the problem. Check if the project is duplicating functionality that a dependency provides.git -C repo log --oneline -10 -- <file> for recent changes to relevant filesdownload_attachment and read the content from the tool result (see simpleapps:basecamp "Attachments")Stopping condition: Stop when you can describe the root cause, identify the files to modify, and propose an approach. You do not need to understand the entire system, just enough to act. Investigate until you can inform implementation decisions, then write up findings and stop. Prefer using existing package functionality over custom code.
Use Edit to update the WIP file with findings.
Per simpleapps:wip-conventions, bump last_reviewed to today (date +%Y-%m-%d) and, if status is open, flip to in-progress. If the file has no frontmatter (legacy), add the full block per the schema before editing sections. Keep shipped_at, pr, and disposition untouched unless the ground truth has changed (e.g., issue is already closed, then reconcile per the simpleapps:wip-conventions skill).
/wip extracted the explicit asks from the source. Add the implied ones now, since this is the first step with the wiki and the codebase loaded: what a reasonable developer on this project would expect but the source did not spell out (e.g. "add a field" implies visible, saveable, and validated).
_(inferred)_ so it gets the scrutiny it deserves/wip extracted from the sourceReplace _Investigation notes go here._ with structured findings:
Populate the table with specific files and what changes each needs:
| File | Changes |
|------|---------|
| `path/to/file.ts` | Description of what needs to change |
## Analysis
### Root cause
{What is actually causing the problem}
### Suggested approach
{Recommended implementation strategy}
### Alternatives considered
{Other approaches and why they're less suitable}
### Risks
{What could go wrong, edge cases, breaking changes}
Tell the user:
/discuss to align on approach, or /implement if the plan is clearFiles this command reads when invoked
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub simpleapps-com/augur-skills --plugin simpleapps25 commands in this plugin
/audit-augur-packagesAudit site for custom code that duplicates augur package functionality/commit-messageGenerate a conventional commit message from staged changes/context-auditDetailed breakdown of what is consuming the context window: CLAUDE.md, rules, skills, wiki, and budgets. Use when the built-in /context overview isn't enough.Other plugins' commands for the same job