seomachine: Command for Claude Code

.claude/commands/rewrite.md

rewrite is a command for Claude Code from TheCraigHewitt/seomachine. It costs 0 tokens per session (2,019 once invoked), scanned A, original, MIT.

A command for revising existing blog posts using analysis results, updated research, brand guidance, and search-engine optimization requirements. SEO means improving content so it can be found in search results.

In plain words
What is it for?
Use it to lightly update, substantially refresh, or restructure an existing blog post with new facts, examples, references, sections, and metadata.
Why use it?
It provides a repeatable way to refresh outdated information, fill missing sections, improve search relevance, and preserve parts of an article that still work.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is TheCraigHewitt/seomachine's own configuration. It tells Claude Code how to work on seomachine 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 seomachine configures →

About the project

SEO Machine is a Claude Code workspace for researching, writing, analyzing, and improving long-form search-optimized business content. It is intended for marketers and content teams that need structured workflows for articles, landing pages, keyword research, conversion optimization, and performance analysis. Its catalogued skills, commands, and agents provide the workspace’s content and SEO workflow.

TheCraigHewitt/seomachine · 7,407 stars · on GitHub · seomachine.io

Reuse

Borrowing it

Nothing to install: this file belongs to TheCraigHewitt/seomachine. 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/TheCraigHewitt/seomachine/main/.claude/commands/rewrite.md
Clone the repo
git clone --depth 1 https://github.com/TheCraigHewitt/seomachine

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 rewrite

README.md
[![agentmods](https://agentmods.dev/badge/commands/thecraighewitt/seomachine/rewrite.svg)](https://agentmods.dev/commands/thecraighewitt/seomachine/rewrite)
Your own site
<a href="https://agentmods.dev/commands/thecraighewitt/seomachine/rewrite"><img src="https://agentmods.dev/badge/commands/thecraighewitt/seomachine/rewrite.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 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,019 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.00000 $0.02019
Opus 5 $0.00000 $0.01009
Sonnet 5 $0.00000 $0.00404
Haiku 4.5 $0.00000 $0.00202

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

Security

Grade A, and why

rewrite 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 8d 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

1 near-identical copy found in the catalogue:

  • rewrite — 100% identical, 0 lines differ
.claude/commands/rewrite.md · 260 lines

How it starts

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

Rewrite Command

Use this command to update and improve existing blog posts based on analysis findings.

Usage

/rewrite [topic or analysis file]

What This Command Does

  1. Takes existing blog post content and improvement recommendations
  2. Rewrites content with updated information and SEO optimization
  3. Maintains original article structure where effective
  4. Adds new sections to fill content gaps
  5. Updates outdated statistics, examples, and references

Process

Pre-Rewrite Review

  • Original Content: Read the existing article thoroughly
  • Analysis Report: Review findings from /analyze-existing if available
  • Research Brief: Check if new research brief exists for updated angles
  • Brand Voice: Verify alignment with current @context/brand-voice.md
  • SEO Guidelines: Apply latest requirements from @context/seo-guidelines.md
  • Competitive Context: Understand what's changed in SERP since original publication

Rewrite Strategy

Determine Scope

Based on analysis, classify the rewrite level:

  • Light Update (20-30% changes): Fix stats, add keywords, improve meta
  • Moderate Refresh (40-60% changes): Restructure sections, expand content, update examples
  • Major Rewrite (70-90% changes): New outline, significant expansion, fresh angle
  • Complete Overhaul (90%+ changes): Essentially new article on same topic
What to Keep
  • Sections that are still accurate and comprehensive
  • Unique insights or perspectives that remain valuable
  • Well-performing structure or formatting
  • Examples or case studies that are still relevant
  • Internal links that remain appropriate
What to Update
  • Outdated statistics with current data (note date/source)
  • Old screenshots or examples with current versions
  • Deprecated terminology or processes
  • Missing keywords in headings and body
  • Weak or missing meta title/description
  • Insufficient internal links
What to Add
  • New sections to fill competitive content gaps
  • Recent industry trends or developments
  • Additional examples or use cases
  • Better introduction hook if current one is weak
  • Stronger conclusion and CTA
  • Missing SEO elements (keywords, links, structure)

Read the full file on GitHub · 260 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. 8d ago First seen · 260 lines · 0 tokens per session scan A 3035ad0ff600

Subscribe to this mod's changes

rewrite is a command published in the GitHub repository TheCraigHewitt/seomachine (7,407 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,019 tokens. 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.