ralph-marketer

ralph-marketer is a command for Claude Code from Samin12/claude-course. It costs 9 tokens per session (675 once invoked), scanned A, original, MIT.

A command that starts Ralph Marketer, an automated writing loop for creating SaaS marketing content from a shared content database.

In plain words
What is it for?
Use it to run marketing stories from a PRD, track progress, and create or publish content in the project.
Why use it?
It gives the writing process a repeatable workflow for choosing unfinished tasks, producing drafts, reviewing them, and publishing content.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the ralph-wiggum-marketer plugin — 1 skill, 4 commands, 1 hook shipped together

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add Samin12/claude-course
Claude Code
/plugin install ralph-wiggum-marketer

Made for: Claude Code.

Or install ralph-wiggum-marketer, the plugin that ships this one along with the rest of its 1 skill, 4 commands, 1 hook.

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-marketer

README.md
[![agentmods](https://agentmods.dev/badge/commands/samin12/claude-course/ralph-marketer.svg)](https://agentmods.dev/commands/samin12/claude-course/ralph-marketer)
Your own site
<a href="https://agentmods.dev/commands/samin12/claude-course/ralph-marketer"><img src="https://agentmods.dev/badge/commands/samin12/claude-course/ralph-marketer.svg" alt="Measured on agentmods" height="20"></a>
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 675 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00009 $0.00675
Opus 5 $0.00005 $0.00338
Sonnet 5 $0.00002 $0.00135
Haiku 4.5 $0.00001 $0.00068

Measured 6d ago against content hash 4fd43d1bd9c7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

ralph-marketer 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 6d 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-wiggum-marketer/commands/ralph-marketer.md · 86 lines

How it starts

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

Ralph the Marketer - Autonomous Copywriter Loop

You are starting the Ralph the Marketer autonomous copywriting agent. This agent creates SaaS marketing content by reading from a content database populated by other agents (trends, research, communications) and iteratively writing, reviewing, and publishing content.

Setup (First Run Only)

If this is your first time running Ralph the Marketer in this project, you need to initialize the content database:

# From the plugin directory
cd ${CLAUDE_PLUGIN_ROOT}
npm install
npm run db:reset

Or set up the project structure in your current directory:

# Copy templates to your project
cp -r ${CLAUDE_PLUGIN_ROOT}/templates/ralph ./scripts/ralph
cp ${CLAUDE_PLUGIN_ROOT}/templates/package.json ./package.json
cp -r ${CLAUDE_PLUGIN_ROOT}/scripts/src ./src
mkdir -p content/{drafts,published} data
npm install
npm run db:reset

Your Task

You are now in a Ralph loop. Each iteration:

  1. Read the PRD: Check scripts/ralph/prd.json for user stories
  2. Check Progress: Read scripts/ralph/progress.txt for patterns and learnings
  3. Pick Next Story: Find highest priority story where passes: false
  4. Execute: Complete the story following its acceptance criteria
  5. Verify: Run npm test to ensure quality
  6. Commit: git commit -m "content: [ID] - [Title]"
  7. Update: Mark story as passes: true, log to progress.txt

Content Sources

Check what's available in the database:

npm run db:status          # Pipeline overview
node src/content/list.js   # Available trends, research, comms

Story Types

  • SETUP-xxx: Initialize/configure something
  • PLAN-xxx: Create a content plan from sources
  • WRITE-xxx: Write content (drafts to content/drafts/)
  • REVIEW-xxx: Self-review and improve drafts
  • PUBLISH-xxx: Finalize and publish (content/published/)
  • SOCIAL-xxx: Create social media posts
  • NEWSLETTER-xxx: Draft newsletters

Completion Signal

Read the full file on GitHub · 86 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. 6d ago First seen · 86 lines · 0 tokens per session scan A 4fd43d1bd9c7

Subscribe to this mod's changes

ralph-marketer is a command published in the GitHub repository Samin12/claude-course (20 stars, last pushed 4mo ago), licensed MIT. It adds 9 tokens to every session and 675 once invoked, about $0.0000 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.