Skills Agentes

Blog Cluster

Motor de clusters temáticos semánticos: investiga keywords desde el SERP, agrupa por intención y solapamiento, construye una arquitectura hub-and-spoke, genera un mapa SVG y ejecuta el cluster llamando a blog-write.

Estrellas
2.1k

en todo el repo

Actividad
66

0–100, la ruta de este skill

Actualizado
hace 19 días

último commit aquí

Commits
9

últimos 90 días

Contexto
4.9k tok

167 tok en reposo

Paquete
4 archivos

46 KB

Instalar

Funciona con cualquier agente que lea SKILL.md

npx -y skills add AgriciDaniel/claude-blog --skill blog-cluster --agent claude-code

Se instala solo en este repositorio.

Qué hace

  • Fase plan: expande la keyword semilla a un universo de 30-50 frases y agrupa usando el solapamiento de resultados del top 10 como señal principal
  • Diseña el hub-and-spoke: un pilar de 2.500-4.000 palabras y de 5 a 15 spokes de 1.200-1.800, cada uno con keyword principal única
  • Genera `cluster-plan.json` y un `cluster-map.html` estático sin JavaScript, con todas las etiquetas escapadas
  • Fase execute: llama a blog-write post a post con un bloque de contexto de cluster e inyecta los enlaces internos hacia atrás
  • Cierra con `cluster-scorecard.md`: estado por post, nota media, cohesión, auditoría de enlaces y chequeo de canibalización

Úsalo cuando

  • El usuario dice "blog cluster", "topic cluster", "cluster plan", "pillar content" o "hub and spoke"

No lo uses cuando

  • Solo quieres detectar solapamiento en contenido ya publicado: eso es blog-cannibalization
  • Solo quieres programar fechas de publicación alrededor de los clusters: eso es blog-calendar

Qué lo activa

Di cualquiera de estas frases y el agente debería cargar este skill.

  • Planifica un cluster a partir de la keyword email marketing
  • Ejecuta el plan de cluster y escribe todos los posts

SKILL.md

En inglés

Blog Cluster (Semantic Topic Cluster Engine)

Plans and executes entire interlinked content ecosystems from a single seed keyword. Three layers: Semantic Clustering (the brain), Cluster Architecture (the structure), and Execution Engine (the machine).

Adapted from the semantic-cluster-engine submission by Lutfiya Miller (winner, AI Marketing Hub Pro Challenge, March 2026, 95/100 Exemplary). Original repository: https://github.com/Drfiya/semantic-cluster-engine This port keeps the Plan + Execute architecture and the cluster context innovation, removes brand-specific (ScienceExperts.ai) styling and image prompts, and routes through claude-blog's existing sub-skills.

Commands

Command What it does
/blog cluster Interactive. Asks whether to plan or execute.
/blog cluster plan <seed-keyword> SERP-based semantic analysis. Outputs cluster plan + map.
/blog cluster plan --from strategy [path] Imports existing blog-strategy cluster build plan and validates against SERP data.
/blog cluster execute [path-to-plan] Sequential blog-write calls with cluster context and auto-interlinks.

Key references (load on demand)

  • references/semantic-clustering.md (SERP overlap analysis, intent classification, keyword universe expansion)
  • references/cluster-architecture.md (hub-and-spoke specs, schema strategy, link-density rules)
  • references/execution-workflow.md (execution order, context injection, scorecard, failure handling)

Cross-references to existing claude-blog skills

Skill When this skill calls it
/blog strategy Upstream planning. plan --from strategy consumes its Cluster Build Plan tables.
/blog write Per-post execution. Each spoke and the pillar are produced by blog-write with a prepended cluster-context block.
/blog chart Invoked internally by blog-write for inline SVG charts. No direct call from this skill.
/blog image Optional hero image generation per post. Model selection is delegated to blog-image; prefer current Gemini image models when available.
/blog seo-check Recommended after execution for per-post on-page validation.
/blog cannibalization Recommended after execution to confirm zero keyword overlap across the cluster.
/blog schema Recommended after execution to add BreadcrumbList, ItemList, and Article schema.

This skill never modifies files belonging to other skills. It calls them via the Task tool or as orchestrated sub-skills.

Command Routing

  1. Parse the user's command to determine the sub-command.
  2. If the user typed only /blog cluster, ask: "Would you like to plan a new cluster or execute an existing plan?"
  3. Route:
    • plan <keyword> to the Plan Phase (below)
    • plan --from strategy [path] to the Strategy Import flow (below)
    • execute [path], build, or run to the Execute Phase (below)

