Agent skill

doc-classifier

Auto-detects document type from file path or content with confidence scoring, trying path-based detection first then content analysis

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/doc-classifier

SKILL.md

doc-classifier

Strategy:

  1. Path pattern first (docs/api/ → api)
  2. 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>
  1. Content-Based Detection

    • Read file (if file_path) or use content
    • Extract frontmatter
    • Read fractary_doc_type field
    • Return with confidence 90
  2. Fallback

    • Return _untyped with confidence 50 </WORKFLOW>

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results