Logo Nod Serp Clusters

Nod Serp Clusters

Tổ chức
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.

Tổng quan

Nhà phát hànhSenuto
Kho mãnodeshub-seo-skills
Tên kỹ năngnod-serp-clusters
Sao
41
Bản fork
7
Tệp đi kèm
14
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 14 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được Senuto công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Nod Serp Clusters trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/Senuto/nodeshub-seo-skills/tree/main/.claude/skills/nod-serp-clusters
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

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
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Nod Serp Clusters trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Nod Serp Clusters ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Nod Serp Clusters với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Nod Serp Clusters làm được gì?

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.

Vì sao nên dùng Nod Serp Clusters trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Nod Serp Clusters là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Nod Serp Clusters trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/Senuto/nodeshub-seo-skills/tree/main/.claude/skills/nod-serp-clusters. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Nod Serp Clusters?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Nod Serp Clusters với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Nod Serp Clusters với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Nod Serp Clusters có miễn phí không?

Kỹ năng này được Senuto phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