Plan Phase: /blog cluster plan <seed-keyword>

Reference: references/semantic-clustering.md

Step 1. Seed keyword expansion

Use WebSearch to expand the seed into a keyword universe of 30 to 50 phrases:

  1. Direct search of <seed> to capture related searches and "People also ask".
  2. Long-tail expansion: <seed> guide, <seed> tips, <seed> tools, <seed> examples, <seed> vs, best <seed>, how to <seed>.
  3. Question mining: what is <seed>, how does <seed> work, why <seed>, <seed> for beginners.
  4. Intent variants: add commercial modifiers (best, top, review, comparison, pricing), informational modifiers (guide, tutorial, explained, examples), and transactional modifiers (buy, download, tool, software, service).
  5. Year freshness: <seed> 2026.

Step 2. Semantic clustering

Group the expanded keywords using the priority rules in references/semantic-clustering.md:

  1. SERP Overlap Analysis is the primary signal. Two keywords with 4 or more shared top-10 results usually target the same intent and should be considered for one post.
  2. Intent Classification assigns each keyword to informational, commercial, transactional, or navigational.
  3. Entity Mapping identifies the people, products, frameworks, and organizations Google associates with the topic.
  4. Grouping combines keywords that share intent and topical proximity. Each group becomes one branch of the hub and spoke.

Step 3. Cluster architecture design

Reference: references/cluster-architecture.md

Build the hub and spoke:

  • Pillar (hub): targets the broadest keyword. Word count 2,500 to 4,000. Template pillar-page. Links down to every spoke.
  • Spokes: each targets a long-tail cluster. Word count 1,200 to 1,800. Template auto-selected by intent. Links up to the pillar and across to siblings.

Cluster formation rules:

  • Normal mode: 2 to 5 clusters per pillar, 2 to 4 spokes per cluster, total 1 pillar plus 5 to 15 spokes.
  • Small-cluster mode: for narrow seeds, allow 1 pillar plus 2 to 4 spokes only after warning the user and asking for confirmation.
  • Every spoke targets a unique primary keyword (zero cannibalization).

Step 4. Internal link matrix

