geo:optimize

geo:optimize is a command for Claude Code from mverab/eGEOagents. It costs 15 tokens per session (409 once invoked), scanned A, original, MIT.

A command that improves a local Markdown or HTML content file for GEO, meaning better visibility in generative search and answer systems. It preserves the file's frontmatter, such as title or metadata settings.

In plain words
What is it for?
Use it to analyze, rewrite, add suitable markup to, and export a local Markdown or HTML file into an optimized output folder.
Why use it?
It gives you a quicker way to analyze and improve one content file without running a full audit. It also keeps the original metadata attached to the result.

Command for Claude Code

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 commands/mverab/egeoagents/geo-optimize
Clone the repo
git clone --depth 1 https://github.com/mverab/eGEOagents

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 geo:optimize

README.md
[![agentmods](https://agentmods.dev/badge/commands/mverab/egeoagents/geo-optimize.svg)](https://agentmods.dev/commands/mverab/egeoagents/geo-optimize)
Your own site
<a href="https://agentmods.dev/commands/mverab/egeoagents/geo-optimize"><img src="https://agentmods.dev/badge/commands/mverab/egeoagents/geo-optimize.svg" alt="Measured on agentmods" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 409 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.00015 $0.00409
Opus 5 $0.00008 $0.00204
Sonnet 5 $0.00003 $0.00082
Haiku 4.5 $0.00002 $0.00041

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

Security

Grade A, and why

geo:optimize 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 4d 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.

.claude/commands/geo-optimize.md · 41 lines

What it actually says

/geo:optimize Command

Quick optimization of local content files.

Workflow

  1. Validate MCPs - Run validation-doctor; if missing, provide setup snippets
  2. Frontmatter Extraction - If the input file contains frontmatter (YAML block between --- or TOML block between +++), extract and preserve this block completely. Do not pass the frontmatter to the analyzer or rewriter agents. Only pass the content body.
  3. Analyze - Read and score the content body (source of truth)
  4. Rewrite - Apply GEO optimization to the content body based on analyzer output
  5. Schema - Generate appropriate markup based on analyzer output
  6. Reassemble & Export - Output the optimized version to the geo-output/optimized/ directory:
    • markdown: Reassemble the file by prepending the original, unmodified frontmatter to the optimized content body. Save as [name].md.
    • html: Convert the optimized content body to HTML (preserving all headers, tables, lists, and formatting). Insert the original frontmatter properties into appropriate HTML metadata tags (<meta> or structured header) inside a clean, modern HTML document template. Save as [name].html.

Output

  • Optimized content (with frontmatter preserved or converted to HTML metadata)
  • Schema markup if applicable
  • Change summary with impact estimates

Example Usage

/geo:optimize ./content/homepage.md
/geo:optimize ./content/homepage.md html
/geo:optimize ./blog/new-post.md markdown
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. 4d ago First seen · 41 lines · 15 tokens per session scan A e435aa59fd4a

Subscribe to this mod's changes

geo:optimize is a command published in the GitHub repository mverab/eGEOagents (172 stars, last pushed 3d ago), licensed MIT. It adds 15 tokens to every session and 409 once invoked, about $0.0001 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.