/xuanran-seo-blog-writer:rewritefrom xuanran-seo-blog-writer
Rewrites and optimizes published articles to recover ranking decay. Runs a 6-phase audit-to-summary workflow preserving author voice while fixing AI detection, fabricated stats, and freshness.
Ships in xuanran-seo-blog-writer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
For ranking-decay rescue, refresh cycles, or quality lift on already-published articles. Preserves the author's voice while applying 6 optimization pillars.
/rewrite <file> — full optimization pass/update <file> — freshness-only mode (minimal changes, focus on dates + stats)content-refresher when GSC + drift signals indicate rank decayoutcome_tagger output for loser-tagged articlesRead the post — detect format (MDX / markdown / HTML / WordPress block)
Run quality checklist against references/seo/seo-checklist-2026.md:
lastUpdated, dateModified)AI content detection scan:
references/style/banned-words.mdVideo embed check — if 0 YouTube embeds, flag (strongest AI visibility correlation 0.737)
Cannibalization check:
Calculate current score across 5 categories:
Present audit summary + AI detection results + video status + cannibalization status
Plan mode — section-by-section optimization plan, wait for user approval
Identify the post's core topic from existing content
Find replacement statistics for fabricated/unsourced data:
python -m scripts.fetch.tavily_search "{topic} study 2025 2026 data statistics" --depth advanced
Target Tier 1-3 sources only.
Find images if post has <3:
site:pixabay.com [topic keywords]site:unsplash.com [topic keywords]Plan charts if post has <2:
If post needs more visual elements, invoke chart-generator subskill:
<figure> wrapperlastUpdated: "YYYY-MM-DD" (today)date unchangedcoverImage + coverImageAlt + ogImage if missingEvery H2 section MUST open with a 40-60 word paragraph containing:
[Number]%, [Number]x, unsourced claims([Source Name](url), year)For each H2 section, generate or improve a citation capsule:
references/style/banned-words.mdIf post lacks summary box, add immediately after introduction:
> **Key Takeaways**
> - [Core finding with statistic and source]
> - [Second key insight]
> - [Third actionable takeaway]
3-5 bullets, 40-60 words combined, self-contained.
Configurable label per brand: "The Bottom Line" / "Quick Summary" / "What You Need to Know" / "TL;DR".
🔴 Do NOT inject [ORIGINAL DATA] / [PERSONAL EXPERIENCE] / [UNIQUE INSIGHT] markers. They are FORBIDDEN: render_lint L6 hard-vetoes them and they are stripped at publish, so they can never reach a reader. (This step previously told you to inject them — a Rule-11 fan-out miss, fixed 2026-07-14.) Write the substance as plain prose instead:
If post lacks original value markers:
After rewriting, verify ALL quality gates pass:
coverImage + ogImage)## Optimization Complete: [Title]
### Score Change
- Before: [X]/100 ([Rating])
- After: [Y]/100 ([Rating])
- [Per-category breakdown]
### AI Detection
- Before: ~[X]% AI-detected
- After: ~[Y]% AI-detected
- Phrases replaced: [N]
- Burstiness improved: [SD-before] → [SD-after]
### Cannibalization
- [Status: none / flagged N posts / resolved]
### Changes Made
- [X] statistics replaced with sourced data
- [X] SVG charts added (types: ...)
- [X] images added
- Answer-first formatting applied to [N] H2 sections
- FAQ schema with [N] questions
- TL;DR box: [added/updated]
- Information gain markers: [N]
- Citation capsules: [N] across H2 sections
- AI phrases replaced: [N]
- lastUpdated → [date]
- Self-promotion reduced to [N] mentions
### Ready for
- /audit <file> to verify final score
- /publish (republish to WP) or manual deploy
After the rewrite is republished to the live URL, RECORD it so phase-monitor can verify the
ranking delta at T+14/T+30 (Rule 6: this is the real executor for the "fixer skills should call
--record" wiring — not a prose note). Capture a before/after of the single most material change
(e.g. the title or the primary H2 answer) and the driving query:
python -m scripts.monitor.optimization_journal --record \
--site {project_slug} --post-id {post_id} --url {live_url} \
--type rewrite --query "{primary_keyword}" \
--before "{before_snippet}" --after "{after_snippet}"
Then phase-monitor runs optimization_journal --verify --site {slug} --window 14 to measure whether
the rewrite actually moved the metric. Skip --record only for a pure typo fix (no rank intent).
When invoked as /update <file>, focus on freshness:
lastUpdated in frontmatter/locale-audit then /translate/humanize/schema/factcheck/rewrite is the comprehensive umbrella; use targeted skills when scope is narrower.
Typical 2,000-word article full rewrite:
Update mode is cheaper (~$0.15) since it's mostly date + 1-2 stats.
subskills/optimize/humanizer/SKILL.md — Phase 4l AI-detection scrubbingsubskills/build/fact-check-and-citation/SKILL.md — Phase 4d source verificationsubskills/build/citation-capsule-builder/SKILL.md — Phase 4k capsule generationsubskills/monitor/content-refresher/SKILL.md — auto-detects when to invoke /rewritereferences/seo/seo-checklist-2026.md — full quality scoring rubricWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
rewrite, content-optimization, seo, ai-detection, article-refresh, rank-recovery
75 skills in this plugin
/ai-overview-recovery4-phase recovery when Google AI Overview drops an article. Measure damage → diagnose skip reason → rewrite → T+7/14/28 monitor. Triggered by drift-detector AIO loss alert OR /aio-recovery command./ai-visibility-trackerActive probe of ChatGPT/PPLX/Claude/Gemini to check if our article is cited. Compares to projects/{slug}/geo-baseline.json. Triggered by /ai-visibility command or daily/weekly schedule./batch-articleRun /article end-to-end for a list of keywords. Each keyword goes through the FULL pipeline (research → plan → build → optimize → publish → monitor baseline). Use for agency-scale operations — drop 10-500 keywords, get 10-500 published articles. Resumable across sessions./batch-job-pollerSupplemental recovery tool for orphan official-OpenAI image batches (batch is only ever used on the official-OpenAI fallback path; the primary openclawroot relay has no Batch API). The canonical image flow (openai-image-generator) runs realtime and does not require this skill. Use only to diagnose stuck batches or download images from a batch that completed after the main pipeline gave up./brand-auto-tunerAnalyze winner vs loser articles to find features that distinguish them, then suggest brand-guideline.yaml updates. Use after ≥10 articles have outcome tags. Closes the data-loop: production → measurement → learning → next-cycle adjustment./brand-guideline-maker7-Block interactive interview + URL Analysis triangulation. Builds projects/{slug}/brand-guideline.yaml that gets injected into every /article draft. The single most impactful one-time investment per brand — wrong voice = wrong content forever. Triggered by /brand-guideline command, OR after /init Stage 5 when voice-discrepancy detected.npx claudepluginhub xuanranl/loamwright-seo-skill --plugin xuanran-seo-blog-writerOther plugins' skills for the same job