Skills

Ralph

Queue processing with fresh context per phase.

Install

npx skills add agenticnotetaking/arscontexta --skill ralph -g -a claude-code -y
Category
Engineering
Updated
8mo ago
License
MIT
Context cost
Mediumabout 3,000 tokens
Runs scripts
No, instructions only

What it does

Queue processing with fresh context per phase. Processes N tasks from the queue, spawning isolated subagents to prevent context contamination. Supports serial, parallel, batch filter, and dry run modes. Triggers on "/ralph", "/ralph N", "process queue", "run pipeline tasks".

EXECUTE NOW

Target: $ARGUMENTS

Parse arguments:

  • N (required unless --dry-run): number of tasks to process
  • --parallel: concurrent claim workers (max 5) + cross-connect validation
  • --batch [id]: process only tasks from specific batch
  • --type [type]: process only tasks at a specific phase (extract, create, reflect, reweave, verify, enrich)
  • --dry-run: show what would execute without running
  • --handoff: output structured RALPH HANDOFF block at end (for pipeline chaining)

Step 0: Read Vocabulary

Read ops/derivation-manifest.md (or fall back to ops/derivation.md) for domain vocabulary mapping. All output must use domain-native terms. If neither file exists, use universal terms.

START NOW. Process queue tasks.


MANDATORY CONSTRAINT: SUBAGENT SPAWNING IS NOT OPTIONAL

You MUST use the Task tool to spawn a subagent for EVERY task. No exceptions.

This is not a suggestion. This is not an optimization you can skip for "simple" tasks. The entire architecture depends on fresh context isolation per phase. Executing tasks inline in the lead session:

  • Contaminates context (later tasks run on degraded attention)
  • Skips the handoff protocol (learnings are not captured)
  • Violates the ralph pattern (one phase per context window)

If you catch yourself about to execute a task directly instead of spawning a subagent, STOP. Call the Task tool. Every time. For every task. Including create tasks. Including "simple" tasks.

The lead session's ONLY job is: read queue, spawn subagent, evaluate return, update queue, repeat.


Phase Configuration

Each phase maps to specific Task tool parameters. Use these EXACTLY when spawning subagents.

Read the whole SKILL.md on GitHub

More in Engineering