From praxis
Research phase of RPI methodology. Spawns parallel subagents for codebase exploration AND web/pattern research, then synthesizes findings for user review. Produces a temporary research artifact at .light/sessions/ and transitions into plan mode. Use before implementing non-trivial features to understand what already exists.
How this skill is triggered — by the user, by Claude, or both
Slash command
/praxis:researchThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
**RPI Phase 1 of 3:** Research → Plan → Implement
RPI Phase 1 of 3: Research → Plan → Implement
Use this skill at the start of non-trivial features to explore the codebase AND research external patterns before planning or implementing.
Receives: User's feature description (or codebase context from previous conversation)
Produces: Temporary research artifact at .light/sessions/{topic}-research.md (~200 lines)
Hands off to: Plan mode — entering plan mode is the context compaction boundary where draft behavior activates
The Research phase prevents thrashing and discovers constraints early by:
Output: Temporary research artifact (~200 lines) at .light/sessions/{topic}-research.md
Use this skill when:
Don't use for:
| Depth | Codebase Agents | Web Agents | When to Use |
|---|---|---|---|
| Quick | 2-3 | 0-1 | Well-understood pattern, single codebase area, no external unknowns |
| Standard | 3-4 | 1-2 | Multiple codebase areas affected, some external patterns to validate |
| Deep | 4-5 | 2-3 | Unfamiliar domain, new technology, multiple integration points |
Choosing depth: Infer the appropriate depth from the user's prompt using these signals:
| Signal | Points toward |
|---|---|
| User names a specific file or function to change | Quick |
| Feature touches one module with known patterns | Quick |
| Feature spans multiple modules or layers | Standard |
| User mentions a library, API, or pattern they haven't used before | Standard or Deep |
| Feature involves new technology, unfamiliar domain, or architectural change | Deep |
| User explicitly says "quick look" or "just check" | Quick |
| User explicitly says "deep dive" or "thorough" | Deep |
Not all research needs web agents. If the feature is purely internal (no new libraries, APIs, or unfamiliar patterns), skip web research entirely and dispatch only codebase agents.
When uncertain, ask the user with AskUserQuestion — briefly explain what you'd investigate at each level and let them choose. Do NOT default to a deeper level than the prompt warrants.
Ask the user to clarify the research scope if needed:
Based on the chosen depth, decompose the scope into:
CRITICAL: Dispatch ALL agents in a SINGLE message using multiple Task tool calls with run_in_background: true.
Two agent types — see agent prompts for full templates:
Codebase Explorer (subagent_type: Explore)
Web Researcher (subagent_type: general-purpose)
TaskOutput block: false to check progressTaskOutput block: trueCross-reference codebase patterns against web findings:
Write the research artifact immediately to disk:
.light/sessions/{topic}-research.md
Use the research artifact template. Target ~200 lines. Use kebab-case for the topic slug — make it descriptive of the feature (e.g., add-discount-codes, user-auth-refresh-tokens).
REQUIRED — Do not skip this step.
Check if plannotator is available:
Bash: plannotator --version
If plannotator is available:
Run plannotator annotate .light/sessions/{topic}-research.md via Bash. This opens the artifact in a browser annotation UI and blocks until the user submits.
Write, then re-run plannotator annotate on the same file. Repeat until empty annotations.If plannotator is not available (command not found):
Fall back to AskUserQuestion: present a summary of key findings (3-5 bullet points) and the artifact path. If the user requests edits → update the artifact with Write, then ask again. Repeat until approved.
Use AskUserQuestion to present the following options:
Research complete. Artifact saved: `.light/sessions/{topic}-research.md`
What would you like to do next?
1. Enter plan mode — begin planning (recommended)
2. Request more research — describe what else to investigate
3. Edit the artifact — describe changes and I'll update it
Replace {topic} with the actual artifact path.
EnterPlanMode. This transitions into the planning phase where draft behavior activates. The plan mode entry IS the context compaction boundary — it replaces the old /clear ritual. The research artifact at .light/sessions/ will be read during planning.Write, then re-present Step 6 options.After entering plan mode, STOP. Draft behavior takes over inside plan mode.
Why research first? The research phase is a compaction point:
npx claudepluginhub 8thlight/lightfactory --plugin praxisExplores codebase topics by searching prior knowledge and conducting multi-angle analysis, outputting structured findings. Supports /research command and optional auto mode.
Orchestrates a full research-plan-implement pipeline using parallel subagents, each in its own context window, with file artifacts as the communication channel between phases.
Researches codebases in Phase 1: analyzes architecture, patterns, risks on existing projects; or investigates tech stack, conventions, data-model on zero-base projects using WebSearch + Context7.