# Subject Classifier

> Maps extracted text to one of the 5 defined subjects.

- Skill: `cxcscmu/subject-classifier` (Agent Skill)
- Install (CLI): `npx get-skill add cxcscmu/subject-classifier`
- Raw SKILL.md: https://api.skillmd.com/api/skills/cxcscmu/subject-classifier/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: cxcscmu (https://skillmd.com/u/cxcscmu)
- Updated: 2026-11-24
- Page: https://skillmd.com/skills/cxcscmu/subject-classifier

---

# Subject Classifier Skill

Classifies text into: LLM, trapped_ion_and_qc, black_hole, DNA, or music_history.

## Usage
```python
def classify(text):
    text = text.lower()
    mapping = {
        'LLM': ['language model', 'transformer', 'attention', 'gpt', 'llm'],
        'trapped_ion_and_qc': ['trapped ion', 'quantum computer', 'qubit', 'entanglement'],
        'black_hole': ['black hole', 'event horizon', 'singularity'],
        'DNA': ['dna', 'genome', 'protein', 'gene', 'sequencing']
    }
    for category, keywords in mapping.items():
        if any(keyword in text for keyword in keywords):
            return category
    return 'music_history'
```

