ghostclaw: Skill for Claude Code

.claude/skills/run-ralph/SKILL.md

run-ralph is a skill for Claude Code from b1rdmania/ghostclaw. It costs 39 tokens per session (1,150 once invoked), scanned A, original, MIT.

A command for managing an autonomous task loop called Ralph. It works through a Markdown checklist one task at a time, using a fresh agent session for each task and recording progress with commits.

In plain words
What is it for?
Use it to start, stop, or check a checklist-driven run, such as building authentication features where each task has acceptance criteria.
Why use it?
It lets a sequence of well-defined development tasks continue across separate context windows while preserving completed work and progress updates.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is b1rdmania/ghostclaw's own configuration. It tells Claude Code how to work on ghostclaw itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ghostclaw configures →

Reuse

Borrowing it

Nothing to install: this file belongs to b1rdmania/ghostclaw. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/b1rdmania/ghostclaw/main/.claude/skills/run-ralph/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/b1rdmania/ghostclaw

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 run-ralph

README.md
[![agentmods](https://agentmods.dev/badge/skills/b1rdmania/ghostclaw/run-ralph/github.svg)](https://agentmods.dev/skills/b1rdmania/ghostclaw/run-ralph)
Your own site
<a href="https://agentmods.dev/skills/b1rdmania/ghostclaw/run-ralph"><img src="https://agentmods.dev/badge/skills/b1rdmania/ghostclaw/run-ralph/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 run-ralph

Your own site · 80×15
<a href="https://agentmods.dev/skills/b1rdmania/ghostclaw/run-ralph"><img src="https://agentmods.dev/badge/skills/b1rdmania/ghostclaw/run-ralph.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,150 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.00039 $0.01150
Opus 5.5 $0.00016 $0.00460
Sonnet 5.5 $0.00008 $0.00230
Haiku 4.5 $0.00004 $0.00115

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

Security

Grade A, and why

run-ralph 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.

.claude/skills/run-ralph/SKILL.md · 151 lines

How it starts

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

Run Ralph — Autonomous Task Loop

Runs a markdown task file (checkboxes) as an autonomous loop. Each task gets a fresh agent with a fresh context window. After completing a task, the agent commits, the orchestrator marks it done, and schedules the next. Messages you with progress between iterations.

Starting a Run

1. Create or identify the task file

The task file is standard markdown with checkboxes:

# Feature: User Authentication

- [ ] Create user model with email and password fields
  POST /api/users table with bcrypt hashing
  Unit tests for model validation
- [ ] Add login endpoint with JWT
  POST /api/login returns token
  Returns 401 on invalid credentials
- [ ] Add registration endpoint
  POST /api/register with email verification
  Duplicate email returns 409

Rules for good task files:

  • Each task must be completable in one agent session (one context window)
  • Include acceptance criteria as indented lines below each checkbox
  • Tasks run in order — put dependencies first
  • Already-checked items [x] are skipped

2. Get the chat JID

sqlite3 store/messages.db "SELECT jid FROM registered_groups WHERE folder = 'main' LIMIT 1;"

3. Estimate iterations

Read the task file and assess each unchecked task:

Simple tasks (1 iteration each):

  • Config changes, env vars, small edits
  • Adding a single file or endpoint
  • Running a command and reporting results

Medium tasks (2 iterations each):

  • New feature with tests
  • Integration with an external service
  • Refactoring across multiple files

Complex tasks (3 iterations each):

  • Multi-file architectural changes
  • New system with several moving parts
  • Anything with "and also" or multiple acceptance criteria

Add up the estimates and add 2 for retry buffer. Tell the user:

"You have N tasks. I'd estimate M iterations based on complexity:

  • 3 simple (3 iterations)
  • 2 medium (4 iterations)
  • 1 complex (3 iterations)
  • Total: 12 iterations (10 + 2 buffer)

Want me to run with that, or set a different limit?"

Read the full file on GitHub · 151 lines

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 · 151 lines · 39 tokens per session scan A 0443329faa85

Subscribe to this mod's changes

run-ralph is a skill published in the GitHub repository b1rdmania/ghostclaw (84 stars, last pushed 5mo ago), licensed MIT. It adds 39 tokens to every session and 1,150 once invoked, about $0.0002 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.