/xuanran-seo-blog-writer:outline-architectfrom xuanran-seo-blog-writer
Designs structured article outlines with per-section word budgets, table/image placements, and citation requirements. Use after format selection to generate a parallelizable outline for section writers.
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.
Converts (format + angle + research) into a structured outline that section-drafter can parallelize across.
Every outline this skill produces MUST include, as the final sections[] entry (preceded by "Further Reading" if a Further Reading section is desired):
// ... earlier content sections ...
{
"index": N-2,
"h2": "Further Reading", // OPTIONAL; if present, MUST come BEFORE References
"word_budget": 100,
"section_intent": "Internal links to companion pillars + 1-3 narrative external pointers",
"citation_capsule_required": false
},
{
"index": N-1,
"h2": "References", // MANDATORY for every format
"word_budget": 200, // accommodates 8-10 APA-7 entries
"section_intent": "APA-7 numbered list of every external source cited in body; link-resolvable URLs/DOIs; ≥1 peer-reviewed when available",
"needs_table": false,
"image_slot": false,
"citation_capsule_required": false,
"is_references_block": true
}
The article signature paragraph is appended at publish time by subskills/publish/wordpress-publisher/ from projects/{slug}/CLAUDE.md — it is NOT a section in the outline (it's a single <hr /> + <p class="article-signature"> after the References block).
The "Further Reading" prose paragraph is OPTIONAL. The "References" <ol> block is MANDATORY for every format — all 24 templates/*.md declare ## References as the closer. An outline that omits References will fail downstream verification at the publish phase and trigger a forced rebuild — emit the section even if citations.json is empty at outline time (the build phase populates it).
state.brief.word_count_targetangle.json (format_id + title + persona + modifiers)research.json (paa, semantic_clusters, competitor_titles, content_gaps)templates/{format_id}.md (24 formats, each with skeleton structure)references/seo/blog-formats-2026.md (format-specific Body structure)workspace/{task_id}/outline.json per schemas/outline.schema.json:
{
"abstract_seed": "After testing 23 rods over 87 trips, we ranked the top 10 fishing rods for 2026.",
"tldr_seed": "The G.Loomis NRX+ is our top pick at $549. For tight budgets, Ugly Stik Elite at $35 punches above its weight.",
"takeaways_seeds": [
"Choose action based on lure weight, not species (saves $100 misbuy)",
"Graphite vs fiberglass: 70/30 rule by use case",
"Best Fishing Rods 2026: G.Loomis NRX+ overall winner",
"Ugly Stik Elite wins under $50",
"Avoid these 3 marketing tricks rod brands use"
],
"sections": [
{
"index": 0,
"h2": "Why fishing rod selection matters more than gear cost",
"h3s": ["What changed in 2025-26", "How rod quality affects catch rate"],
"word_budget": 450,
"needs_table": false,
"image_slot": true,
"youtube_slot": false,
"section_intent": "Establish stakes; hook reader; introduce testing methodology",
"primary_keyword_density_target": 0.012,
"is_featured_snippet_target": false,
"citation_capsule_required": true
},
{
"index": 1,
"h2": "How we tested 23 rods (methodology)",
"h3s": ["Test conditions", "Rating criteria", "Disqualifications"],
"word_budget": 500,
"needs_table": true,
"image_slot": false,
"section_intent": "E-E-A-T Experience signal; tabulate test criteria",
"primary_keyword_density_target": 0.005,
"citation_capsule_required": true
},
{
"index": 2,
"h2": "10 Best Fishing Rods for 2026 (ranked)",
"h3s": ["#1 G.Loomis NRX+", "#2 St. Croix...", "#3...", "#10..."],
"word_budget": 3500,
"needs_table": true,
"image_slot": true,
"youtube_slot": false,
"section_intent": "Core listicle body; product evaluation per item",
"primary_keyword_density_target": 0.010
},
... (more sections)
],
"faq": {
"count": 7,
"seed_questions": [
"What's the best fishing rod under $100?",
"How do I choose between graphite and fiberglass?",
"Is the G.Loomis NRX+ worth the price?",
"What rod action should beginners use?",
"How often should I replace my fishing rod?",
"Does rod length matter for kayak fishing?",
"Are budget rods (under $50) usable for saltwater?"
],
"paa_alignment_pct": 0.71
},
"total_word_budget": 6200,
"expected_h2_count": 8,
"expected_table_count": 3,
"expected_image_count": 6
}
PAA contract (v3.35):
faq.paa_alignment_pctis the outline's ESTIMATE only. The real ">=60% of FAQ from research.paa" contract is MEASURED ON THE DRAFT by the mandatorypaa-alignment-checkstage (scripts/lint/paa_alignment_check.py). Keepseed_questionsin ORIGINAL PAA wording so the draft passes.
[word_count_target × 0.95, word_count_target × 1.05]needs_table: true, with at least 1 in the FIRST HALF (sections[index] < total/2)state.brief.image_count − 1 sections (the cover is
NOT an inline slot: image_count counts cover + inline images, so image_count: 6
means exactly 5 sections carry image_slot: true). When the brief OMITS
image_count (batch briefs are told to), the count is NOT a guess: it resolves to
the default 6 via scripts/_core/image_policy.py — the dispatch prompt hands you
the resolved number. Clarified 2026-07-06 after the old wording ("exactly image_count
sections … cover doesn't count") read two ways and produced a 4-boolean outline for a
4-image article that had to be hand-corrected; the worked example above was itself
half-updated on 2026-08-17 (said 6 → 3), proving the arithmetic must be spelled
once, not per-layer.research.serp_features contains featured_snippet OR ai_overview, mark 1-2 H2s with is_featured_snippet_target: true — consumed (v3.35) by the citation-capsule-builder stage, which gives those sections the most answer-first extractive capsule (FS and AIO select the same shape; the standalone featured-snippet-optimizer is retired). Do NOT emit snippet_format (deprecated orphan field).image_slot: true booleans in
sections[] are the outline's ONLY required image contract; the image-prompt-designer
assigns each slot kind: "chart" or kind: "photo" in image-prompts.json, which is
the slot source of truth for chart-render, the photo pipeline, and the D4/D5
placeholder lint. A top-level image_slots[] array is OPTIONAL legacy detail (no
current producer emits it; the D2/D3 checks that read it are legacy no-ops kept for
backward compatibility). Guidance for the designer handoff still applies: a slot whose
section carries DATA (comparison, %, ranges, matrix, checklist) should become
kind: "chart"; the cover is ALWAYS kind: "photo". Use kind: "chart" when the slot illustrates DATA (a comparison, yield/uplift %, PPFD/DLI/CFM/efficacy numbers, a coverage map, a checklist, a verdict matrix, a spectrum) — these are rendered as real labeled charts (titles/axes/units) by render_data_charts.py, NOT as AI photos (which garble chart text). Use kind: "photo" for scenes. The cover slot is ALWAYS kind: "photo". Prefer making a slot a chart when its section has needs_table: true and the data is genuinely chartable — a labeled chart out-informs a generic stock photo.design_components: [] array to each CONTENT section per the format policy below, so no article ships as a wall of text. Evidence (Princeton GEO, NNG) says SUBSTANCE components (tables, cited-stat blocks, real quotations) out-perform decorative boxes, and over-design (many colored boxes, decorative pull-quotes) measurably hurts — so plan Tier-A first and use Tier-C sparingly. Rules:comparison_table MUST also have needs_table: true (keep them consistent with constraint 3).comparison_table | stat_grid | quotation | tldr_box | checklist | glossary | callout | pull_quote. Full catalog + when-NOT-to: references/style/visual-design-components.md.tldr_box on a SECTION means "answer-first opening paragraph", NOT a nested
## TL;DR H2 — the article-level TL;DR box is auto-emitted by assemble.py from
tldr_seed, and a section-level ## TL;DR H2 empties the parent section and
ships a duplicate #tldr-2 anchor (v3.38.3; 2026-07-09 reviewer bounce). If a
section is a featured-snippet/AIO target, prefer is_featured_snippet_target: true
tldr_box at all. Any other
H2 component box a section carries (## Glossary / ## By the Numbers) belongs at
the section BOUNDARY (after all its H3s), never between H3s.comparison_table on Types/Choosing (first-half), stat_grid on the mechanism/data section, quotation once, glossary on the "What is X" section, checklist on "How to get started".comparison_table (quick/pricing/feature), quotation on the Verdict.checklist as the spine, ≤2 callout (warnings) on failure-mode steps, 1 comparison_table spec.comparison_table or stat_grid per item cluster, ≤1 callout per top pick.comparison_table ("At a Glance"), stat_grid ("By the Numbers"), callout for opinion blocks.quotation, minimal boxes (highest over-design risk — do NOT stack callouts).Every NUMBER that appears in abstract_seed / tldr_seed / takeaways_seeds MUST be
copied verbatim from the section that owns it (the pricing table's ranges, the stat
section's percentages) — never re-derived or re-rounded while writing the seeds. The
2026-07-06 batch shipped one article whose pricing band was stated four different ways
(TL;DR $1,500-$10,000 vs table $1,000-$3,000-start vs FAQ $3,000-$50,000) because seeds
and sections each invented their own restatement. Parallel section writers receive the
seeds as context, so a seed-level drift REPLICATES into sections. Pick the owning
section, write its numbers once, and copy them character-for-character everywhere else
(the independent reviewer now runs an explicit cross-section numeric-consistency sweep
and will bounce drift back as repair work).
Read templates/{format_id}.md (e.g. templates/listicle.md) for the structural skeleton:
The skeleton is the SCAFFOLD. Customize H2 titles based on angle.title and research.competitor_titles (avoid duplicating competitor H2s; find gaps).
Given word_count_target and section count, distribute budgets per format:
For listicle (10 items, 6000w target):
For pillar (8000w target):
For comparison (4000w target):
recommended_next_skill: section-drafter (parallel N agents, one per H2)
templates/*.md (24 format skeletons)references/seo/blog-formats-2026.md (catalog with structural recommendations)schemas/outline.schema.jsonsubskills/build/section-drafter/SKILL.md (downstream)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub xuanranl/loamwright-seo-skill --plugin xuanran-seo-blog-writer75 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.Other plugins' skills for the same job