ralph-prompt-generator

ralph-prompt-generator is a skill for Codex from MattMagg/ralph-wiggum-codex. It costs 44 tokens per session (1,696 once invoked), scanned A, original, MIT.

A staged prompt-improvement workflow for creating prompts for Ralph Wiggum Codex, a separate task-running tool. It produces draft and final prompt files and includes review checkpoints.

In plain words
What is it for?
Use it when preparing a reusable Ralph prompt that needs clarification, critique, revision, and saved planning or prompt files.
Why use it?
It helps turn a rough or ambiguous request into a clearer handoff without deciding the downstream task for the receiving agent.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Codex; $skill-name invocation.

Good fit Use it when preparing a reusable Ralph prompt that needs clarification, critique, revision, and saved planning or prompt files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mattmagg/ralph-wiggum-codex/ralph-prompt-generator
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 MattMagg/ralph-wiggum-codex --skill ralph-prompt-generator
Clone the repo
git clone --depth 1 https://github.com/MattMagg/ralph-wiggum-codex

Made for: Codex.

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-prompt-generator

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/mattmagg/ralph-wiggum-codex/ralph-prompt-generator"><img src="https://agentmods.dev/badge/skills/mattmagg/ralph-wiggum-codex/ralph-prompt-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,696 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.00044 $0.01696
Opus 5 $0.00022 $0.00848
Sonnet 5 $0.00009 $0.00339
Haiku 4.5 $0.00004 $0.00170

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

Security

Grade A, and why

ralph-prompt-generator 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 10d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/ralph-prompt-generator/SKILL.md · 199 lines

How it starts

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

Ralph Prompt Generator

Companion skill for $ralph-wiggum-codex.

This skill does not exist to synthesize flags first. Its primary job is to improve the prompt itself through a staged prompt-improvement workflow, then finish with a small Ralph-specific handoff.

Core Rule

Clarify, do not prescribe.

The receiving agent is equally capable. Improve the briefing, preserve the user's boundaries, and avoid doing the downstream agent's job.

When To Use

Use this skill when:

  • The source prompt is ambiguous, bloated, or structurally weak.
  • The user wants a reusable prompt for $ralph-wiggum-codex.
  • The task needs critique and revision, not just runner flag suggestions.
  • The user wants saved planning, draft, and final prompt files in the repo.

Do not use this skill when:

  • The user already has a production-ready Ralph prompt.
  • The user wants $ralph-wiggum-codex executed immediately with no prompt rewrite.
  • The only missing detail is a minor flag choice that can be handled inline.

Inputs

Primary input:

  • <user_prompt>

Optional supporting context:

  • <examples>
  • <feedback>

Treat <examples> as demonstrations, not new requirements. Treat <feedback> as revision guidance, not permission to weaken the original constraints.

Repo-Backed Workspace

Use this workspace for all saved outputs:

  • docs/prompt-improver-spec/artifacts/implementation_plan.md
  • docs/prompt-improver-spec/artifacts/task.md
  • docs/prompt-improver-spec/artifacts/walkthrough.md
  • docs/prompt-improver-spec/final-prompts/<prompt-name>-draft.md
  • docs/prompt-improver-spec/final-prompts/<prompt-name>.md

Determine <prompt-name> during planning using a descriptive kebab-case filename. Reuse the saved files on resume instead of redoing earlier analysis from scratch.

Delete the draft file after creating the final prompt.

Required Workflow

Follow the staged workflow defined in references/prompt-improver-workflow-codex.md.

Phase A

Planning only. Complete Steps 1-2.

Read the full file on GitHub · 199 lines

Files

What ships with it

5 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. 10d ago First seen · 199 lines · 44 tokens per session scan A 69dd68d1ffce

Subscribe to this mod's changes

ralph-prompt-generator is a skill published in the GitHub repository MattMagg/ralph-wiggum-codex (10 stars, last pushed 6mo ago), licensed MIT. It adds 44 tokens to every session and 1,696 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-31.

Related

Other skills, from other repositories

opik-optimizer

Optimize LLM prompts, tools, and agents in Opik using standardized optimizer workflows (prompt optimization, tool optimization, and parameter tuning), dataset/metric wiring, and result interpretation.

vincentkoc/dotskills · 41 tokens

proxy-local-ai-subscriptions

A guide for exposing your local Codex, ChatGPT Codex, or Claude Code subscription through a protected local OpenAI-compatible endpoint, then connecting it to NextClaw as a custom provider.

Peiiii/nextclaw · 126 tokens

regex-vs-llm-structured-text

A cost-optimization framework for choosing the right tool (Regex vs. LLM) for structured text parsing.

jxoesneon/Ciel · 32 tokens

implementing-llm-guardrails-for-security

Implements input and output validation guardrails for LLM-powered applications to prevent prompt injection, data leakage, toxic content generation, and hallucinated outputs. Builds a security validation pipeline using NVIDIA NeMo Guardrails Colang definitions, custom Python validators for PII detection and content…

xalgorix/xalgorix · 143 tokens

prompting

Guide for writing effective system prompts for LLM agents. Use when creating or editing system prompts for applications, agent configurations, or development tools.

saffron-health/libretto · 31 tokens

few-shot-examples

Curated few-shot examples for construction AI tasks: classification, extraction, analysis. Domain-specific examples for improved LLM performance.

datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction · 30 tokens