phase-optimize

phase-optimize is a skill for Claude Code from XuanRanL/loamwright-SEO-Skill. It costs 92 tokens per session (2,213 once invoked), scanned A, original, Apache-2.0.

A content-improvement workflow for polishing a draft and checking it before publication. It covers metadata, structured data, links, search visibility, visual layout, calls to action, and quality checks.

In plain words
What is it for?
Use it when a draft is ready for optimization, including humanization, SEO metadata, JSON-LD, internal links, AI-search optimization, Markdown presentation, and lint checks.
Why use it?
It brings many final editing and validation tasks into one process and can identify issues that need repair before publishing.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents.

Part of the xuanran-seo-blog-writer plugin — 68 skills, 34 agents, 4 hooks shipped together

Good fit Use it when a draft is ready for optimization, including humanization, SEO metadata, JSON-LD, internal links, AI-search optimization, Markdown presentation, and lint checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xuanranl/loamwright-seo-skill/phase-optimize
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.

Any agent
npx skills add XuanRanL/loamwright-SEO-Skill --skill phase-optimize
Clone the repo
git clone --depth 1 https://github.com/XuanRanL/loamwright-SEO-Skill

Made for: Claude Code.

Or install xuanran-seo-blog-writer, the plugin that ships this one along with the rest of its 68 skills, 34 agents, 4 hooks.

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 phase-optimize

README.md
[![agentmods](https://agentmods.dev/badge/skills/xuanranl/loamwright-seo-skill/phase-optimize.svg)](https://agentmods.dev/skills/xuanranl/loamwright-seo-skill/phase-optimize)
Your own site
<a href="https://agentmods.dev/skills/xuanranl/loamwright-seo-skill/phase-optimize"><img src="https://agentmods.dev/badge/skills/xuanranl/loamwright-seo-skill/phase-optimize.svg" alt="Measured on agentmods" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,213 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00092 $0.02213
Opus 5 $0.00046 $0.01107
Sonnet 5 $0.00018 $0.00443
Haiku 4.5 $0.00009 $0.00221

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

Security

Grade A, and why

phase-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 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.

skills/phase-optimize/SKILL.md · 177 lines

How it starts

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

Phase Optimize Orchestrator

Polish + multi-gate quality verification + repair loop.

Inputs

Required in workspace/{task_id}/:

  • draft.md (from build phase or external)
  • state.json, research.json, outline.json, citations.json

Stage 1: Polish (matches the orchestrator STAGES table — v3.35 reality sync)

1.  humanizer                     → 43 patterns lint + 5×5 voice/purpose + 3-mode + iterate N≤3
2.  meta-builder                  → title/slug/excerpt/tags/categories/image_search_keywords
3.  category-selector             → BASH: signal-based multi-category from categories-config.json
4.  schema-generator              → JSON-LD blocks (FAQPage/HowTo/ItemList/Dataset for body)
5.  internal-linker               → resolve [INTERNAL-LINK] placeholders + brand link map
6.  geo-content-optimizer         → 6 GEO techniques + engine-specific weights + entity injection
7.  visual-designer               → native-markdown components (tables/stat grids/quotes/TL;DR)
8.  cta-injection                 → BASH: python -m scripts.optimize.cta_injector --task-id {task_id} --project-slug {project_slug} --json
                                     (deterministic .xr-cta-box module from business-context.cta; no-op if project has no config)

Retired / relocated (v3.35 — do NOT dispatch as polish steps):

  • featured-snippet-optimizer → RETIRED, merged into the build-phase citation-capsule-builder stage (FS 83% replaced by AIO; same 40-60w shape).
  • paa-answer-writer → contract enforced by the paa-alignment-check lint gate (Stage 2b below); writers follow the SKILL's wording rules at draft time.
  • voice-search-optimizer → RETIRED (no voice-only tactic exists; zombie-stat discipline). Manual diagnostic CLI only.
  • localization-pass Mode 1 → the locale-spelling-check lint gate (Stage 2b); Mode 2 /locale-audit stays a user-invocable portfolio tool.
  • ai-overview-recovery → a MONITOR-phase playbook (churn-guarded NOT_IN_AI routing via refresh_decision_router), never a per-article polish step. Evidence for all five: references/seo/serp-feature-value-2026.md.

Read the full file on GitHub · 177 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 · 177 lines · 92 tokens per session scan A a0a592d8f1d3

Subscribe to this mod's changes

phase-optimize is a skill published in the GitHub repository XuanRanL/loamwright-SEO-Skill (47 stars, last pushed 21d ago), licensed Apache-2.0. It adds 92 tokens to every session and 2,213 once invoked, about $0.0005 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 skills, from other repositories

geo-platform-optimizer

Platform-specific AI search optimization — audit and optimize for Google AI Overviews, ChatGPT, Perplexity, Gemini, and Bing Copilot individually.

zubair-trabzada/geo-seo-claude · 34 tokens

analytics-insights

Marketing measurement module — builds KPI trees per business model, reporting templates (weekly, monthly, QBR, campaign), anomaly root-cause diagnosis, MMM and incrementality guidance, dark-social tracking, and privacy-first cookieless measurement architecture, including the GA4 AI Assistant channel group for…

indranilbanerjee/digital-marketing-pro · 152 tokens

attribution-report

Run multi-touch attribution analysis on real conversion-path data — applies two or more models side-by-side (first-touch, last-touch, linear, time-decay, position-based, data-driven), computes per-channel attributed revenue and ROAS, assisted-conversion ratios, path-length and time-to-conversion distributions, and…

indranilbanerjee/digital-marketing-pro · 167 tokens

attribution-model

Design a multi-touch attribution strategy — recommends the best-fit model for the business's sales cycle and data maturity, defines credit-distribution rules and lookback windows, maps platform-specific setup (GA4, HubSpot, Salesforce, warehouse), and documents tracking gaps and known blind spots. Triggers on…

indranilbanerjee/digital-marketing-pro · 147 tokens

add-integration

Walk through adding a custom MCP server integration to the plugin — searches npm for an existing MCP package (or scaffolds a custom server from the plugin's guide), generates the exact .mcp.json entry, sets up environment-variable credentials, tests connectivity, and documents the tools the new server exposes.…

indranilbanerjee/digital-marketing-pro · 138 tokens

audience-profile

Build a named, narrative buyer persona document — demographic snapshot, psychographic drivers, jobs-to-be-done, day-in-the-life scenario, buyer journey map, objections with counter-messaging, and content/channel preferences — for the 2-4 personas a brand actually needs. Triggers on…

indranilbanerjee/digital-marketing-pro · 158 tokens