success

success is a command for coding agents from rubin-johnson/retro. It costs 10 tokens per session (612 once invoked), scanned A, original, MIT.

A guided record of a successful coding outcome. It asks structured questions about what worked so the approach can be remembered and possibly turned into a CLAUDE.md rule.

In plain words
What is it for?
Interviewing yourself about a good result, recording the effective prompt or approach, and identifying repeatable practices.
Why use it?
It helps capture useful working patterns instead of relying on memory after a successful task.

Command

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the retro plugin — 1 skill, 4 commands, 1 hook shipped together

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.

agentmods
npx agentmods add commands/rubin-johnson/retro/success
Clone the repo
git clone --depth 1 https://github.com/rubin-johnson/retro

Or install retro, 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 success

README.md
[![agentmods](https://agentmods.dev/badge/commands/rubin-johnson/retro/success.svg)](https://agentmods.dev/commands/rubin-johnson/retro/success)
Your own site
<a href="https://agentmods.dev/commands/rubin-johnson/retro/success"><img src="https://agentmods.dev/badge/commands/rubin-johnson/retro/success.svg" alt="Measured on agentmods" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 612 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 $0.00010 $0.00612
Opus 5 $0.00005 $0.00306
Sonnet 5 $0.00002 $0.00122
Haiku 4.5 $0.00001 $0.00061

Measured 4d ago against content hash 32c3412c761c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

success 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 4d 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.

commands/success.md · 78 lines

How it starts

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

/success

You are logging an agentic coding success. The goal is to capture what the user did RIGHT so the pattern can be repeated and eventually promoted to a CLAUDE.md rule.

Setup

  1. Load the agentic-interview skill for taxonomy and interview methodology.
  2. Determine the plugin root: use ${CLAUDE_PLUGIN_ROOT} if available, otherwise find the retro plugin directory containing scripts/db.py.

Interview Flow

Step 1: Review Context

Before asking anything, review the recent conversation. Look for:

  • What worked well
  • What the user did that led to a good outcome
  • Specific techniques or patterns that were effective

If the user provided an optional description with the command, use it as a starting point.

Step 2: Conduct Interview

Ask 2-4 specific questions, one at a time, using AskUserQuestion.

Essential questions (pick the most relevant):

  • "What specifically did you do that led to this good outcome?"
  • "Can you paste or paraphrase the prompt/approach that worked?"
  • "Why do you think this worked where other approaches might not have?"
  • "Is this something you'd want to repeat? What makes it repeatable?"

Step 3: Capture What Worked

Get the specific technique, prompt, or approach verbatim. This is the pattern to preserve.

Step 4: Propose Category

Based on the conversation and interview answers, propose a category and subcategory from the success taxonomy. Frame it as: "This looks like a category/subcategory win -- [brief explanation]. Sound right?"

Use AskUserQuestion with the proposed category as the recommended option and 2-3 alternatives.

Step 5: Confirm and Write

Present a summary of what will be logged:

  • Summary: One-line description
  • Category: category/subcategory
  • What worked: The specific technique
  • Why it worked: The underlying principle

Ask the user to confirm with AskUserQuestion.

Step 6: Write to Database

Run:

echo '<json_payload>' | python3 "${CLAUDE_PLUGIN_ROOT}/scripts/db.py" log-success

Read the full file on GitHub · 78 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. 4d ago First seen · 78 lines · 10 tokens per session scan A 32c3412c761c

Subscribe to this mod's changes

success is a command published in the GitHub repository rubin-johnson/retro (2 stars, last pushed 4mo ago), licensed MIT. It adds 10 tokens to every session and 612 once invoked, about $0.0001 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.