red-book

red-book is a command for Claude Code from justinjdev/fellowship. It costs 31 tokens per session (811 once invoked), scanned A, original, Apache-2.0.

A workflow for learning project conventions from pull-request review comments. Pull requests are proposed code changes reviewed before they are merged.

In plain words
What is it for?
Reading review comments, identifying project conventions, and offering to add those conventions to `CLAUDE.md`.
Why use it?
It turns repeated reviewer guidance into documented rules, so future changes are less likely to repeat the same mistakes.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md.

Part of the fellowship plugin — 20 skills, 20 commands, 4 agents, 3 hooks shipped together

Good fit Reading review comments, identifying project conventions, and offering to add those conventions to CLAUDE.md.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/justinjdev/fellowship/red-book
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.

Clone the repo
git clone --depth 1 https://github.com/justinjdev/fellowship

Made for: Claude Code.

Or install fellowship, the plugin that ships this one along with the rest of its 20 skills, 20 commands, 4 agents, 3 hooks.

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 red-book

README.md
[![agentmods](https://agentmods.dev/badge/commands/justinjdev/fellowship/red-book/github.svg)](https://agentmods.dev/commands/justinjdev/fellowship/red-book)
Your own site
<a href="https://agentmods.dev/commands/justinjdev/fellowship/red-book"><img src="https://agentmods.dev/badge/commands/justinjdev/fellowship/red-book/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 red-book

Your own site · 80×15
<a href="https://agentmods.dev/commands/justinjdev/fellowship/red-book"><img src="https://agentmods.dev/badge/commands/justinjdev/fellowship/red-book.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 811 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.00811
Opus 5.5 $0.00012 $0.00324
Sonnet 5.5 $0.00006 $0.00162
Haiku 4.5 $0.00003 $0.00081

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

Security

Grade A, and why

red-book 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 1mo 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.

plugin/commands/red-book.md · 80 lines

How it starts

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

Red Book — Learn From PR Reviews

Overview

Extracts conventions from PR review feedback and adds them to CLAUDE.md. This is the missing piece of the convention learning loop: chronicle bootstraps conventions, gather-lore studies them, warden enforces them, and this command captures new ones from real reviewer feedback.

When to Use

  • After receiving PR review comments that reveal a convention you didn't know about
  • After a "wrong approach" rejection — the reviewer's feedback is the most valuable signal
  • Periodically, to process accumulated review feedback across recent PRs

Process

Step 1: Gather Feedback

Ask the user for the source:

"Paste the review comments, or give me a PR URL and I'll read the comments."

If given a PR URL, use gh api repos/{owner}/{repo}/pulls/{number}/comments and gh api repos/{owner}/{repo}/pulls/{number}/reviews to fetch review comments.

Step 2: Classify Comments

For each review comment, classify it:

Category Description Action
Convention "We don't do it that way" — reveals a pattern or rule Extract as a convention
Bug/Logic Points out a functional error Skip — not a convention
Nit/Style Minor formatting preference Extract only if it recurs across reviews
Question Reviewer asking for clarification Skip — not a convention

Present the classification to the user: "Here's how I categorized the feedback. Any I got wrong?"

Step 3: Extract Conventions

For each comment classified as Convention, formalize it:

- **[Category]: [Rule]** — [Why, from reviewer's comment]
  Reference: [file:line from the PR where this was flagged]

Categories should match existing CLAUDE.md sections (e.g., Structure, Error Handling, Naming, Data Flow). If a comment doesn't fit an existing category, propose a new one.

Step 4: Check for Duplicates

Read the current CLAUDE.md ## Review Conventions section. For each extracted convention:

  • If it's already documented: skip, note that it was missed during implementation (warden should have caught it)
  • If it's a refinement of an existing rule: propose updating the existing rule
  • If it's new: propose adding it

Read the full file on GitHub · 80 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. 1mo ago Changed 50485da8b842
  2. 1mo ago First seen · 80 lines · 31 tokens per session scan A 291d9d604414

Subscribe to this mod's changes

red-book is a command published in the GitHub repository justinjdev/fellowship (5 stars, last pushed 17d ago), licensed Apache-2.0. It adds 31 tokens to every session and 811 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.