Agent skill
doc-classifier
Auto-detects document type from file path or content with confidence scoring, trying path-based detection first then content analysis
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:
- 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
fractary_doc_typefield - Return with confidence 90
-
Fallback
- Return
_untypedwith confidence 50 </WORKFLOW>
- Return
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?