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.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.svg" alt="Measured on agentmods" 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 $0.00018 $0.00754
Sonnet 5 $0.00007 $0.00302
Haiku 4.5 $0.00004 $0.00151

Measured 8d ago against content hash 8bdd489397af, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 8d 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. 8d 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 1mo ago), licensed MIT. It adds 36 tokens to every session and 1,508 once invoked, about $0.0002 per session on Opus 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.

Related

Other skills, from other repositories

resolve-plugins

Curate Claude Code skill / MCP / hook picks against live upstream sources and pin them in .claude/settings.json. Adding a process harness (a paired skill set) is an ordinary pick this door handles. Reads stack from docs/techstack.md, workflow signal from docs/overview.md + existing pins, then live-queries six source…

RockyHong/super-bootstrap · 133 tokens

to-issues

A planning aid that breaks a PRD or technical specification into small implementation issues, each covering a complete, demonstrable piece of work.

smallnest/goal-workflow · 96 tokens

article-icons

A tool that adds static inline SVG icons from itshover.com to Markdown, HTML, and similar articles.

smallnest/goal-workflow · 74 tokens

code-review-web

Review web application code for bugs, security issues, performance problems, and stack-specific anti-patterns. Use this skill whenever the user wants to review code, debug a production issue, investigate a build failure, audit security, or check a PR before merging. Triggers on code review, review my code, debug…

rampstackco/claude-skills · 121 tokens

performance-optimization

Diagnose and fix web performance issues including Core Web Vitals (LCP, INP, CLS), bundle size, asset optimization, render performance, and runtime efficiency. Use this skill whenever the user wants to improve page speed, fix Core Web Vitals, optimize assets, reduce bundle size, debug slow renders, or systematically…

rampstackco/claude-skills · 141 tokens

frontmcp-development

Use when building any FrontMCP server component other than a tool (for tools, use create-tool). Covers @Resource static resources and parameterized URI templates; @Prompt reusable prompts (RAG, multi-turn); @Provider singleton dependency-injection providers (database pools, API clients); @Agent autonomous LLM agents…

agentfront/frontmcp · 196 tokens