Explore

From juicesharp/rpiv-pi · View interactive version

Explore is an AI agent skill from the GitHub repository juicesharp/rpiv-pi. Analyze solution options for features or changes. Compares approaches with pros/cons and provides recommendations. Produces documents in thoughts/shared/solutions/. Use when multiple valid approaches exist.

How to use this skill

Skill file

Research Solutions

You are tasked with analyzing solution options for new features or changes by invoking parallel skills and synthesizing their findings into actionable recommendations optimized for design consumption.

Initial Setup:

When this command is invoked, respond with:

I'm ready to research solution options. Please provide:
- What feature/change you want to explore
- Any requirements or constraints you know about
- Reference to relevant ticket or research documents if available

I'll analyze the current codebase, generate solution options, and provide recommendations.

Then wait for the user's request.

Steps

Step 1: Read Mentioned Files

Step 2: Generate Candidates and Dimensions

Generate 2–4 named candidates from three sources, then merge into one shortlist:

Merge to 2–4 candidates total. Name each with a short noun phrase ("TanStack Query", "Direct event bus"). Deduplicate.

Default dimension list (presented at Step 3; developer may drop irrelevant ones):

Hold the candidate set and default dimension list in working state for the Step 3 checkpoint. Do not dispatch fit agents yet.

Step 3: Candidate Checkpoint

Present the candidate set and default dimensions to the developer before per-candidate fit dispatch.

  1. Show candidates and dimensions:

```

## Candidates for: [Topic]

1. [Candidate A] — [one-line what it is]

2. [Candidate B] — [one-line what it is]

...

Dimensions (default 6; drop any that don't apply):

```

  1. Confirm via the ask_user_question tool with the following question: "[N] candidates, [D] dimensions. Begin per-candidate fit dispatch?". Header: "Candidates". Options: "Proceed (Recommended)" (Begin per-candidate fit dispatch with all [N] candidates and all [D] dimensions); "Adjust candidates or dimensions" (Rename, add, or drop candidates; drop dimensions that don't apply); "Re-generate candidates" (Candidates look wrong — re-run Step 2 with adjusted scope).
  1. Handle developer input:

"Proceed": lock the candidate × dimension set; advance to Step 4.

"Adjust candidates or dimensions": ask the follow-up free-text question with prefix ❓ Question: — "Which candidates and dimensions should be added, dropped, or renamed?" — apply edits to the working set, re-present, and confirm again with the same three-option ask_user_question.

"Re-generate candidates": ask the follow-up free-text question with prefix ❓ Question: — "What should be different in candidate generation? (narrower/wider scope, different ecosystem, exclude approach X, …)" — return to Step 2 with the updated scope, then re-enter Step 3.

Loop until "Proceed" is selected.

Step 4: Per-Candidate Fit Dispatch (parallel agents)

For each confirmed candidate, dispatch up to two agents in parallel — total ≤ 2 × N agents:

Skip either agent for a candidate when no dimension of that anchor-type was kept. Hybrid dimension approach-shape is scored by the orchestrator after both agents return, by combining their per-candidate findings.

Per-candidate prompt shape (use the same outer template, fill in candidate name and kept dimensions):

Candidate: [name] — [one-line what it is]
Topic: [topic from Step 1]

Score this single candidate on the following dimensions, each with concrete evidence ([file:line] for codebase, doc/source link for external). Report findings as one section per dimension.

Dimensions for this run:
- [dimension name] — [one-line of what to look for]
- ...

Do NOT compare against other candidates; another agent handles each one separately. Focus on depth of evidence for THIS candidate.

Wait for ALL agents to complete before proceeding.

Coverage check: every (candidate × kept-dimension) cell is filled — by an agent's evidence or by an explicit null ("does not apply to this candidate"). Cells silently dropped indicate a missing dispatch — re-run that candidate's agent.

Step 5: Synthesize and Recommend

Step 6: Determine Metadata and Filename

Step 7: Generate Solutions Document

```markdown


date: [Current date and time with timezone in ISO format]

researcher: [Researcher name]

git_commit: [Current commit hash]

branch: [Current branch name]

repository: [Repository name]

topic: "[Feature/Problem]"

confidence: high | medium | low

complexity: low | medium | high

status: ready | awaiting_input | blocked

tags: [solutions, component-names]

last_updated: [Current date in YYYY-MM-DD format]

last_updated_by: [Researcher name]


# Solution Analysis: [Feature/Problem]

Date: [Current date and time with timezone from step 6]

Researcher: [Researcher name from step 6]

Git Commit: [Current commit hash from step 6]

Branch: [Current branch name from step 6]

Repository: [Repository name]

## Research Question

[Original user query]

## Summary

Problem: [What we're solving]

Recommended: [Option name] - [One sentence why]

Effort: [Low/Med/High] ([N days])

Confidence: [High/Med/Low]

## Problem Statement

Requirements:

Constraints:

Success criteria:

## Current State

Existing implementation:

[What exists with file:line references]

Relevant patterns:

Integration points:

## Solution Options

### Option 1: [Name]

How it works:

[2-3 sentence description + implementation approach]

Pros:

Cons:

Complexity: [Low/Med/High] (~[N] days)

### Option 2: [Alternative Name]

[Same structure as Option 1]

### Option 3: [Another Alternative]

[Same structure as Option 1]

## Comparison

| Criteria | Option 1 | Option 2 | Option 3 |

|----------|----------|----------|----------|

| Complexity | [L/M/H] | [L/M/H] | [L/M/H] |

| Codebase fit | [H/M/L] | [H/M/L] | [H/M/L] |

| Risk | [L/M/H] | [L/M/H] | [L/M/H] |

## Recommendation

<!-- Render exactly ONE of the two blocks below, based on Step 5's fit-filter outcome. -->

(A) When ≥1 candidate clears the fit filter:

Selected: [Option N]

Rationale:

Why not alternatives:

Trade-offs:

Implementation approach:

1. [Phase 1] - [What to build]

2. ...

Integration points:

Patterns to follow:

Risks:

(B) When every candidate fails the fit filter:

No-fit: every candidate surfaced a blocking concern on at least one kept dimension.

Per-candidate blockers:

Recommended next step:

Frontmatter overrides: set confidence: low and status: blocked.

## Scope Boundaries

## Testing Strategy

Unit tests:

Integration tests:

Manual verification:

## Open Questions

Resolved during research:

Requires user input:

Blockers:

## References

```

Step 8: Present Findings

Step 9: Handle Follow-up Questions

Important Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.