Agent skill

Hybrid Ralph

by Taoidle in Taoidle/plan-cascade

Hybrid architecture combining Ralph's PRD format with Planning-with-Files' structured approach.

MITAuto-check: notesProduct & Project Management

Install Hybrid Ralph

skills CLI
$ npx skills add Taoidle/plan-cascade --skill hybrid-ralph -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Taoidle/plan-cascade hybrid-ralph --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Taoidle/plan-cascade.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/hybrid-ralph .claude/skills/hybrid-ralph && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
hybrid-ralph
GitHub stars
133
Token cost
~4.1k tokens
SKILL.md length
1,183 words
Files
40 (incl. scripts)
Skills in repo
6
Repo updated
First seen
Licence
MIT

At a glance

Hybrid architecture combining Ralph's PRD format with Planning-with-Files' structured approach.

  • Works in 3 steps: Check if .hybrid-execution-context.md… → If YES → If NO but prd.json exists
  • Tasks that involve PRD writing
  • SKILL.md covers Auto-Recovery Protocol…, Quick Start, Architecture and Core Python Modules, plus 4 more sections
  • Runs Python scripts from its folder; calls uv

What it does

Hybrid Ralph is an agent skill from Taoidle/plan-cascade. Hybrid architecture combining Ralph's PRD format with Planning-with-Files' structured approach. Auto-generates PRDs from task descriptions, manages parallel story execution with dependency resolution, and provides context-filtered agents for efficient multi-story development.

Its SKILL.md is about 4.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 41 other files, including scripts (for example `commands/approve.md`, `commands/auto.md` and `commands/complete.md`).

It sits in Product & Project Management, covering PRD writing and Planning. The repository describes itself as: AI-powered cascading development framework. Decompose complex projects into parallel executable tasks with auto-generated PRDs, design docs, and multi-agent collaboration (Claude… The licence is MIT.

When your agent uses it

  • Tasks that involve PRD writing
  • Tasks that involve Planning

Example prompts

  • “s PRD format with Planning-with-Files”
  • “/hybrid-ralph”

Requirements

  • Python 3
  • Pre-approved tools (allowed-tools): Read, Write, Edit, Bash, Task, Glob, Grep, AskUserQuestion

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Check if .hybrid-execution-context.md exists in the current directory
  2. If YES
  3. If NO but prd.json exists

What it can do on your machine

Read from SKILL.md and the folder at commit 5223f82. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Edit
    • Bash
    • Task
    • Glob
    • Grep
    • AskUserQuestion

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python, from the files we listed), which the agent can run.

    Shell commands in SKILL.md call:

    • uv

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Hybrid Ralph loads about 4.1k tokens when it runs. Until then it costs about 72 tokens; SKILL.md has 1,183 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~72
When it runs · the whole SKILL.md, loaded when a task matches
~4.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Read, Write, Edit, Bash, Task, Glob, Grep, AskUserQuestion

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from Taoidle/plan-cascade at commit 5223f82, republished under its MIT licence (© Taoidle). 1,183 words, ~4,118 tokens.

