/godmode:researchfrom godmode
Gathers prior art and context before implementing features: scans codebase patterns, relevant dependencies, docs/ADRs, and git history. Writes a research.md for downstream skills.
Ships in godmode. 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.
None: SKILL.md is the whole skill.
/godmode:research, "research", "prior art", "existing patterns"/godmode:think for features touching >5 files or mentioning
an external library, framework, or standard by name.godmode/spec.md exists but think was stuckSkip for trivial tasks (one-line fixes, typos, renames) — go straight to the relevant skill.
RESEARCH QUESTION:
- Feature: <one sentence>
- What we want to know:
- What existing patterns in the codebase could we reuse?
- What dependencies already handle part of this?
- What docs/ADRs/RFCs describe constraints?
- What prior attempts exist in git history?
If the question is unanswerable in ≤10 minutes of scanning, narrow it
before continuing. Emit NEEDS_CONTEXT if ambiguous.
Dispatch the explorer subagent (read-only) with the research question.
Agent(
role: explorer,
task: "Find existing patterns, utilities, and prior code related to
{feature}. Map files, key symbols, and existing abstractions.
Return a codebase report under 80 lines.",
scope: read-only,
output: .godmode/explorer-report.md
)
Do NOT scan the codebase yourself — the explorer is optimized for this and keeps the research skill focused on synthesis, not search.
# Dependencies that might already solve part of the problem
grep -l "{keyword}" package.json pyproject.toml Cargo.toml go.mod \
Gemfile pom.xml 2>/dev/null
# Docs, ADRs, RFCs
ls docs/ 2>/dev/null
find . -maxdepth 3 -type f \
\( -name "CLAUDE.md" -o -name "AGENTS.md" \
-o -name "ARCHITECTURE.md" -o -name "RFC*.md" \
-o -iname "*adr*" \) 2>/dev/null
# Prior attempts in git history
git log --all --oneline --grep="{keyword}" 2>/dev/null | head -20
Record relevance for each hit. Skip hits with no relevance.
For each source, write one line:
- <path|package|commit> | <relevance: HIGH|MED|LOW> | <1-sentence takeaway>
If all sources are LOW relevance, record "no prior art" and note the gap.
Format (under 60 lines total):
# Research: {feature}
## Existing patterns
- {path}:{lines} — {what's there, why it matters for this feature}
## Relevant dependencies
- {package} — {which capability we could reuse}
## Related docs
- {path} — {what constraint or decision it records}
## Prior attempts
- {commit_sha} {subject} — {what was tried, why it was reverted/abandoned}
## Gaps
- {what we DON'T have that think must design from scratch}
## Recommended starting point for think
- {one-line pointer: "extend existing X" / "new module under Y" / "greenfield"}
git add .godmode/research.md
git commit -m "research: {feature} — {N} patterns, {N} deps, {N} gaps"
Research output is append-only per feature. Previous research files for other features are never rewritten.
think spec — research.md
is the source of truth for prior art; think references it by filename.DONE_WITH_CONCERNS and recommend skipping think for that path.think..godmode/research.md and .godmode/explorer-report.md.KEEP if: research.md has at least 1 HIGH-relevance hit OR 1 gap identified
DISCARD if: research.md is empty or every hit is LOW relevance
On empty: skip research phase, emit "no prior art — proceed to think"
(this is a valid outcome, not a failure)
STOP when FIRST of:
- research.md written, committed, under 60 lines
- explorer returns empty twice (scope too narrow)
- >10 dependencies examined with 0 HIGH-relevance hits
- explorer emits NEEDS_CONTEXT (re-dispatch with narrower query max 2x,
then stop)
Research: question={feature}, patterns={N}, deps={N}, docs={N}, gaps={N}.
Research: wrote .godmode/research.md ({N} lines).
Research: recommended starting point — {greenfield|extend|reuse-existing}.
Append to .godmode/research-log.tsv:
timestamp feature patterns deps docs gaps starting_point lines
| Failure | Action |
|---|---|
| explorer returns nothing | Narrow question, retry once. Second empty = no prior art, proceed. |
| research.md >60 lines | Drop LOW-relevance hits. If still >60, the question is too broad. |
| All hits LOW relevance | Record "no prior art" and commit. This is a valid outcome. |
| git history scan very slow | Cap to last 500 commits. Note the cap in research.md. |
The think skill should read .godmode/research.md at the start of its
Step 2 (Scan Codebase) if the file exists. Think uses the research output
to avoid re-scanning and to anchor its 2-3 approaches in existing
patterns rather than proposing greenfield abstractions.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
prior-art, context-gathering, codebase-scan, ecosystem-scan, research
Claude Code installs this plugin but refuses to load it
hooks/hooks.json: hooks.json declares PreToolUse/PermissionRequest at its top level, outside the "hooks" object — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
hooks/hooks.json: hooks.json declares PreToolUse/PermissionRequest at its top level, outside the "hooks" object — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
Checked against Claude Code 2.1.332. The listing below is what the repository ships; Claude Code doesn't load it as published.
135 skills in this plugin
/a11yAccessibility. WCAG 2.1 AA/AAA, a11y audit, color contrast, keyboard navigation, screen reader, Axe, Pa11y, Lighthouse./agentAI agent development. ReAct/plan-and-execute/multi-agent architectures, tool design, memory systems, guardrails, orchestration (LangChain, LlamaIndex, CrewAI, AutoGen)./analyticsProduct analytics implementation — event tracking, funnel analysis, A/B testing, Segment/Amplitude/Mixpanel/PostHog, privacy-compliant instrumentation./angularAngular architecture. NgRx, Signals, RxJS, standalone components, lazy loading, dependency injection, Jasmine, Jest.Other plugins' skills for the same job