Logotipo de Nod Serp Clusters

Nod Serp Clusters

Organización
Senuto
nod-serp-clusters

Cluster keywords by SERP similarity — keywords sharing the same Google results belong to the same cluster. Cluster names generated by LLM via OpenRouter. Use when user says "cluster keywords," "keyword clustering," "SERP clusters," "group keywords," "topical clusters," "which keywords go together," or "cluster my keyword list." Requires NODESHUB_API_KEY + OPENROUTER_API_KEY. Cost: 1 NodesHub token per keyword + OpenRouter LLM for naming.

Descripción general

EditorSenuto
Repositorionodeshub-seo-skills
Nombre de la habilidadnod-serp-clusters
Estrellas
41
Forks
7
Archivos incluidos
14
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Archivos incluidos: 14

    Scripts, plantillas y referencias que el modelo puede leer mientras trabaja. Los archivos son de solo lectura y nunca se ejecutan.

  • Código abierto

    Publicada por Senuto en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Nod Serp Clusters en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/Senuto/nodeshub-seo-skills/tree/main/.claude/skills/nod-serp-clusters
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Senuto/nodeshub-seo-skills.git /tmp/nodeshub-seo-skills
mkdir -p .claude/skills
cp -r /tmp/nodeshub-seo-skills/.claude/skills/nod-serp-clusters .claude/skills/nod-serp-clusters
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Nod Serp Clusters en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Nod Serp Clusters automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Nod Serp Clusters no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

SERP Clusters

Two clustering methods available. Always ask the user which method they want before running.

Clustering Methods

Method 1: SERP-based (default) — cluster.py

Keywords sharing the same Google top-10 results belong to the same cluster. Uses Weighted Jaccard + Louvain.

  • Best for: Content planning, page mapping, cannibalization analysis
  • Cost: 1 NodesHub token per keyword
  • Accuracy: High — based on what Google actually shows

Method 2: Semantic — cluster_semantic.py

Keywords with similar meaning belong to the same cluster. Uses OpenRouter embeddings + cosine similarity + Louvain.

  • Best for: Topic discovery, keyword grouping by intent, when you don't want to spend NodesHub tokens
  • Cost: Only OpenRouter (embeddings + naming) — no NodesHub tokens
  • Accuracy: Good for meaning, but doesn't reflect actual SERP overlap

When to use which?

ScenarioRecommended method
"Which keywords can target the same page?"SERP-based — Google decides
"Group keywords by topic/meaning"Semantic — faster and cheaper
"Find cannibalization"SERP-based — needs actual SERP data
"Quick clustering, no SERP budget"Semantic
"Most accurate content mapping"Both — compare results

Quick Start

bash
# === SERP-based clustering ===
python3 .claude/skills/nod-serp-clusters/scripts/cluster.py keywords.csv --gl pl --hl pl
python3 .claude/skills/nod-serp-clusters/scripts/cluster.py keywords.csv --gl pl --hl pl --levels 3 --report html
python3 .claude/skills/nod-serp-clusters/scripts/cluster.py keywords.csv --gl pl --hl pl --workers 3 --budget 200

# Rerun without re-fetching SERPs (uses cache from previous run)
python3 .claude/skills/nod-serp-clusters/scripts/cluster.py keywords.csv --gl pl --hl pl --levels 3 --report html
# Force fresh SERP fetch (ignore cache)
python3 .claude/skills/nod-serp-clusters/scripts/cluster.py keywords.csv --gl pl --hl pl --no-cache

# === Semantic clustering (no NodesHub tokens needed) ===
python3 .claude/skills/nod-serp-clusters/scripts/cluster_semantic.py keywords.csv --threshold 0.25 --levels 3
python3 .claude/skills/nod-serp-clusters/scripts/cluster_semantic.py keywords.csv --output clusters_semantic.csv --json

How It Works

Step 1 — Weighted Jaccard Similarity