Download SKILL.mdSave it as .claude/skills/hybrid-ralph/SKILL.md (or your agent's skills folder). This skill also uses 39 other files; get the full folder from GitHub.
name
hybrid-ralph
description
Hybrid architecture combining Ralph's PRD format with Planning-with-Files' structured approach. Auto-generates PRDs from task descriptions, manages parallel story execution with dependency resolution, and provides context-filtered agents for efficient multi-story development.
allowed-tools
Read, Write, Edit, Bash, Task, Glob, Grep, AskUserQuestion
version
3.2.0
user-invocable
true

Hybrid Ralph + Planning-with-Files

A hybrid architecture combining the best of three approaches:

Auto-Recovery Protocol (CRITICAL)

At the START of any interaction, perform this check to recover context after compression/truncation:

  1. Check if .hybrid-execution-context.md exists in the current directory

  2. If YES:

    • Read the file content using Read tool
    • Display: "Detected ongoing hybrid task execution"
    • Show current batch and pending stories from the file
    • Resume story execution based on the state
    • If unsure of state, suggest: /hybrid:resume --auto
  3. If NO but prd.json exists:

    • Run: uv run python "${CLAUDE_PLUGIN_ROOT}/skills/hybrid-ralph/scripts/hybrid-context-reminder.py" both
    • This will generate the context file and display current state

This ensures context recovery even after:

  • Context compression (AI summarizes old messages)

  • Context truncation (old messages deleted)

  • New conversation session

  • Claude Code restart

  • Ralph: Structured PRD format (prd.json), progress tracking patterns, small task philosophy

  • Planning-with-Files: 3-file planning pattern (task_plan.md, findings.md, progress.txt), Git Worktree support

  • Claude Code Native: Task tool with subagents for parallel story execution

Quick Start

Automatic PRD Generation

Generate a PRD from your task description:

/hybrid:auto Implement a user authentication system with login, registration, and password reset

This will:

  1. Launch a Planning Agent to analyze your task
  2. Generate a PRD with user stories
  3. Show the PRD for review
  4. Wait for your approval
Manual PRD Loading

Load an existing PRD file:

/hybrid:manual path/to/prd.json
Approval and Execution

After reviewing the PRD:

/approve

This begins parallel execution of stories according to the dependency graph.

Architecture

File Structure
project-root/
├── prd.json                 # Product Requirements Document
├── findings.md              # Research findings (tagged by story)
├── progress.txt             # Progress tracking
├── .current-story           # Currently executing story
├── .locks/                  # File locks for concurrent access
└── .agent-outputs/          # Individual agent logs
The PRD Format

The prd.json file contains:

  • metadata: Creation date, version, description
  • goal: One-sentence project goal
  • objectives: List of specific objectives
  • stories: Array of user stories with:
    • id: Unique story identifier (story-001, story-002, etc.)
    • title: Short story title
    • description: Detailed story description
    • priority: high, medium, or low
    • dependencies: Array of story IDs this story depends on
    • status: pending, in_progress, or complete
    • acceptance_criteria: List of completion criteria
    • context_estimate: small, medium, large, or xlarge
    • tags: Array of tags for categorization
Parallel Execution Model

Stories are organized into execution batches:

  1. Batch 1: Stories with no dependencies (run in parallel)
  2. Batch 2+: Stories whose dependencies are complete (run in parallel)
Batch 1 (Parallel):
  - story-001: Design database schema
  - story-002: Design API endpoints

Batch 2 (After story-001 complete):
  - story-003: Implement database schema

Batch 3 (After story-002, story-003 complete):
  - story-004: Implement API endpoints
Context Filtering

Each agent receives only relevant context:

  • Their story description and acceptance criteria
  • Summaries of completed dependencies
  • Findings tagged with their story ID

This keeps context windows focused and efficient.

Core Python Modules

context_filter (migrated to src/plan_cascade/state/)

Context filtering functionality is now provided by the main package.

bash
# Get story details
uv run python -m plan_cascade.state.context_filter get-story story-001

# Get context for a story
uv run python -m plan_cascade.state.context_filter get-context story-001

# Get execution batch
uv run python -m plan_cascade.state.context_filter get-batch 1

# Show full execution plan
uv run python -m plan_cascade.state.context_filter plan-batches
state_manager.py

Thread-safe file operations with platform-specific locking.

bash
# Read PRD
uv run python state_manager.py read-prd

# Mark story complete
uv run python state_manager.py mark-complete story-001

# Get all story statuses
uv run python state_manager.py get-statuses
prd_generator.py

Generates PRD from task descriptions and manages story dependencies.

bash
# Validate PRD
uv run python prd_generator.py validate

# Show execution batches
uv run python prd_generator.py batches

# Create sample PRD
uv run python prd_generator.py sample
orchestrator.py

Manages parallel execution of stories.

bash
# Show execution plan
uv run python orchestrator.py plan

# Show execution status
uv run python orchestrator.py status

# Execute a batch
uv run python orchestrator.py execute-batch 1

Commands Reference

/hybrid:auto

Generate PRD from task description and enter review mode. Auto-generates user stories with priorities, dependencies, and acceptance criteria for parallel execution.

/hybrid:auto [options] <task description> [design-doc-path]

Parameters:

ParameterDescription
--flow <quick|standard|full>Execution flow depth controlling quality gate strictness
--tdd <off|on|auto>Test-Driven Development mode
--confirmRequire batch confirmation during execution
--no-confirmDisable batch confirmation
--spec <off|auto|on>Spec interview before PRD generation
--first-principlesEnable first-principles questioning in spec interview
--max-questions NMax questions in spec interview
--agent <name>Agent to use for PRD generation
design-doc-pathOptional path to existing design document

Parameters are saved to prd.json and propagated to /approve.

/hybrid:manual

Load an existing PRD file and enter review mode.

/hybrid:manual [path/to/prd.json]
/hybrid:worktree

Start a new task in an isolated Git worktree with Hybrid Ralph PRD mode. Creates worktree, branch, loads existing PRD or auto-generates from description.

/hybrid:worktree [options] <task-name> <target-branch> <prd-path-or-description> [design-doc-path]

Arguments:

  • task-name: Name for the worktree (e.g., "feature-auth", "fix-api-bug")
  • target-branch: Branch to merge into (default: auto-detect main/master)
  • prd-path-or-description: Either a task description to generate PRD, or path to existing PRD file

Parameters:

ParameterDescription
--flow <quick|standard|full>Execution flow depth controlling quality gate strictness
--tdd <off|on|auto>Test-Driven Development mode
--confirmRequire batch confirmation during execution
--no-confirmDisable batch confirmation
--spec <off|auto|on>Spec interview before PRD generation
--first-principlesEnable first-principles questioning in spec interview
--max-questions NMax questions in spec interview
--agent <name>Agent to use for PRD generation
design-doc-pathOptional path to existing design document

Parameters are saved to the worktree's prd.json, ensuring isolation from other tasks.

Show full SKILL.md (543 more words)Show less
/approve

Approve PRD and begin parallel story execution. Analyzes dependencies, creates execution batches, launches background Task agents, and monitors progress.

/approve [options]

Parameters:

ParameterDescription
--flow <quick|standard|full>Override execution flow depth (quality gate strictness)
--tdd <off|on|auto>Control TDD mode for story execution
--confirmRequire confirmation before each batch
--no-confirmDisable batch confirmation (even in full flow)
--agent <name>Global agent override for all stories
--impl-agent <name>Agent for implementation phase
--retry-agent <name>Agent for retry phase (after failures)
--no-verifySkip AI verification gate
--verify-agent <name>Agent for verification phase
--no-reviewSkip code review gate
--no-fallbackDisable agent fallback chain
--auto-runUse Python-based full-auto execution with retry

Flow Levels:

FlowGate ModeAI VerificationCode ReviewTest Enforcement
quicksoft (warnings)disablednono
standardsoft (warnings)enablednono
fullhard (blocking)enabledrequiredrequired

Execution Modes:

ModeDescription
AutoAutomatically progresses through batches, pauses on errors
ManualRequires user approval before each batch
Full AutoPython-based execution with auto-retry (up to 3 attempts)
/hybrid:complete

Complete a worktree task. Verifies all stories are complete, commits code changes (excluding planning files), merges to target branch, and removes worktree.

/hybrid:complete [target-branch]
/edit

Edit the PRD in your default editor. Opens prd.json, validates after saving, and re-displays review.

/edit
/status

Show execution status of all stories. Displays batch progress, individual story states, completion percentage, and recent activity.

/status
/show-dependencies

Display the dependency graph for all stories in the PRD. Shows visual ASCII graph, critical path analysis, and detects issues like circular dependencies.

/show-dependencies

Workflows

Complete Workflow
1. /hybrid:auto "Implement feature X"
   ↓
2. Review generated PRD
   ↓
3. /edit (if needed) or /approve
   ↓
4. Agents execute stories in parallel batches
   ↓
5. Monitor with /status
   ↓
6. All stories complete
Manual PRD Workflow
1. Create prd.json (or use template)
   ↓
2. /hybrid:manual prd.json
   ↓
3. Review and edit as needed
   ↓
4. /approve
   ↓
5. Execution begins

Findings Tagging

When updating findings.md, tag sections with relevant story IDs:

markdown
<!-- @tags: story-001,story-002 -->

## Database Schema Discovery

The existing schema uses UUIDs for primary keys...

This allows agents to receive only relevant findings.

Progress Tracking

Track progress in progress.txt:

[2024-01-15 10:00:00] story-001: [IN_PROGRESS] story-001
[2024-01-15 10:15:00] story-001: [COMPLETE] story-001
[2024-01-15 10:15:00] story-002: [IN_PROGRESS] story-002

File Locking

The state manager uses platform-specific locking:

  • Linux/Mac: fcntl for advisory file locking
  • Windows: msvcrt for file locking
  • Fallback: PID-based lock files

Lock files are stored in .locks/ directory.

Error Handling

Validation Errors

If PRD validation fails:

  1. Check for duplicate story IDs
  2. Verify all dependencies exist
  3. Ensure required fields are present
  4. Use /edit to fix issues
Execution Failures

If a story fails:

  1. Check .agent-outputs/<story-id>.log
  2. Review progress.txt for error messages
  3. Fix issues manually or with agent help
  4. Re-run the story
Dependency Cycles

If dependency cycles are detected:

  1. Review /show-dependencies output
  2. Use /edit to break cycles
  3. Re-validate with /hybrid:manual

Best Practices

  1. Write Clear Descriptions: Agents work better with specific, detailed descriptions
  2. Use Acceptance Criteria: Define what "done" means for each story
  3. Tag Findings: Always tag findings with relevant story IDs
  4. Update Progress: Mark stories complete promptly
  5. Review Before Approval: Always review the PRD before approving

Integration with Planning-with-Files

This skill integrates seamlessly with planning-with-files:

  • Standard Mode: Use alongside existing task_plan.md, findings.md, progress.md
  • Worktree Mode: Each worktree can have its own PRD and story execution
  • Session Recovery: Resume work after /clear with /hybrid:manual

Templates

Use the provided templates as starting points:

  • templates/prd.json.example - Example PRD structure
  • templates/prd_review.md - PRD review display template
  • templates/findings.md - Structured findings template

Troubleshooting

PRD Not Found
Error: No PRD found in current directory

Solution: Use /hybrid:auto to generate or /hybrid:manual to load.

Lock Timeout
TimeoutError: Could not acquire lock within 30s

Solution: Run uv run python state_manager.py cleanup-locks to remove stale locks.

Dependency Not Found
Validation Error: Unknown dependency 'story-005'

Solution: Edit PRD to fix dependency reference or add missing story.

See Also

© Taoidle, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 39 other files (scripts) in skills/hybrid-ralph of Taoidle/plan-cascade.

  • SKILL.md
  • commands/approve.md
  • commands/auto.md
  • commands/complete.md
  • commands/edit.md
  • commands/manual.md
  • commands/show-dependencies.md
  • commands/status.md
  • commands/worktree.md
  • core/__init__.py
  • core/agent_executor.py
  • core/agent_monitor.py
  • core/cross_platform_detector.py
  • core/iteration_loop.py
  • core/orchestrator.py
  • core/phase_config.py
  • core/prd_generator.py
  • core/quality_gate.py
  • core/retry_manager.py
  • … and 21 more

Open the folder on GitHubat commit 5223f82

Compare with similar skills

Hybrid Ralph next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Hybrid Ralph compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Hybrid Ralph this skillTaoidle/plan-cascade133—~4.1kAutomated safety check: NotesMIT
Prd To PlanDwlad90/stylex-swc-plugin112—~767Automated safety check: PassMIT
AlignmentOvid/paad131—~4.9kAutomated safety check: PassMIT
Clarification AnalystGulajavaMinistudio/Mayukai-Theme139—~1.1kAutomated safety check: PassMIT
Feature SpecPackmindHub/packmind318—~1.8kAutomated safety check: PassApache-2.0
Mcaf Feature Specmanagedcode/Storage138—~959Automated safety check: PassMIT

Similar skills

  • Prd To Plan

    Dwlad90/stylex-swc-plugin

    Turn a PRD into a multi-phase implementation plan using tracer-bullet vertical slices, saved as a local Markdown file in ./plans/.

    112 GitHub stars~767 tokensUpdated yesterday
    Product & Project ManagementAuto-check passed
  • Alignment

    Ovid/paad

    A skill your agent uses when verifying that requirements/specs/PRDs and their implementation plans match — before starting work, after a spec or plan update, or when suspecting coverage gaps, scope…

    131 GitHub stars~4.9k tokensUpdated yesterday
    Product & Project ManagementAuto-check passed
  • Clarification Analyst

    GulajavaMinistudio/Mayukai-Theme

    Helps interrogate Product Requirements (PRD), Technical Specifications, and Implementation Plans to find ambiguities, missing edge cases, and hidden assumptions.

    139 GitHub stars~1.1k tokensUpdated 3 mo ago
    Product & Project ManagementAuto-check passed
  • Feature Spec

    PackmindHub/packmind

    Generate a Packmind feature specification from a GitHub issue, file, URL, or direct description.

    318 GitHub stars~1.8k tokensUpdated yesterday
    Product & Project ManagementAuto-check passed
  • Mcaf Feature Spec

    managedcode/Storage

    Create or update a feature spec under docs/Features/ with business rules, user flows, system behaviour, verification, and Definition of Done.

    138 GitHub stars~959 tokensUpdated 3 days ago
    Product & Project ManagementAuto-check passed
  • Run Judges

    closedloop-ai/claude-plugins

    Orchestrate parallel judge agent execution, aggregate CaseScore results, write plan-judges.json, code-judges.json, prd-judges.json, or feature-judges.json, and validate output.

    122 GitHub stars~15k tokensUpdated today
    Product & Project ManagementAuto-check: notes

More from Taoidle/plan-cascade

  • Go Best Practices

    Taoidle/plan-cascade

    Go coding best practices. An agent skill from Taoidle/plan-cascade.

    133 GitHub stars~541 tokensUpdated 7 mo ago
    Auto-check passed
  • Java Best Practices

    Taoidle/plan-cascade

    Java coding best practices. An agent skill from Taoidle/plan-cascade.

    133 GitHub stars~519 tokensUpdated 7 mo ago
    Auto-check passed
  • Mega Plan

    Taoidle/plan-cascade

    Project-level multi-task orchestration system. An agent skill from Taoidle/plan-cascade.

    133 GitHub stars~3.4k tokensUpdated 7 mo ago
    Auto-check: notes
  • Python Best Practices

    Taoidle/plan-cascade

    Python coding best practices. An agent skill from Taoidle/plan-cascade.

    133 GitHub stars~463 tokensUpdated 7 mo ago
    Auto-check passed
  • Typescript Best Practices

    Taoidle/plan-cascade

    TypeScript/Node.js best practices. An agent skill from Taoidle/plan-cascade.

    133 GitHub stars~534 tokensUpdated 7 mo ago
    Auto-check passed

Questions about Hybrid Ralph

What does Hybrid Ralph do?

Hybrid architecture combining Ralph's PRD format with Planning-with-Files' structured approach. Hybrid Ralph is an agent skill from Taoidle/plan-cascade. Hybrid architecture combining Ralph's PRD format with Planning-with-Files' structured approach.

When should I use Hybrid Ralph?

Hybrid Ralph fits situations like: tasks that involve PRD writing; tasks that involve Planning.

How do I install Hybrid Ralph in Claude Code?

Run `npx skills add Taoidle/plan-cascade --skill hybrid-ralph -a claude-code`. Or copy the skill folder (skills/hybrid-ralph in Taoidle/plan-cascade) into .claude/skills/hybrid-ralph in your project. Claude Code loads it when a task matches its description.

How do I install Hybrid Ralph in Codex?

Run `npx skills add Taoidle/plan-cascade --skill hybrid-ralph -a codex`. Or copy the skill folder (skills/hybrid-ralph in Taoidle/plan-cascade) into .agents/skills/hybrid-ralph in your project. Codex loads it when a task matches its description.

Can I use Hybrid Ralph in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Taoidle/plan-cascade --skill hybrid-ralph -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/hybrid-ralph, .gemini/skills/hybrid-ralph, .github/skills/hybrid-ralph and .opencode/skills/hybrid-ralph in your project.

What does Hybrid Ralph need to run?

Going by SKILL.md and its folder, Hybrid Ralph needs Python for the scripts in its folder and the command-line tools its instructions call (uv). Our summary lists: Python 3. Its frontmatter pre-approves these tools: Read, Write, Edit, Bash, Task, Glob, Grep, AskUserQuestion.

Does Hybrid Ralph access the network?

SKILL.md names 1 domain. As links in the text: github.com. This is read from the text; nothing was executed.

Is Hybrid Ralph safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Hybrid Ralph use?

Hybrid Ralph is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Hybrid Ralph use?

About 4.1k tokens (SKILL.md is roughly 16k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Hybrid Ralph?

Skills that share tags, products or a category with Hybrid Ralph: Prd To Plan (Dwlad90/stylex-swc-plugin, 112 stars), Alignment (Ovid/paad, 131 stars), Clarification Analyst (GulajavaMinistudio/Mayukai-Theme, 139 stars) and Feature Spec (PackmindHub/packmind, 318 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Hybrid Ralph?

Taoidle (a GitHub user) maintains it in Taoidle/plan-cascade, which has 133 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on March 14, 2026.

Source: Taoidle/plan-cascade on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.