For each spoke S:

  • S to Pillar (always; anchor text uses the pillar's primary keyword).
  • Pillar to S (always; anchor text uses S's primary keyword).
  • S to other spokes in the same cluster (2 to 3 links each, contextual anchors).
  • S to spokes in adjacent clusters (0 to 1 links, only when semantically relevant).

Verify every spoke has at least 2 incoming links. Count total planned interlinks.

Step 5. Generate output files

All plan and execute artifacts go into a single subdirectory of the current working directory. Canonicalize the output directory, refuse symlinks, and reject writes outside the cluster directory. Slugs must match lowercase letters, numbers, and hyphens only; reject absolute paths, .., path separators inside slugs, and hidden control characters.

<cwd>/
└── cluster-<seed-keyword-slug>/
    ├── cluster-plan.json
    ├── cluster-map.html
    ├── pillar-<slug>.md       (Execute Phase)
    ├── <spoke-slug>.md        (Execute Phase, one per spoke)
    └── cluster-scorecard.md   (Execute Phase)

cluster-plan.json schema

{
  "seed_keyword": "<seed>",
  "generated_at": "YYYY-MM-DDTHH:MM:SSZ",
  "pillar": {
    "id": "P",
    "title": "Title of the pillar",
    "primary_keyword": "broadest keyword",
    "secondary_keywords": ["..."],
    "search_volume_estimate": "high|medium|low",
    "template": "pillar-page",
    "word_count_target": 3000,
    "cluster": "pillar"
  },
  "clusters": [
    {
      "name": "Cluster A: Theme",
      "intent": "informational|commercial|transactional",
      "color": "#2563eb",
      "posts": [
        {
          "id": "A1",
          "title": "Post title",
          "primary_keyword": "long-tail keyword",
          "secondary_keywords": ["..."],
          "search_volume_estimate": "high|medium|low",
          "template": "how-to-guide",
          "word_count_target": 1500,
          "links_to": ["P", "A2"],
          "links_from": ["P", "A2"]
        }
      ]
    }
  ],
  "total_posts": 9,
  "total_interlinks": 23,
  "estimated_total_words": 18000
}

Note: volume estimates are relative indicators (high, medium, low) derived from SERP signals, not absolute search volumes. For precise data, the user should consult Ahrefs, SEMrush, or DataForSEO (claude-blog provides the seo-dataforseo companion sibling).

cluster-map.html (XSS-safe)

A static, self-contained HTML file with an embedded SVG visualization. Hard rules for the writer:

  • No inline <script> blocks. No onclick, onmouseover, or any on* event attributes anywhere in the document.
  • No external script <src> references.
  • Every text label drawn into the SVG (titles, keywords, cluster names) must be escaped: replace & with &amp;, < with &lt;, > with &gt;, " with &quot;, and ' with &#39; before insertion.
  • Hover effects use CSS :hover only. No JavaScript.
  • Use <title> child elements inside SVG nodes for accessible tooltips (browser native, no script).

The map shows: a central pillar node, color-coded cluster groups radiating outward, spoke nodes within each cluster, and link lines connecting related nodes.

Step 6. Present plan to user

Show a summary table of clusters and posts, total interlinks, estimated words, and the file paths. Ask for confirmation before proceeding to execution. Wait for explicit user approval. Do not auto-execute.


Strategy Import: /blog cluster plan --from strategy [path]

Bridges blog-strategy output into a cluster plan.

  1. Locate strategy output. Scan the current directory (or the user-specified path) for a file containing a Cluster Build Plan table with the columns # | Spoke Topic | Template | Target Keyword | Word Count | Internal Links (the format produced by /blog strategy).
  2. Parse the table. Extract the pillar row (marked P), the spoke rows, template assignments, target keywords, word counts, and link relationships.
  3. Validate and enrich. Run SERP overlap validation (Plan Phase Step 2) on each keyword. Add volume estimates and verify cluster groupings semantically.
  4. If SERP data contradicts the strategy table, flag the conflict; do not silently override the user's strategic intent.
  5. Generate cluster-plan.json and cluster-map.html using the same outputs as the standard Plan Phase.
  6. Present the converted plan with any SERP-based adjustments highlighted, and wait for user confirmation.

Execute Phase: /blog cluster execute [path-to-plan]

Reference: references/execution-workflow.md

Step 1. Load plan

Read cluster-plan.json from the user-specified path or the most recent cluster-*/cluster-plan.json in the working directory. Validate JSON structure. If no plan exists, return: "No cluster plan found. Run /blog cluster plan <seed-keyword> first."

Before reading a user-supplied plan path, canonicalize it relative to the current working directory. Reject absolute paths, .., symlinks, non-cluster-plan.json filenames, and any path outside the selected cluster directory. Constrain all generated post, image, map, and scorecard outputs to that cluster directory.

Step 2. Determine execution order

  1. Pillar page first (so spokes can link to a known filename).
  2. Then spokes, ordered by (cluster priority, search_volume_estimate desc, post id alphabetical). Cluster priority is the sum of estimated volumes within the cluster (highest first).
  3. Alternating between clusters when more than 2 clusters exist diversifies the early content spread.

Step 3. For each post: build cluster context and call blog-write

Construct the cluster context block (full schema in references/execution-workflow.md) and prepend it to the topic prompt passed to the Task tool invoking blog-write. The context tells blog-write the cluster name, the post's role (pillar or spoke), the primary and secondary keywords, the chosen template, the word count target, the list of already-written posts (link to these), the list of upcoming posts (use [INTERNAL-LINK] placeholders), and the linking requirements for this post.

Evidence provenance propagation. The cluster context includes this directive for every spoke and the pillar: "Keep material claims traceable to sources that support them. Record dates, publisher/title details, retrieval notes, methodology, and limitations when they help identify or interpret the source. Use the publication's citation style. Drop unverifiable statistics and replace contradicted ones."

This cascade preserves evidence discipline across batch execution without turning a fixed source-record format into a score or gate. See skills/blog/references/flow-alignment.md.

The context also instructs blog-write to run autonomously: skip topic clarification, skip outline approval, do not auto-detect template, do not pause.

Output format: standard markdown (.md) by default, matching blog-write's default. If the user explicitly requests HTML, set the platform target accordingly. Do not impose any brand-specific CSS or wordmark; that is the user's responsibility downstream.

Step 4. Per-post optional hero image

If blog-image is available, call /blog image generate via the Task tool to produce a 16:9 hero image for the post and place it in cluster-<slug>/images/<post-slug>-hero.png. Delegate provider selection to blog-image, prefer current Gemini image models when available, and record the model ID in the scorecard. If image generation is unavailable or fails, log a warning and continue without images. Image generation is non-blocking.

Step 5. Backward link injection

After each post is written:

  1. Scan all previously written posts in the cluster directory for [INTERNAL-LINK: keyword -> filename.md] markers that reference the just-written post.
  2. Replace each match with a real markdown link: [keyword](filename.md).
  3. Add a cluster metadata block to the post's frontmatter on first pass (cluster:, cluster_role:, cluster_group:).

Step 6. Failure handling

If blog-write returns a quality-gate failure for any post, stop the batch immediately. Save progress, mark the failed post and all remaining posts as skipped, and tell the user to inspect or retry the failed post manually before continuing. Do not keep generating 5 to 15 posts after a quality failure, because that can create scaled-content-abuse risk.

If blog-write fails before content is generated because of a timeout or runtime error, log the failure in the scorecard and stop unless the user explicitly resumes after checking the cause.

If the user cancels mid-execution, save progress and note completed posts. On the next /blog cluster execute, detect already-written files and resume from the next unwritten post.

Step 7. Generate cluster-scorecard.md

After all attempted posts complete, produce a markdown scorecard covering:

  • Per-post status (written, failed, skipped) with file path and word count.
  • Per-post quality score (call /blog analyze on each in parallel via Task) and the cluster average.
  • Cluster cohesion score: a 0 to 100 composite of link reciprocity, intent diversity, template diversity, and keyword coverage (formula in references/execution-workflow.md).
  • Internal-link audit: outgoing and incoming counts per post, orphan flags, unresolved [INTERNAL-LINK] markers.
  • Cannibalization check: any two posts sharing primary keyword, or any pair with greater than 70% keyword overlap. Recommend running /blog cannibalization for a deeper pass.
  • Image generation summary: hero images generated vs. skipped.
  • Recommended next actions: schema generation (/blog schema), per-post SEO validation (/blog seo-check), repurposing (/blog repurpose).

Step 8. Final report

Return a concise summary to the user with totals, the scorecard path, and the next-action commands.


Output Artifacts (summary)

File Phase Format
cluster-plan.json Plan JSON
cluster-map.html Plan Static HTML + inline SVG, no JavaScript
pillar-<slug>.md Execute Markdown (or platform-detected format)
<spoke-slug>.md Execute Markdown (or platform-detected format)
images/<post-slug>-hero.png Execute (optional) PNG via blog-image
cluster-scorecard.md Execute Markdown

Quality Gates

Gate Check Action on fail
Cluster minimum At least 2 clusters with at least 2 posts each Warn during plan; suggest expansion
Cannibalization No two posts share primary keyword Block execution; require plan adjustment
Link completeness Every post has 2 or more incoming internal links Warn in scorecard
Length estimate Pillars often need more depth than spokes Pass to blog-write as optional planning context; never enforce a raw word minimum
Intent diversity At least 2 distinct intents across clusters Warn in scorecard
Template diversity At least 3 distinct templates across the cluster Warn in scorecard

Error Handling

Scenario Action
Seed keyword too broad (more than 50 keyword variants) Suggest narrowing the focus before clustering.
Seed keyword too narrow (fewer than 5 keyword variants) Offer a smaller cluster (pillar plus 2 to 3 spokes) or suggest broadening.
WebSearch unavailable Produce a draft plan only and require user confirmation, imported keyword data, or SERP data before execution.
blog-write fails a quality gate or content generation Stop the batch, save progress, mark remaining posts as skipped, and require manual inspection or explicit resume.
blog-write not installed Return: "blog-cluster requires claude-blog. Install it before running this skill."
cluster-plan.json malformed Validate JSON and report parse errors with line numbers.
User cancels execution Save progress; resume on next invocation with already-written posts auto-detected.
Optional image generation unavailable or failed Skip hero image generation; warn once at start of execute, not per post.

Differentiation from related claude-blog skills

Skill Role What blog-cluster adds
blog-strategy Plans 3 to 5 content pillars and draws hub-and-spoke diagrams as a strategic exercise Performs SERP-based semantic clustering, then executes the plan into real, interlinked posts.
blog-calendar Schedules publication dates around topic clusters Does not build clusters or write posts; this skill does both.
blog-cannibalization Detects keyword overlap in existing content Diagnostic only. blog-cluster prevents cannibalization at the planning stage.
blog-write Writes one post at a time blog-cluster orchestrates many blog-write calls with shared cluster context and bidirectional linking.
blog-outline Generates a single SERP-informed outline blog-cluster generates an outline-equivalent across an entire cluster, then writes the posts.

blog-cluster is the general contractor: it analyzes the topic, draws the data-driven plan, and builds the entire structure from a single seed keyword.

Reproducido de AgriciDaniel/claude-blog bajo licencia MIT. Leer esta página en markdown.

Archivos

4 archivos en el paquete. Solo se lee SKILL.md al activarse — las referencias se cargan si el skill decide que las necesita.

Antes de instalar

Requiere Claude Code y claude-blog instalado, porque delega la escritura de cada post en blog-write.

Detalles

Categoría
SEO y GEO
Licencia
MIT
Recursos incluidos
referencias
Código fuente
Ver SKILL.md

Etiquetas

Más de AgriciDaniel/claude-blog

Este repo incluye 33 skills. Si instalas uno, normalmente ya tienes los demás. Ver el pack claude-blog entero y su comando de instalación

Blog

2.1k

Motor de blog de ciclo completo con 31 subskills, 12 plantillas, puntuación sobre 100 y 5 agentes. Enruta cada petición a la subskill correcta: escribir, reescribir, analizar, auditar, schema, clusters y publicación multilingüe.

Costo de contexto al activarse
6.2k tok
Tamaño del paquete
35 archivos
Última actualización
hace 19 días
seo geo

Integración con las APIs de Google para rendimiento de blog: PageSpeed Insights, CrUX con 25 semanas de histórico, Search Console, URL Inspection, Indexing API, GA4, NLP de entidades, YouTube y Keyword Planner.

Costo de contexto al activarse
3.3k tok
Tamaño del paquete
24 archivos
Última actualización
hace 19 días
seo geo

Consulta cuadernos de Google NotebookLM para obtener respuestas ancladas en tus propios documentos y con citas: gestiona la biblioteca de cuadernos, la autenticación con Google y el descubrimiento de contenido.

Costo de contexto al activarse
2.5k tok
Tamaño del paquete
15 archivos
Última actualización
hace 19 días
investigacion

Genera narración en audio de posts con Google Gemini TTS: resumen hablado, lectura completa o diálogo tipo pódcast a dos voces, con 30 voces y salida MP3 más el código de inserción HTML5.

Costo de contexto al activarse
2.2k tok
Tamaño del paquete
8 archivos
Última actualización
hace 19 días
redaccion contenido

Generación y edición de imágenes con IA para contenido de blog mediante Gemini por MCP: portadas, ilustraciones, tarjetas sociales y OG, con 6 modos de dominio y retorno silencioso si el MCP no está disponible.

Costo de contexto al activarse
3.4k tok
Tamaño del paquete
6 archivos
Última actualización
hace 19 días
redaccion contenido

Integra el marco FLOW (Find, Optimize, Win) para blogs: ejecuta los prompts de cada etapa desde una base de 30 prompts aplicables a blog, con licencia CC BY 4.0 y sincronización desde el repositorio de FLOW.

Costo de contexto al activarse
2k tok
Tamaño del paquete
36 archivos
Última actualización
hace 19 días
seo geo

Skills relacionados

Blog

2.1k

Motor de blog de ciclo completo con 31 subskills, 12 plantillas, puntuación sobre 100 y 5 agentes. Enruta cada petición a la subskill correcta: escribir, reescribir, analizar, auditar, schema, clusters y publicación multilingüe.

Costo de contexto al activarse
6.2k tok
Tamaño del paquete
35 archivos
Última actualización
hace 19 días
seo geo

Evaluación de salud de todo el blog: revisa cada archivo buscando puntuaciones de calidad, páginas huérfanas, canibalización, contenido obsoleto y preparación para citas de IA, y devuelve una cola de acciones priorizada.

Costo de contexto al activarse
2.4k tok
Tamaño del paquete
1 archivo
Última actualización
el mes pasado
seo geo

Genera briefs de contenido detallados: keywords objetivo, esquema, análisis competitivo, estadísticas recomendadas, sugerencias de imágenes y gráficos, arquitectura de enlaces internos, plantilla recomendada y plan de distribución.

Costo de contexto al activarse
3.3k tok
Tamaño del paquete
1 archivo
Última actualización
el mes pasado
seo geo