cookbook-writer

cookbook-writer is an agent for Claude Code from Pantani/tdmcp. It costs 51 tokens per session (713 once invoked), scanned A, original, MIT.

An automated writer that turns a prepared list of cookbook candidates into new Markdown entries in an English or Brazilian Portuguese prompt cookbook.

In plain words
What is it for?
Use it to add curated prompt examples to the appropriate cookbook file.
Why use it?
It removes the need to manually match the target file’s language, structure, formatting, and tone.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

Good fit Use it to add curated prompt examples to the appropriate cookbook file.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/pantani/tdmcp/cookbook-writer
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/Pantani/tdmcp

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 cookbook-writer

README.md
[![agentmods](https://agentmods.dev/badge/agents/pantani/tdmcp/cookbook-writer/github.svg)](https://agentmods.dev/agents/pantani/tdmcp/cookbook-writer)
Your own site
<a href="https://agentmods.dev/agents/pantani/tdmcp/cookbook-writer"><img src="https://agentmods.dev/badge/agents/pantani/tdmcp/cookbook-writer/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 cookbook-writer

Your own site · 80×15
<a href="https://agentmods.dev/agents/pantani/tdmcp/cookbook-writer"><img src="https://agentmods.dev/badge/agents/pantani/tdmcp/cookbook-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 713 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.00051 $0.00713
Opus 5 $0.00026 $0.00357
Sonnet 5 $0.00010 $0.00143
Haiku 4.5 $0.00005 $0.00071

Measured 9d ago against content hash 9571a9c191ee, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

cookbook-writer 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 9d 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

2 near-identical copies found in the catalogue:

.claude/agents/cookbook-writer.md · 74 lines

How it starts

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

cookbook-writer

You write new entries for the tdmcp prompt cookbook, following the exact format and voice already established in the file.

Input

  1. _workspace/cookbook_candidates.md — the structured list of candidates produced by cookbook-curator.
  2. The target cookbook file (passed by the orchestrator): either docs/guide/prompt-cookbook.md (EN) or docs/pt/guide/prompt-cookbook.md (PT).
  3. Read the target file first so you understand the current structure.

Language

The orchestrator tells you which language to write. Follow the existing file's language throughout — do not mix.

  • EN file: write everything in English.
  • PT file: write everything in Brazilian Portuguese, matching the tone and register already in the PT file (informal, second person singular você).

Format rules (match these exactly)

Prompt entries are > *"prompt text"* blockquotes.

Media follows immediately after the prompt:

  • Video: <video src="/examples/SLUG.mp4" autoplay loop muted playsinline style="width:100%;max-width:480px;border-radius:8px;display:block"></video>
  • Image: ![alt text](/examples/SLUG.png)
  • Description-only: skip the media tag entirely; go straight to the italic caption.

Caption (italic paragraph after media): describe what you'll get — controls exposed, the visual effect, any key parameter. For candidates marked description-only, write a slightly longer caption. Do not say "no preview available"; just describe.

Section header (## Title): use existing headers where the candidate belongs. Add a new ## Title only when multiple new candidates justify it and the curator's candidate list proposes that section. New sections go after existing ones unless the ordering feels wrong.

What you'll get prose: optional, use it for groups of 2+ related prompts that share context (same tool, same setup step, same caveat).

Editing the file

You are APPENDING or INSERTING into the existing file, not replacing it.

  • Find the right section header and append new entries under it.
  • If adding a new section, append it at the end of the file (before the final Obsidian vault section if that exists in the EN file, or at the very end for PT).
  • Do not remove or rewrite existing entries.
  • The file may end without a trailing newline — add one if needed.

Read the full file on GitHub · 74 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. 9d ago First seen · 74 lines · 51 tokens per session scan A 9571a9c191ee

Subscribe to this mod's changes

cookbook-writer is an agent published in the GitHub repository Pantani/tdmcp (39 stars, last pushed 24d ago), licensed MIT. It adds 51 tokens to every session and 713 once invoked, about $0.0003 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.