Claude-skill-registry doc-classifier
Auto-detects document type from file path or content with confidence scoring, trying path-based detection first then content analysis
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/doc-classifier" ~/.claude/skills/majiayu000-claude-skill-registry-doc-classifier && rm -rf "$T"
manifest:
skills/data/doc-classifier/SKILL.mdsource content
doc-classifier
<CONTEXT> **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) </CONTEXT>
<CRITICAL_RULES>
- ALWAYS try path-based detection first
- ONLY read file if path detection fails
- NEVER modify files
- ALWAYS return confidence score (0-100) </CRITICAL_RULES>
-
Content-Based Detection
- Read file (if file_path) or use content
- Extract frontmatter
- Read
fieldfractary_doc_type - Return with confidence 90
-
Fallback
- Return
with confidence 50 </WORKFLOW>_untyped
- Return