Nod Serp Clusters logo

Nod Serp Clusters

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

Overview

PublisherSenuto
Repositorynodeshub-seo-skills
Skill namenod-serp-clusters
Stars
41
Forks
7
Bundled files
14
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 14 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by Senuto on GitHub. Read the source before you install it.

Installation

Install the Nod Serp Clusters AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Senuto/nodeshub-seo-skills/tree/main/.claude/skills/nod-serp-clusters
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Nod Serp Clusters in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Nod Serp Clusters on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Nod Serp Clusters is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Nod Serp Clusters AI skill do?

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.

Why use Nod Serp Clusters on TypingMind?

Because you install it once and use it with any model. Nod Serp Clusters is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Nod Serp Clusters in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Senuto/nodeshub-seo-skills/tree/main/.claude/skills/nod-serp-clusters. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Nod Serp Clusters?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Nod Serp Clusters?

As many as you like. As long as a model supports skills, you can use Nod Serp Clusters with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Nod Serp Clusters AI skill free?

It is published on GitHub by Senuto. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