For each keyword pair, compare top-10 SERP results:

  • Position weight: 1 / log2(pos + 2) — pos 1 has weight 1.44, pos 10 has 0.43
  • Exact URL match: average of both position weights
  • Domain soft match: average weights × 0.3 bonus (same domain, different URL)
  • Score = sum(intersection) / sum(union)

Step 2 — Dynamic Domain Weighting

Instead of hardcoded blacklists, domains are weighted by how often they appear:

  • domain_weight = 1 / sqrt(coverage), min 0.2
  • Wikipedia at 50% coverage → weight 0.63 (reduced impact)
  • Niche site at 5% → weight 1.0 (full impact)

Step 3 — Louvain Community Detection

Graph with keywords as nodes, weighted Jaccard as edge weights. Louvain finds natural communities without chain clustering (a problem with agglomerative methods).

Step 4 — LLM Naming

OpenRouter generates 2-5 word cluster names based on keyword samples.

Setup

Requires two API keys:

  1. NODESHUB_API_KEY — for SERP data. If not set up: run /connect-nodeshub.
  2. OPENROUTER_API_KEY — for LLM cluster naming. If not set up: run /connect-openrouter.
bash
# Verify both keys
python3 .claude/skills/nod-nodeshub-api/scripts/check_setup.py

Parameters

Always present these parameters to the user before running, so they understand what each one does.

Clustering parameters

ParameterWhat it doesDefaultEffect
--threshold TMin weighted Jaccard similarity to connect two keywords0.55Lower = more keywords grouped together, higher = tighter clusters. 0.55 ≈ 7/10 shared URLs
--levels NClustering depth (1-3)11 = single flat clustering, 2 = broad + specific, 3 = broad + medium + specific hierarchy
--domain-bonus FBonus for same-domain-different-URL match0.3Higher = more weight to domain-level similarity (not just exact URL). 0 = URL-only matching
--resolution FOverride Louvain resolution for all levelsautoHigher = more clusters, lower = fewer bigger clusters. Overrides per-level defaults

Data parameters

ParameterWhat it doesDefaultEffect
--top-n NOnly cluster top N keywords (sorted by serp_overlap)0 (all)Useful to focus on most important keywords and save tokens
--budget NMax NodesHub tokens to spendno limitHard stop for SERP fetching
--workers NConcurrent SERP requests41 = sequential (safe), 4 = default, 8 = aggressive. Higher = faster
--glCountry code for SERPplMatch to target market
--hlLanguage codeplMatch to target language

Output parameters

ParameterWhat it doesDefaultEffect
--report htmlGenerate HTML report with dendrogram, domain visibility, SERP featuresoffInteractive D3.js dendrogram with collapsible levels
--report mdGenerate Markdown report with text treeoffSame data, text format
--jsonAlso output JSON fileoffMachine-readable cluster data
--output PATHCustom output CSV pathautoDefault: {input_stem}_clustered.csv
--modelOpenRouter model for cluster naminggoogle/gemini-2.5-flash-liteAny OpenRouter model ID

Report (--report)

HTML report includes:

  • Dendrogram — interactive D3.js tree showing L1 → L2 → L3 → keyword hierarchy. Click nodes to expand/collapse branches
  • Top 20 domains — visibility table (appearances, unique URLs, avg position)
  • SERP features — distribution of PAA, videos, knowledge graph, etc. with percentages
  • Cluster cards — each multi-keyword cluster with keyword tags and top ranking domains

MD report includes:

  • Text tree — ASCII hierarchy of clusters
  • Same domain visibility and SERP features tables

Branding

HTML reports can display your company logo and use your brand colors. To customize:

  1. Edit assets/branding/brand-config.json — set company name, colors, fonts
  2. Replace assets/branding/logo-light.svg and logo-dark.svg with your logos

The report header shows your logo + report title + date; the footer shows your company name + generation timestamp. If no branding is configured, default Nodeshub styling is used.

To extract brand styles from your website automatically, run assets/branding/extract-brand-styles.js in browser DevTools.

