Tooluck logoTooluck
SKILL.md

hierarchical-taxonomy-clustering

Agent skill frombenchflow-ai/skillsbench

Build unified multi-level category taxonomy from hierarchical product category paths from any e-commerce companies using embedding-based recursive clustering with intelligent category naming via weighted word frequency analysis.

How to install hierarchical-taxonomy-clustering

install hierarchical-taxonomy-clustering
# install the skillsbench pack with the skills CLI
npx skills add benchflow-ai/skillsbench

# or add only this skill to Claude Code: copy the folder

tasks-extra/taxonomy-tree-merge/environment/skills/hierarchical-taxonomy-clustering/

# into

~/.claude/skills/hierarchical-taxonomy-clustering/ (all projects)

.claude/skills/hierarchical-taxonomy-clustering/ (one project)

tasks-extra/taxonomy-tree-merge/environment/skills/hierarchical-taxonomy-clustering/SKILL.md

Apache-2.0Full file
1# Hierarchical Taxonomy Clustering
2
3Create a unified multi-level taxonomy from hierarchical category paths by clustering similar paths and automatically generating meaningful category names.
4
5## Problem
6
7Given category paths from multiple sources (e.g., "electronics -> computers -> laptops"), create a unified taxonomy that groups similar paths across sources, generates meaningful category names, and produces a clean N-level hierarchy (typically 5 levels). The unified category taxonomy could be used to do analysis or metric tracking on products from different platform.
8
9## Methodology
10
111. **Hierarchical Weighting**: Convert paths to embeddings with exponentially decaying weights (Level i gets weight 0.6^(i-1)) to signify the importance of category granularity
122. **Recursive Clustering**: Hierarchically cluster at each level (10-20 clusters at L1, 3-20 at L2-L5) using cosine distance
133. **Intelligent Naming**: Generate category names via weighted word frequency + lemmatization + bundle word logic
144. **Quality Control**: Exclude all ancestor words (parent, grandparent, etc.), avoid ancestor path duplicates, clean special characters
15
16## Output
17
18DataFrame with added columns:
19- `unified_level_1`: Top-level category (e.g., "electronic | device")
20- `unified_level_2`: Second-level category (e.g., "computer | laptop")
21- `unified_level_3` through `unified_level_N`: Deeper levels
22
23Category names use ` | ` separator, max 5 words, covering 70%+ of records in each cluster.
24
25## Installation
26…

Excerpt shown under the repository's Apache-2.0 license.

More skills in skillsbench

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates