[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M737P88CACBBM3BHP7T774N2":3,"skill-same:01M737P88CACBBM3BHP7T774N2":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M737P88CACBBM3BHP7T774N2","skill-068",null,"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.","legendtkl\u002Fagentic-skill-router","legendtkl","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F2370761?v=4","01M71RR3WRQC40G964Q2GVDMND","01M737GJZQ9TF1VE3VM255EDAK",8,"MIT","https:\u002F\u002Fgithub.com\u002Flegendtkl\u002Fagentic-skill-router\u002Fblob\u002Fmain\u002Fexperiments\u002Fdci-compare\u002Fskillrouter-skills\u002Fskill-068\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: skill-068\ndescription: 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.\n---\n\n# Hierarchical Taxonomy Clustering\n\nCreate a unified multi-level taxonomy from hierarchical category paths by clustering similar paths and automatically generating meaningful category names.\n\n## Problem\n\nGiven 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.\n\n## Methodology\n\n1. **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\n2. **Recursive Clustering**: Hierarchically cluster at each level (10-20 clusters at L1, 3-20 at L2-L5) using cosine distance\n3. **Intelligent Naming**: Generate category names via weighted word frequency + lemmatization + bundle word logic\n4. **Quality Control**: Exclude all ancestor words (parent, grandparent, etc.), avoid ancestor path duplicates, clean special characters\n\n## Output\n\nDataFrame with added columns:\n- `unified_level_1`: Top-level category (e.g., \"electronic | device\")\n- `unified_level_2`: Second-level category (e.g., \"computer | laptop\")\n- `unified_level_3` through `unified_level_N`: Deeper levels\n\nCategory names use ` | ` separator, max 5 words, covering 70%+ of records in each cluster.\n\n## Installation\n\n```bash\npip install pandas numpy scipy sentence-transformers nltk tqdm\npython -c \"import nltk; nltk.download('wordnet'); nltk.download('omw-1.4')\"\n```\n\n## 4-Step Pipeline\n\n### Step 1: Load, Standardize, Filter and Merge (`step1_preprocessing_and_merge.py`)\n- **Input**: List of (DataFrame, source_name) tuples, each of the  with `category_path` column\n- **Process**: Per-source deduplication, text cleaning (remove &\u002F,\u002F'\u002F-\u002Fquotes,'and' or \"&\", \",\" and so on, lemmatize words as nouns), normalize delimiter to ` > `, depth filtering, prefix removal, then merge all sources. source_level should reflect the processed version of the source level name\n- **Output**: Merged DataFrame with `category_path`, `source`, `depth`, `source_level_1` through `source_level_N`\n\n### Step 2: Weighted Embeddings (`step2_weighted_embedding_generation.py`)\n- **Input**: DataFrame from Step 1\n- **Output**: Numpy embedding matrix (n_records × 384)\n- Weights: L1=1.0, L2=0.6, L3=0.36, L4=0.216, L5=0.1296 (exponential decay 0.6^(n-1))\n- **Performance**: For ~10,000 records, expect 2-5 minutes. Progress bar will show encoding status.\n\n### Step 3: Recursive Clustering (`step3_recursive_clustering_naming.py`)\n- **Input**: DataFrame + embeddings from Step 2\n- **Output**: Assignments dict {index → {level_1: ..., level_5: ...}}\n- Average linkage + cosine distance, 10-20 clusters at L1, 3-20 at L2-L5\n- Word-based naming: weighted frequency + lemmatization + coverage ≥70%\n- **Performance**: For ~10,000 records, expect 1-3 minutes for hierarchical clustering and naming. Be patient - the system is working through recursive levels.\n\n### Step 4: Export Results (`step4_result_assignments.py`)\n- **Input**: DataFrame + assignments from Step 3\n- **Output**:\n  - `unified_taxonomy_full.csv` - all records with unified categories\n  - `unified_taxonomy_hierarchy.csv` - unique taxonomy structure\n\n## Usage\n\n**Use `scripts\u002Fpipeline.py` to run the complete 4-step workflow.**\n\nSee `scripts\u002Fpipeline.py` for:\n- Complete implementation of all 4 steps\n- Example code for processing multiple sources\n- Command-line interface\n- Individual step usage (for advanced control)","# Hierarchical Taxonomy Clustering\n\nCreate a unified multi-level taxonomy from hierarchical category paths by clustering similar paths and automatically generating meaningful category names.\n\n## Problem\n\nGiven 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.\n\n## Methodology\n\n1. **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\n2. **Recursive Clustering**: Hierarchically cluster at each level (10-20 clusters at L1, 3-20 at L2-L5) using cosine distance\n3. **Intelligent Naming**: Generate category names via weighted word frequency + lemmatization + bundle word logic\n4. **Quality Control**: Exclude all ancestor words (parent, grandparent, etc.), avoid ancestor path duplicates, clean special characters\n\n## Output\n\nDataFrame with added columns:\n- `unified_level_1`: Top-level category (e.g., \"electronic | device\")\n- `unified_level_2`: Second-level category (e.g., \"computer | laptop\")\n- `unified_level_3` through `unified_level_N`: Deeper levels\n\nCategory names use ` | ` separator, max 5 words, covering 70%+ of records in each cluster.\n\n## Installation\n\n```bash\npip install pandas numpy scipy sentence-transformers nltk tqdm\npython -c \"import nltk; nltk.download('wordnet'); nltk.download('omw-1.4')\"\n```\n\n## 4-Step Pipeline\n\n### Step 1: Load, Standardize, Filter and Merge (`step1_preprocessing_and_merge.py`)\n- **Input**: List of (DataFrame, source_name) tuples, each of the  with `category_path` column\n- **Process**: Per-source deduplication, text cleaning (remove &\u002F,\u002F'\u002F-\u002Fquotes,'and' or \"&\", \",\" and so on, lemmatize words as nouns), normalize delimiter to ` > `, depth filtering, prefix removal, then merge all sources. source_level should reflect the processed version of the source level name\n- **Output**: Merged DataFrame with `category_path`, `source`, `depth`, `source_level_1` through `source_level_N`\n\n### Step 2: Weighted Embeddings (`step2_weighted_embedding_generation.py`)\n- **Input**: DataFrame from Step 1\n- **Output**: Numpy embedding matrix (n_records × 384)\n- Weights: L1=1.0, L2=0.6, L3=0.36, L4=0.216, L5=0.1296 (exponential decay 0.6^(n-1))\n- **Performance**: For ~10,000 records, expect 2-5 minutes. Progress bar will show encoding status.\n\n### Step 3: Recursive Clustering (`step3_recursive_clustering_naming.py`)\n- **Input**: DataFrame + embeddings from Step 2\n- **Output**: Assignments dict {index → {level_1: ..., level_5: ...}}\n- Average linkage + cosine distance, 10-20 clusters at L1, 3-20 at L2-L5\n- Word-based naming: weighted frequency + lemmatization + coverage ≥70%\n- **Performance**: For ~10,000 records, expect 1-3 minutes for hierarchical clustering and naming. Be patient - the system is working through recursive levels.\n\n### Step 4: Export Results (`step4_result_assignments.py`)\n- **Input**: DataFrame + assignments from Step 3\n- **Output**:\n  - `unified_taxonomy_full.csv` - all records with unified categories\n  - `unified_taxonomy_hierarchy.csv` - unique taxonomy structure\n\n## Usage\n\n**Use `scripts\u002Fpipeline.py` to run the complete 4-step workflow.**\n\nSee `scripts\u002Fpipeline.py` for:\n- Complete implementation of all 4 steps\n- Example code for processing multiple sources\n- Command-line interface\n- Individual step usage (for advanced control)",{"name":5,"description":7},"main","160b30f0b67c923077f886376fdfae1016a70702","experiments\u002Fdci-compare\u002Fskillrouter-skills\u002Fskill-068",2,"https:\u002F\u002Fgithub.com\u002Flegendtkl\u002Fagentic-skill-router","https:\u002F\u002Flegendtkl.github.io\u002Fagentic-skill-router\u002F","https:\u002F\u002Fgithub.com\u002Flegendtkl","http:\u002F\u002Fwww.legendtkl.com","No secret before debugging.\r\n","2026-06-04 14:02:56",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add legendtkl\u002Fagentic-skill-router --skill skill-068",{"tool":39,"command":40},"bunx","bunx skills add legendtkl\u002Fagentic-skill-router --skill skill-068",{"tool":42,"command":43},"pnpm","pnpm dlx skills add legendtkl\u002Fagentic-skill-router --skill skill-068","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flegendtkl\u002Fagentic-skill-router\u002Fblob\u002Fmain\u002Fexperiments\u002Fdci-compare\u002Fskillrouter-skills\u002Fskill-068\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":18},"01M7384EP28XVSR2R0YGRS0GK9","foo","A test skill named foo","https:\u002F\u002Fgithub.com\u002Flegendtkl\u002Fagentic-skill-router\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Ffoo\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":18},"01M7384DECF306RRRC16PZJTQ5","bar","飞书 — bar with quoted Chinese","https:\u002F\u002Fgithub.com\u002Flegendtkl\u002Fagentic-skill-router\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Fbar\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":18},"01M738491441AQ85E7GD7VVDTA","agentic-skill-router","First use any clearly matching enabled local\u002Fuser Agent Skill. If none matches, prefer this router for skill-shaped requests involving a named tool, API, service, CLI, platform, file format, dataset, or domain workflow, including when a generic built-in skill such as browser, Chrome, or web search also seems applicable; use built-ins directly only when explicitly requested or when the task is primarily live browsing, logged-in page operation, clicking, screenshotting, or current webpage inspection. Also use directly to audit, slim, disable, restore, or route locally installed Agent Skills across supported hosts. Examples include Vercel, Netlify, Cloudflare, Render, Playwright, Sentry, Linear, GitHub, OpenAI APIs, PDF, DOCX, PPTX, and spreadsheets.","https:\u002F\u002Fgithub.com\u002Flegendtkl\u002Fagentic-skill-router\u002Fblob\u002Fmain\u002Fskills\u002Fagentic-skill-router\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":18},"01M738475HF7SXTP4HCPZJVZ8E","syn-video-trim","Skill for trimming and cutting clips in the context of video files. Use when the user's task is specifically about trimming and cutting clips.","https:\u002F\u002Fgithub.com\u002Flegendtkl\u002Fagentic-skill-router\u002Fblob\u002Fmain\u002Fexperiments\u002Fdci-compare\u002Fsynthetic-skills\u002Fsyn-video-trim\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":18},"01M73845F4RD2AA6YHS1E3VQRB","syn-video-transcode","Skill for transcoding codecs and resolutions in the context of video files. Use when the user's task is specifically about transcoding codecs and resolutions.","https:\u002F\u002Fgithub.com\u002Flegendtkl\u002Fagentic-skill-router\u002Fblob\u002Fmain\u002Fexperiments\u002Fdci-compare\u002Fsynthetic-skills\u002Fsyn-video-transcode\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":18},"01M73842YN17QSJETPZX6Z9DAG","syn-video-thumbnail","Skill for extracting thumbnails and frames in the context of video files. Use when the user's task is specifically about extracting thumbnails and frames.","https:\u002F\u002Fgithub.com\u002Flegendtkl\u002Fagentic-skill-router\u002Fblob\u002Fmain\u002Fexperiments\u002Fdci-compare\u002Fsynthetic-skills\u002Fsyn-video-thumbnail\u002FSKILL.md",[],[]]