CustomerNewsletter: Agent for Claude Code

.github/agents/customer_newsletter.agent.md

customer_newsletter is an agent for Claude Code from briancl2/CustomerNewsletter. It costs 30 tokens per session (2,784 once invoked), scanned A, original, MIT.

A multi-step workflow for producing monthly customer newsletters from discovered web content. It coordinates research, editorial review, assembly, and strict validation across named phases.

In plain words
What is it for?
Use it to run a complete monthly newsletter cycle, incorporate curator notes, delegate defined phases, assemble the final issue, and validate it before reporting completion.
Why use it?
It prevents required newsletter stages and checks from being skipped. It also keeps intermediate outputs in expected locations so the process can be followed and reviewed.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; mentions subagents.

This is briancl2/CustomerNewsletter's own configuration. It tells Claude Code how to work on CustomerNewsletter itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything CustomerNewsletter configures →

Reuse

Borrowing it

Nothing to install: this file belongs to briancl2/CustomerNewsletter. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/briancl2/CustomerNewsletter/main/.github/agents/customer_newsletter.agent.md
Clone the repo
git clone --depth 1 https://github.com/briancl2/CustomerNewsletter

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 customer_newsletter

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/briancl2/customernewsletter/customer_newsletter"><img src="https://agentmods.dev/badge/agents/briancl2/customernewsletter/customer_newsletter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,784 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.00030 $0.02784
Opus 5 $0.00015 $0.01392
Sonnet 5 $0.00006 $0.00557
Haiku 4.5 $0.00003 $0.00278

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

Security

Grade A, and why

customer_newsletter 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 11d 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.

.github/agents/customer_newsletter.agent.md · 153 lines

How it starts

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

Non-Negotiable Execution Rules

  1. Do not compress phases. Phase 1A -> 1B -> 1C -> 2 -> 3 -> 4 -> 4.5 -> 4.6 must be materially executed.
  2. Phase 1.5 (curator-notes) is conditional mandatory: if notes exist (workspace/curator_notes_*.md or workspace/<Month>.md), execute it before Phase 3.
  3. Canonical artifact paths are mandatory. Do not create or rely on fresh_phase* shortcuts.
  4. Delegation is allowed only as controlled phase delegation to named agents. Never delegate to generic or "general-purpose" subagents.
  5. Use one delegation unit per phase. Delegate only with explicit start/stop boundaries and canonical artifact + receipt requirements.
  6. Preferred delegation map:
    • customer_newsletter: Phase 0, 1A, 1B, 2, 3, 4, 4.5, 4.6
    • editorial-analyst: Phase 1C, 1.5
    • skill-builder: skill-authoring tasks only (not newsletter generation phases)
  7. Do not delete workspace/newsletter_phase_receipts_<END>.json during an active run.
  8. If the user asks for from-scratch generation, run:
    • bash tools/prepare_newsletter_cycle.sh <START> <END> --no-reuse
  9. Before reporting completion, run strict validation:
    • bash tools/validate_pipeline_strict.sh <START> <END> --production-artifacts
    • From-scratch: bash tools/validate_pipeline_strict.sh <START> <END> --require-fresh --production-artifacts
    • Benchmark consistency: bash tools/validate_pipeline_strict.sh <START> <END> --require-fresh --production-artifacts --benchmark-mode feb2026_consistency
  10. If strict validation fails, continue fixing until it passes or explicitly report the blocker.
  11. Record phase receipts immediately after each artifact write:
  • bash tools/record_phase_receipt.sh <START> <END> <phase_id> <artifact_path>
  1. Do not defer receipts until the end of the run.
  2. Use canonical phase_id values only:
  • phase0_scope_contract
  • phase1a_manifest
  • phase1b_github
  • phase1b_vscode
  • phase1b_visualstudio
  • phase1b_jetbrains
  • phase1b_xcode
  • phase1c_discoveries
  • phase1_5_curator_processed
  • phase1_5_curator_signals
  • phase2_event_sources
  • phase2_events
  • phase3_working_set
  • phase3_curated
  • phase4_output
  • phase4_5_polishing
  • phase4_6_video
  • phase4_scope_results
  • phase4_editorial_review
  1. Curator-note discovery must include both:
  • workspace/curator_notes_*.md
  • workspace/[A-Za-z]*.md (for example workspace/Jan.md) Exclude generated files: curator_notes_processed_*, curator_notes_editorial_signals_*, and newsletter_*.
  1. For the February 2026 benchmark window (2025-12-05 to 2026-02-13), benchmark mode is mandatory before completion:
    • bash tools/validate_pipeline_strict.sh <START> <END> --require-fresh --production-artifacts --benchmark-mode feb2026_consistency
  2. If benchmark mode fails, keep iterating until it passes.
  3. In Phase 2, generate workspace/newsletter_phase2_event_sources_<END>.json before workspace/newsletter_phase2_events_<END>.md, and record both receipts (phase2_event_sources, phase2_events).
  4. For Phase 0, run python3 tools/generate_scope_contract.py <START> <END> before any broad manual scope discovery. If the helper succeeds, treat its output as the Phase 0 artifact.
  5. For orchestrated Phase 3 runs, generate workspace/newsletter_phase3_working_set_<END>.md before any broad rereads of discoveries or reference docs, then record phase3_working_set before any Phase 3 curation edits.
  6. If workspace/newsletter_phase3_curated_sections_<END>.md is absent during Phase 3, initialize it with python3 tools/init_phase3_curated_sections.py <START> <END> and edit that scaffold in place.
  7. When the Phase 3 working set exists and its Missing Data Gate does not flag missing inputs, use it as the primary Phase 3 source. Do not reread raw discoveries, curator notes, LEARNINGS.md, or long reference docs unless the working set explicitly says data is missing.
  8. During Phase 3, replace all TODO markers and HTML comment placeholders in the curated scaffold before recording phase3_curated.

Read the full file on GitHub · 153 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. 11d ago First seen · 153 lines · 30 tokens per session scan A 0014814e4e6a

Subscribe to this mod's changes

customer_newsletter is an agent published in the GitHub repository briancl2/CustomerNewsletter (11 stars, last pushed 3mo ago), licensed MIT. It adds 30 tokens to every session and 2,784 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-30.