Multi-level Clustering

With --levels 2 or --levels 3, the script clusters at multiple thresholds simultaneously. Each keyword gets assigned to a cluster at each level. SERP data is fetched only once — levels only affect the clustering step.

Level--levels 2--levels 3ResolutionPurpose
L1 (broad)threshold×0.5, res=0.5threshold×0.4, res=0.3Low = fewer big clustersPillar topics, content silos
L2 (medium)—threshold×0.7, res=0.8MediumSubtopic groups
L3 (specific)threshold×1.0, res=1.0threshold×1.0, res=1.0StandardIndividual pages

CSV output columns per level: {level}_id, {level}_name, {level}_size

Example with --levels 3:

keyword, L1_broad_id, L1_broad_name, L2_medium_id, L2_medium_name, L3_specific_id, L3_specific_name
"seo cennik", 0, "SEO uslugi", 3, "Cennik pozycjonowania", 12, "Koszty SEO"

Output

CSV columns (added to original keyword-research columns)

ColumnDescription
cluster_idNumeric cluster ID (0 = largest cluster)
cluster_nameLLM-generated descriptive name for the cluster
cluster_sizeNumber of keywords in this cluster

Threshold guide

Threshold~Shared URLsClustering behaviorUse when
0.22~2/10Very loose — large topic bucketsPillar pages, content silos
0.35~4/10Loose — broad subtopic groupsContent planning
0.45~5/10Medium — related keywordsSubtopic mapping
0.55~7/10Default — strong SERP overlapStandard SEO clustering
0.65~8/10Strict — near-identical SERPs1-page-per-cluster mapping
0.75+~9/10Very strict — true synonyms onlyCannibalization analysis

Cost

  • NodesHub: 1 token per keyword (SERP fetch)
  • OpenRouter: ~1 LLM call per 10 clusters (naming). Minimal cost with gemini-2.5-flash-lite.
  • Example: 100 keywords = 100 NodesHub tokens + a few cents OpenRouter

Workflow

  1. Run /nod-keyword-research to get a keyword CSV
  2. Run this skill on the CSV to cluster by SERP similarity
  3. Use clusters for content planning — one page per cluster

Report

After collecting data, ask the user:

"Add results to an HTML report?"

  1. New report — creates a branded HTML report in reports/
  2. Existing report — appends a section to a chosen report
  3. Skip — no report

Use render_report_section(all_level_results, all_serps, all_snippets) from cluster.py, then create_report() or append_section() from report.py. Note: render_report_section returns (section_html, extra_head) — pass extra_head to create_report(extra_head=extra_head).

Related Skills

  • nod-keyword-research — generates the input keyword CSV
  • nod-content-brief — create content briefs for each cluster

Archivos incluidos

El modelo los lee según los necesita mientras la habilidad está cargada. Son archivos de solo lectura y nunca se ejecutan.

Preguntas frecuentes

¿Qué hace la habilidad de IA Nod Serp Clusters?

Cluster keywords by SERP similarity — keywords sharing the same Google results belong to the same cluster. Cluster names generated by LLM via OpenRouter. Use when user says "cluster keywords," "keyword clustering," "SERP clusters," "group keywords," "topical clusters," "which keywords go together," or "cluster my keyword list." Requires NODESHUB_API_KEY + OPENROUTER_API_KEY. Cost: 1 NodesHub token per keyword + OpenRouter LLM for naming.

¿Por qué usar Nod Serp Clusters en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Nod Serp Clusters está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Nod Serp Clusters en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/Senuto/nodeshub-seo-skills/tree/main/.claude/skills/nod-serp-clusters. TypingMind lee el archivo SKILL.md de esa carpeta, empaqueta los archivos de la carpeta e instala el conjunto como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Nod Serp Clusters?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Nod Serp Clusters?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Nod Serp Clusters con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Nod Serp Clusters?

Senuto la ha publicado en GitHub. Consulta el repositorio para conocer las condiciones de la licencia. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