ralphex-adopt
Convert plans from various source formats (OpenSpec, spec-kit, GitHub/GitLab issues with…
Create structured implementation plan in docs/plans/
$ npx -y skills add umputun/ralphex --skill ralphex-plan --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/ralphex-planContext preview
The summary Claude sees to decide when to auto-load this skill.
Create structured implementation plan in docs/plans/
description: Create structured implementation plan in docs/plans/
Create an implementation plan in `docs/plans/YYYYMMDD-<task-name>.md` with interactive context gathering.
Check if ralphex CLI is installed (needed to execute the plan after creation):
which ralphex
**If not found**, inform user they'll need it to execute the plan:
Proceed with plan creation regardless, but remind user to install before execution.
Before asking questions, understand what the user is working on:
1. **Parse user's command arguments** to identify intent:
2. **Launch Explore agent** (via Task tool with `subagent_type: Explore`) to gather relevant context based on intent:
**For feature development:**
**For bug fixing:**
**For refactoring/migration:**
**For generic/unclear requests:**
3. **Synthesize findings** into context summary:
Show the discovered context, then ask questions **one at a time** using the AskUserQuestion tool:
"Based on your request, I found: [context summary]"
**Ask questions one at a time (do not overwhelm with multiple questions):**
1. **Plan purpose**: use AskUserQuestion - "What is the main goal?"
2. **Scope**: use AskUserQuestion - "Which components/files are involved?"
3. **Constraints**: use AskUserQuestion - "Any specific requirements or limitations?"
4. **Testing approach**: use AskUserQuestion - "Do you prefer TDD or regular approach?"
5. **Plan title**: use AskUserQuestion - "Short descriptive title?"
After all questions answered, synthesize responses into plan context.
Once the problem is understood, propose implementation approaches:
1. **Propose 2-3 different approaches** with trade-offs for each 2. **Lead with recommended option** and explain reasoning 3. **Present conversationally** - not a formal document yet
Example format:
I see three approaches: **Option A: [name]** (recommended) - How it works: ... - Pros: ... - Cons: ... **Option B: [name]** - How it works: ... - Pros: ... - Cons: ... Which direction appeals to you?
Use AskUserQuestion tool to let user select preferred approach before creating the plan.
**Skip this step** if:
Check `docs/plans/` for existing files, then create `docs/plans/YYYYMMDD-<task-name>.md`:
# [Plan Title] ## Overview - Clear description of the feature/change being implemented - Problem it solves and key benefits - How it integrates with existing system ## Context (from discovery) - Files/components involved: [list from step 0] - Related patterns found: [patterns discovered] - Dependencies identified: [dependencies] ## Development Approach - **Testing approach**: [TDD / Regular - from user preference in planning] - Complete each task fully before moving to the next - Make small, focused changes - **CRITICAL: every task MUST include new/updated tests** for code changes in that task - tests are not optional - they are a required part of the checklist - write unit tests for new functions/methods - write unit tests for modified functions/methods - add new test cases for new code paths - update existing test cases if behavior changes - tests cover both success and error scenarios - **CRITICAL: all tests must pass before starting next task** - no exceptions - **CRITICAL: update this plan file when scope changes during implementation** - Run tests after each change - Maintain backward compatibility ## Testing Strategy - **Unit tests**: required for every task (see Development Approach above) - **E2E tests**: if project has UI-based e2e tests (Playwright, Cypress, etc.): - UI changes → add/update e2e tests in same task as UI code - Backend changes supporting UI → add/update e2e t
Convert plans from various source formats (OpenSpec, spec-kit, GitHub/GitLab issues with…
Smart-merge updated ralphex defaults into customized prompts/agents