Logo di Nod Serp Clusters

Nod Serp Clusters

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

Panoramica

AutoreSenuto
Repositorynodeshub-seo-skills
Nome della skillnod-serp-clusters
Stelle
41
Fork
7
File inclusi
14
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • 14 file inclusi

    Script, modelli di documento e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da Senuto su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Nod Serp Clusters in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/Senuto/nodeshub-seo-skills/tree/main/.claude/skills/nod-serp-clusters
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Nod Serp Clusters in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Nod Serp Clusters non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Nod Serp Clusters non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello 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

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill 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.

Perché usare Nod Serp Clusters su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Nod Serp Clusters è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Nod Serp Clusters in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/Senuto/nodeshub-seo-skills/tree/main/.claude/skills/nod-serp-clusters. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Nod Serp Clusters?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Nod Serp Clusters?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Nod Serp Clusters: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Nod Serp Clusters è gratuita?

È pubblicata su GitHub da Senuto. Consulta il repository per i termini di licenza. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