/text-corpus-analysis:categorize-corpusfrom text-corpus-analysis
Assign each document in a corpus to one of N user-defined categories. Use when the user has a fixed taxonomy (e.g. 10-20 labels) and wants every note/document routed into exactly one (or top-k) of them. Supports zero-shot classifiers, local LLMs, and cloud LLMs with cost-aware batching.
Ships in text-corpus-analysis. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Route each document to a category from a fixed list.
choose-approach):
facebook/bart-large-mnli via HF, or cross-encoder/nli-deberta-v3-base) — free, local, fast, good baseline. Often sufficient for 10-20 well-defined categories.You are a classifier. Choose the single best category for the document.
Categories:
- <label>: <definition>
- ...
Document: <text, truncated to budget>
Respond with JSON: {"category": "<label>", "confidence": 0-1, "reasoning": "<one sentence>"}
Use structured output / JSON mode. Cache the system prompt (Anthropic/OpenAI prompt caching) — same taxonomy for every doc.confidence<0.7 on premium.categorized.jsonl: {doc_id, category, confidence, reasoning}category-distribution.csv: counts per category.If categories aren't mutually exclusive, ask the model for {"categories": [...]} with max-k constraint, or use zero-shot with a threshold on independent scores.
What SKILL.md sets; muted values are Claude Code's defaults
15 skills in this plugin
/choose-approachDecide whether a corpus analysis task should use classical NLP, a local LLM, or a cloud LLM (OpenRouter) given corpus size, task complexity, and cost tolerance. Use first, before any other skill in this plugin, especially when the corpus is large (thousands+ of documents) or when an LLM pass could get expensive./complementary-pluginsList and install plugins that complement text-corpus-analysis: transcription-pipeline. Use on "related plugins"./correlation-analysisCorrelate metadata (timestamps, tags, source, author) with content features (topics, entities, length, sentiment) to surface non-obvious patterns. Use when the user asks "does X correlate with Y in my corpus" or wants to discover relationships between when/where/who and what.Other plugins' skills for the same job
text-corpus-analysis@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin text-corpus-analysis