ralph-loop-template

ralph-loop-template is a skill for Claude Code from 2ykwang/agent-skills. It costs 36 tokens per session (1,508 once invoked), scanned A, original, MIT.

A skill that turns a plan into a repeatable checklist prompt for Ralph Loop, an iterative coding workflow.

In plain words
What is it for?
Use it to find or read a project plan, gather its coding rules and checks, create a PROMPT file, and produce the ready-to-run /ralph-loop command.
Why use it?
It makes a plan easier to run through repeatedly and includes project instructions and verification commands when available.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

Good fit Use it to find or read a project plan, gather its coding rules and checks, create a PROMPT file, and produce the ready-to-run /ralph-loop command.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/2ykwang/agent-skills/ralph-loop-template
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add 2ykwang/agent-skills --skill ralph-loop-template
Clone the repo
git clone --depth 1 https://github.com/2ykwang/agent-skills

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ralph-loop-template

README.md
[![agentmods](https://agentmods.dev/badge/skills/2ykwang/agent-skills/ralph-loop-template/github.svg)](https://agentmods.dev/skills/2ykwang/agent-skills/ralph-loop-template)
Your own site
<a href="https://agentmods.dev/skills/2ykwang/agent-skills/ralph-loop-template"><img src="https://agentmods.dev/badge/skills/2ykwang/agent-skills/ralph-loop-template/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ralph-loop-template

Your own site · 80×15
<a href="https://agentmods.dev/skills/2ykwang/agent-skills/ralph-loop-template"><img src="https://agentmods.dev/badge/skills/2ykwang/agent-skills/ralph-loop-template.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,508 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00036 $0.01508
Opus 5.5 $0.00014 $0.00603
Sonnet 5.5 $0.00007 $0.00302
Haiku 4.5 $0.00004 $0.00151

Measured 1mo ago against content hash 8bdd489397af, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ralph-loop-template scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/ralph-loop-template/SKILL.md · 152 lines

How it starts

The opening of the file, as written. The whole thing — 152 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Ralph Loop Template

Input

$ARGUMENTS

Instructions

Step 1: Gather Plan

If an argument is provided: Read the file to understand the plan content.

If no argument: Search for a plan in the following order:

  1. Search for plan files in the project root: PLAN.md, plan.md, PLAN-*.md, plan-*.md, TODO.md, prd.md, PRD.md
    • 1 found → Use it (inform the user which file was detected)
    • Multiple found → Present the list and ask for selection
    • 0 found → Proceed to next step
  2. Use the plan discussed in the current conversation context.
  3. If no plan exists in the conversation context, ask the user to describe the plan.

Step 2: Identify Project Environment

Collect project-specific information to embed in the PROMPT file.

Search for agent/project configuration files in the following priority order:

  1. CLAUDE.md (Claude Code)
  2. .cursorrules (Cursor)
  3. .windsurfrules (Windsurf)
  4. AGENTS.md, COPILOT.md, GEMINI.md

If a config file is found, extract:

  • Verification commands: Combine build, test, lint into a single chain (e.g., npm run lint && npm run build && npm test)
  • Key code style rules (items to insert into the PROMPT's absolute rules {AGENT_RULES}, max 3)

If no config file is found: Infer from project structure:

  • package.json → npm/yarn commands
  • Makefile / Justfile → make/just commands
  • Cargo.toml → cargo commands
  • pyproject.toml / setup.py → python toolchain
  • If undetectable, ask the user for build/test commands

Step 3: Analyze Plan

Extract the following from the plan:

  • Goal: What is being built
  • Non-goals: What will NOT be done in this task (to prevent Feature Invention)
  • Phase list: Ordered implementation steps
  • Key content per phase: Files to change, implementation details
  • Reference docs/files: Pattern references, design document paths
  • Completion criteria: Criteria for determining the entire task is complete

Completion criteria must be mechanically verifiable (e.g., command execution returns exit code 0). Do not use subjective criteria like "works well" or "looks clean".

Read the full file on GitHub · 152 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 152 lines · 36 tokens per session scan A 8bdd489397af

Subscribe to this mod's changes

ralph-loop-template is a skill published in the GitHub repository 2ykwang/agent-skills (19 stars, last pushed 2mo ago), licensed MIT. It adds 36 tokens to every session and 1,508 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.