ralphi-worktree

ralphi-worktree is a skill for Claude Code from fagnerjs/ralphi. It costs 33 tokens per session (308 once invoked), scanned A, original, MIT.

A guide for working in a Ralphi-managed Git worktree, an isolated checkout used to develop one planned change without mixing it with other work.

In plain words
What is it for?
Use it to check the current branch, make isolated changes, run verification, and update Ralphi's backlog, PRD, and progress files.
Why use it?
It helps keep code, branches, and shared task status separate while a pull request or product requirement is being completed.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it to check the current branch, make isolated changes, run verification, and update Ralphi's backlog, PRD, and progress files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fagnerjs/ralphi/ralphi-worktree
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 fagnerjs/ralphi --skill ralphi-worktree
Clone the repo
git clone --depth 1 https://github.com/fagnerjs/ralphi

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 ralphi-worktree

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/fagnerjs/ralphi/ralphi-worktree"><img src="https://agentmods.dev/badge/skills/fagnerjs/ralphi/ralphi-worktree.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 308 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.00033 $0.00308
Opus 5.5 $0.00013 $0.00123
Sonnet 5.5 $0.00007 $0.00062
Haiku 4.5 $0.00003 $0.00031

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

Security

Grade A, and why

ralphi-worktree 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 2mo 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/ralphi-worktree/SKILL.md · 37 lines

What it actually says

Ralphi Worktree

Use this skill when Ralphi has provisioned a dedicated worktree and branch for the current PRD.

Ground Rules

  1. Treat the current worktree as the only place for product code changes.
  2. Treat runDir, prd.json, progress.txt, and backlog.json as shared orchestration state that may live outside the worktree.
  3. Never edit files in sibling worktrees or in the main checkout unless the prompt explicitly names a shared state file.

Git Hygiene

  • Inspect the current branch before making assumptions.
  • Do not revert unrelated user changes.
  • Prefer small commits worth one PRD backlog item at a time.
  • If the repository state appears inconsistent with the assigned branch or worktree, report it clearly instead of guessing.

Verification

  • Run checks from inside the assigned worktree.
  • If a dependency or generated artifact is missing, explain the blocker in progress.txt.
  • Keep the branch isolated to the PRD you are executing.

Shared-State Reminder

Ralphi reads status from the shared state files, not from memory. Whenever you finish a meaningful step:

  1. Update backlog.json.
  2. Update prd.json.
  3. Append a timestamped note to progress.txt.
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. 2mo ago First seen · 37 lines · 33 tokens per session scan A af2266a63a15

Subscribe to this mod's changes

ralphi-worktree is a skill published in the GitHub repository fagnerjs/ralphi (6 stars, last pushed 7mo ago), licensed MIT. It adds 33 tokens to every session and 308 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-31.