Claude Code Plugins

Community-maintained marketplace

Feedback
2
0

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

Install Skill

1Download skill
2Enable skills in Claude

Open claude.ai/settings/capabilities and find the "Skills" section

3Upload to Claude

Click "Upload skill" and select the downloaded ZIP file

Note: Please verify skill by going through its instructions before using it.

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:

  1. Path pattern first (docs/api/ → api)
  2. Content analysis fallback (read fractary_doc_type from frontmatter)
- ALWAYS try path-based detection first - ONLY read file if path detection fails - NEVER modify files - ALWAYS return confidence score (0-100) - `file_path` OR `content` (one required) 1. **Path-Based Detection** - Check if path matches: docs/{doc_type}/ - Return doc_type with confidence 100
  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
```json { "doc_type": "api", "confidence": 100, "method": "path|frontmatter|fallback" } ```