All skills
Skillintermediate

Ralph Hat Collections

This directory contains the canonical built-in hat collections Ralph still ships and supports.

Claude Code Knowledge Pack7/10/2026

Overview

Ralph Hat Collections

This directory contains the canonical built-in hat collections Ralph still ships and supports.

Built-ins are embedded into the CLI from these files and exposed through ralph init --list-presets.

Supported Builtins

CollectionSourceBest for
autoresearchpresets/autoresearch.ymlAutonomous experiment loop for any measurable improvement
code-assistpresets/code-assist.ymlDefault implementation workflow
debugpresets/debug.ymlInvestigation and fix verification
researchpresets/research.ymlRead-only exploration and synthesis
reviewpresets/review.ymlAdversarial code review
pdd-to-code-assistpresets/pdd-to-code-assist.ymlAdvanced end-to-end idea-to-code workflow

Internal Presets

These remain loadable for Ralph internals or testing, but are intentionally hidden from normal builtin listings:

  • hatless-baseline
  • merge-loop

Product Positioning

  • code-assist is the recommended default for implementation work.
  • pdd-to-code-assist is intentionally kept as an advanced, fun example. It is slower, more expensive, and less predictable than code-assist.
  • Other historical presets are now treated as documentation examples instead of supported builtins.

Quick Start

ralph init --backend claude
ralph init --list-presets

ralph run -c ralph.yml -H builtin:autoresearch -p "Improve test coverage in src/core/"
ralph run -c ralph.yml -H builtin:code-assist -p "Add OAuth login"
ralph run -c ralph.yml -H builtin:debug -p "Investigate intermittent timeout"
ralph run -c ralph.yml -H builtin:research -p "Map auth architecture"
ralph run -c ralph.yml -H builtin:review -p "Review changes in src/api/"
ralph run -c ralph.yml -H builtin:pdd-to-code-assist -p "Build a new import pipeline"

Examples Instead of Builtins

Example workflow patterns now live in the docs rather than as shipped preset files. See:

  • docs/examples/
  • presets/COLLECTION.md

Source Of Truth

  • Canonical builtins: presets/*.yml
  • Builtin index: presets/index.json
  • Embedded CLI mirror: crates/ralph-cli/presets/*.yml
  • Sync script: ./scripts/sync-embedded-files.sh