doc-classifier
自动通过置信度评分从文件路径或内容中检测文档类型,首先尝试基于路径的检测,然后进行内容分析
📖 中文导读:自动通过置信度评分从文件路径或内容中检测文档类型,首先尝试基于路径的检测,然后进行内容分析 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: doc-classifier description: Auto-detects document type from file path or content with confidence scoring, trying path-based detection first then content analysis model: claude-haiku-4-5
doc-classifier
**Purpose**: Auto-detect doc_type from file path or content.Strategy:
- Path pattern first (docs/api/ → api)
- Content analysis fallback (read fractary_doc_type from frontmatter)
Content-Based Detection
- Read file (if file_path) or use content
- Extract frontmatter
- Read
fractary_doc_typefield - Return with confidence 90
Fallback
- Return
_untypedwith confidence 50
- Return