# Categorize Text

> Use this skill to assign the single best category to a text from a provided list of candidate categories, with a confidence note. Uses an LLM. For routing, tagging, and triage.

- Skill: `ncreighton/categorize-text` (Agent Skill, multi-file: 10 files)
- Install (CLI): `npx skillmds@latest add ncreighton/categorize-text`
- Raw SKILL.md: https://api.skillmd.com/api/skills/ncreighton/categorize-text/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: ncreighton (https://skillmd.com/u/ncreighton)
- Updated: 2026-09-10
- Page: https://skillmd.com/skills/ncreighton/categorize-text

---


# categorize-text

Use this skill to assign the single best category to a text from a provided list of candidate categories, with a confidence note. Uses an LLM. For routing, tagging, and triage.

- **Kind**: analyzer  |  **Niche**: ai  |  **Cost tier**: near_free  |  **Version**: 0.1.0

## Empire Integration
```python
import sys
sys.path.insert(0, r'C:\D\Claude Code Projects\_SHARED')
import empire_bootstrap  # wires all shared paths
```

## Usage

**As a CLI:**
```bash
python run.py --text <string> --categories <array>
```

**From a Python agent (ATEN runtime):**
```python
from skill_library import executor
result = executor.execute("categorize-text", {text=..., categories=...})
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `text` | string | yes | Input text |
| `categories` | array | yes | Candidate categories (list or comma string) |

## Returns

`object` — `{"status": "ok"|"error", "result": ...}`

