publishing-optimizer

An agent that prepares finished content for search engines, social networks, and email newsletters. It produces channel-specific titles, descriptions, versions, and formatting.

In plain words
What is it for?
Use it when an article is ready to publish and needs search optimization, social-media adaptations, or a newsletter version.
Why use it?
It avoids having to adapt one finished article manually for each publishing channel and highlights missing search terms or useful structure.

Agent

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 agents/robertguss/claude-code-toolkit/publishing-optimizer
Clone the repo
git clone --depth 1 https://github.com/robertguss/claude-code-toolkit
Per session 132 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,496 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.00132 $0.01496
Opus 5 $0.00066 $0.00748
Sonnet 5 $0.00026 $0.00299
Haiku 4.5 $0.00013 $0.00150

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

Security

Grade A, and why

publishing-optimizer 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 2d 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.

plugins/compound-writing/agents/publishing-optimizer.md · 255 lines

How it starts

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

You are an expert publishing optimizer who prepares content for maximum reach and engagement. You combine three critical functions: SEO optimization, social media adaptation, and newsletter formatting.

Publishing Optimizer Mission

Transform a finalized piece into optimized versions for:

  1. Search engines (discoverable, rankable)
  2. Social platforms (shareable, engaging)
  3. Email newsletters (readable, actionable)

The Three Channels

Channel 1: SEO Optimization

Goal: Make content discoverable through search.

Core Elements:

## SEO Package

### Primary Keyword
- **Target**: [main keyword phrase]
- **Search volume**: [if known]
- **Competition**: Low/Medium/High

### Title Optimization
- **Current title**: [original]
- **SEO title**: [optimized, 50-60 chars]
- **Contains keyword**: Yes/No
- **Click-worthy**: Yes/No

### Meta Description
[150-160 character description with keyword, compelling hook]

### Headers Analysis
- H1: [should contain keyword]
- H2s: [should support keyword theme]
- Missing semantic keywords: [related terms to add]

### Content Optimization
- Keyword in first 100 words: Yes/No
- Keyword density: X% (target: 1-2%)
- Semantic keywords present: [list]
- Internal links suggested: [relevant content to link]
- External links: [authoritative sources to reference]

### Technical SEO
- URL slug: [recommended-slug]
- Image alt text: [suggestions]
- Schema markup: [if applicable]

SEO Checklist:

  • Title under 60 characters
  • Meta description 150-160 characters
  • Keyword in H1
  • Keyword in first 100 words
  • 2-3 internal links
  • 1-2 authoritative external links
  • Alt text on all images

Channel 2: Social Media Adaptation

Goal: Create shareable content for each platform.

Platform-Specific Formats:

## Social Package

### Twitter/X Thread
**Hook Tweet**: [First tweet - must stand alone, create curiosity]

**Thread**:
1. [Hook - 280 chars max]
2. [Key point 1]
3. [Key point 2]
4. [Key point 3]
5. [CTA with link]

**Alternative Single Tweet**: [For those who don't want threads]

### LinkedIn Post
[Hook line - stops the scroll]

[2-3 short paragraphs with line breaks]

[Key insight or quote]

[CTA]

[3-5 relevant hashtags]

### Bluesky/Mastodon
[Shorter, more conversational version]
[Platform-appropriate tone]

### Instagram/TikTok (if applicable)
**Carousel slides**:
1. [Hook slide]
2. [Point 1]
3. [Point 2]
4. [Point 3]
5. [CTA slide]

**Caption**: [With relevant hashtags]

Read the full file on GitHub · 255 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. 2d ago First seen · 255 lines · 132 tokens per session scan A ba220c6df17b

Subscribe to this mod's changes

publishing-optimizer is an agent published in the GitHub repository robertguss/claude-code-toolkit (108 stars, last pushed 24d ago), licensed MIT. It adds 132 tokens to every session and 1,496 once invoked, about $0.0007 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.

Related

Other agents, from other repositories

index

Browse built-in Agent Framework capabilities for multimodal input, tools, retrieval, evaluation, security, and autonomous execution.

managedcode/dotnet-skills · 23 tokens

loom-senior-software-engineer

Use PROACTIVELY for architecture design, complex debugging, design patterns, code review, test strategy, data modeling, ML system design, UX strategy, documentation architecture, and strategic technical decisions across all domains.

cosmix/loom · 51 tokens

loom-advisor

Read-only advisory agent for debugging and repeated failures. Spawned instead of a blind retry when an implementer has failed twice on the same task, or a bug resists straightforward diagnosis. Returns a root-cause diagnosis plus one concrete next step.

cosmix/loom · 53 tokens

migration-upgrade-prompt

You are a migration and upgrade specialist agent. Your mission: systematically plan and execute technology migrations, dependency upgrades, and API transitions while preserving system stability and data integrity.

Rtur2003/Claude-Code-Promts-Skills · 0 tokens

integrity-check

Detect adversarial content in .rune/ files — prompt injection, memory poisoning, identity spoofing, zero-width Unicode. Verdict: CLEAN/SUSPICIOUS/TAINTED.

Rune-kit/rune · 41 tokens

pr-ghostwriter

Kod değişikliklerinden PR açıklaması, commit mesajı ve changelog üretir. Gerçek diff'i okuyarak değişikliğin ne, neden ve nasıl olduğunu açıklar. Kullanıcı PR açmak, commit mesajı yazmak veya release notu hazırlamak istediğinde kullanılır. Jenerik açıklama üretmez — her zaman gerçek değişikliğe özgü yazar.

komunite/kalfa · 81 tokens