cluster-documents
Automated content similarity and grouping analysis. Groups related documents by topic, purpose, or content similarity.
适合你,如果经常需要将大量文档按主题归类
/ 通过 npx 安装 校验哈希
npx oh-my-skill add dandye/ai-runbooks/cluster-documents/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- dandye/ai-runbooks/cluster-documents/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify dandye/ai-runbooks/cluster-documents安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
119GitHub stars
~358上下文体积 · 单文件
索引托管
怎么用
商店整理自技能原文 · 版本 086cbf6 · 表述以原文为准它做什么
安装后,Claude 可以分析一个文档库,根据内容相似度自动将文档分到不同组,并标注每个组的主题。还会找出内容高度雷同的文档(可能重复),并可选生成可视化图表。
什么时候触发
当你要求 Claude 对某个文件夹或文档集合进行相似性分组、或者找出重复文档时,它会触发分析流程。
装好后可以这样说
Claude 会读取文件夹,生成聚类报告。
Claude 会重点输出冗余报告。
技能原文 SKILL.md
Document Clustering Skill
Analyze a repository of documents to group them based on content similarity, topic, or purpose. This skill helps organize large collections, identify redundancies, and discover relationships.
Inputs
PATH- The repository to analyze (e.g., "/repository")SIMILARITY_THRESHOLD- (Optional) Float (0.0-1.0), threshold for grouping (default: 0.8)VISUALIZATION- (Optional) Boolean, whether to generate a visual representation (default: false)
Workflow
Step 1: Text Processing
Ingest documents from PATH.
- Normalize text (remove stop words, stemming/lemmatization).
- Generate embeddings or TF-IDF vectors for each document.
Step 2: Clustering Analysis
Apply clustering algorithms (e.g., K-Means, DBSCAN) to the document vectors.
- Group documents that meet the
SIMILARITY_THRESHOLD. - Identify outliers or unique documents.
Step 3: Cluster Labeling
Analyze the centroid or representative terms of each cluster to assign a meaningful label (Topic).
Step 4: Output Generation
Generate the clustering report.
- If
VISUALIZATIONis true, create a scatter plot or dendrogram data.
Required Outputs
A CLUSTERING_REPORT object containing:
- Cluster List: ID, Label, and List of Documents in each cluster.
- Redundancy Report: Sets of highly similar documents (potential duplicates).
- Visualization Data: (If requested) Coordinates for plotting.
Quick Reference
- Purpose: Organize unstructured content and find duplicates.
- Techniques: Text Mining, NLP, Vector Space Models.
按 Apache-2.0 许可原样转载,未经改动 · 在 GitHub 查看 →
评论
登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。
…