ralph-file-schemas

ralph-file-schemas is a skill for Claude Code from pentoai/ml-ralph. It costs 31 tokens per session (1,504 once invoked), scanned A, original, MIT.

A schema reference for the state files used by ml-ralph, including prd.json and kanban.json. A schema describes the required structure and fields of a file.

In plain words
What is it for?
Use it when inspecting or updating ml-ralph requirements and task-board state.
Why use it?
It helps agents read and write these files in the expected format.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it when inspecting or updating ml-ralph requirements and task-board state.

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

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-file-schemas

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/pentoai/ml-ralph/ralph-file-schemas"><img src="https://agentmods.dev/badge/skills/pentoai/ml-ralph/ralph-file-schemas.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,504 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.00031 $0.01504
Opus 5.5 $0.00012 $0.00602
Sonnet 5.5 $0.00006 $0.00301
Haiku 4.5 $0.00003 $0.00150

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

Security

Grade A, and why

ralph-file-schemas 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 2d 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/ralph-file-schemas/SKILL.md · 167 lines

How it starts

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

Ralph File Schemas

Reference for .ml-ralph/ state files. Pure schemas - no philosophy (see RALPH.md for that).


prd.json (The Destination)

Your contract with the user. Rarely changes.

{
  "project": "project-name",
  "status": "draft|approved|blocked|complete",
  "problem": "What we're solving",
  "goal": "High-level objective",
  "success_criteria": ["Metric > threshold"],
  "constraints": ["No deep learning", "< 4hr training"],
  "scope": {
    "in": ["Feature engineering", "Gradient boosting"],
    "out": ["Neural networks", "External data"]
  }
}

Status Values

Status Meaning Who Can Set
draft PRD being created Agent
approved User approved, work begins User
blocked Agent cannot progress (requires user decision) Agent
complete Reserved; the runner decides completion (run_complete), the agent never sets it Runner

What Can Change

Freely:

  • success_criteria - Refine based on what's achievable
  • constraints - Add discovered constraints
  • scope - Adjust based on learnings

Requires user approval:

  • problem - Core problem definition
  • goal - High-level objective
  • Any claim that success criteria are unachievable

Always log changes with rationale!


eval/ (The Eval Contract)

Drafted in SETUP with the user. Once prd.json is approved, the runner validates and locks it. Never edit these files after the lock: the runner re-hashes them before every iteration and pauses the run for the user if one changed or was deleted.

File Written by Purpose
.ml-ralph/eval/evaluate.py Agent (SETUP) Eval script
.ml-ralph/eval/contract.json Agent (SETUP) Eval protocol and baseline score
.ml-ralph/eval/lock.json Runner only SHA-256 of the two files plus lock time
{
  "primary_metric": "auc",
  "direction": "max|min",
  "search_split": "cv_5fold",
  "seeds": [0, 1, 2],
  "protocol": "5-fold stratified CV, mean over seeds",
  "success_threshold": 0.9,
  "holdout_gap_threshold": 0.02,
  "eval_timeout_seconds": 1800,
  "baseline_score": 0.81
}

Read the full file on GitHub · 167 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. 2d ago Changed d12a4de71f4b
  2. 1mo ago Changed · +32 lines f35748e1661a
  3. 3mo ago First seen · 135 lines · 31 tokens per session scan A 481208233321

Subscribe to this mod's changes

ralph-file-schemas is a skill published in the GitHub repository pentoai/ml-ralph (43 stars, last pushed 3d ago), licensed MIT. It adds 31 tokens to every session and 1,504 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.

Related

ralph-file-schemas compared with skills from other repositories

ralph-file-schemas next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ralph-file-schemaspentoai/ml-ralphSkill433d agoMITA31Claude Code
first-readerShubhamsaboo/awesome-llm-appsSkill146ktodayApache-2.0A174Claude Code, Codex
project-graveyardShubhamsaboo/awesome-llm-appsSkill146ktodayApache-2.0A127Claude Code, Codex
composioComposioHQ/composioSkill31ktodayMITA95Claude Code, Codex
playwrightopenai/openai-agents-pythonSkill31ktodayMITA19Claude Code, Codex
ai-agent-tool-routingsickn33/agentic-awesome-skillsSkill51kyesterdayMITA36Claude Code
thinking-out-loudShubhamsaboo/awesome-llm-appsSkill146ktodayApache-2.0A206Claude Code, Codex