---
title: "classify"
description: "Assign labels or categories to items"
canonical: "https://acs.synapti.ai/capabilities/classify/"
last_updated: "2026-11-16T01:14:10Z"
---

# classify

Assign labels or categories to items

Generated from [schemas/capability_ontology.yaml](https://github.com/synaptiai/agent-capability-standard/blob/main/schemas/capability_ontology.yaml), [skills/classify/SKILL.md](https://github.com/synaptiai/agent-capability-standard/blob/main/skills/classify/SKILL.md) at commit 18c38b74ac21. Ontology version 2.2.0.

Layer: [UNDERSTAND](https://acs.synapti.ai/layers/understand/index.md)

## Safety

| Property | Value |
| --- | --- |
| Risk | Low |
| Changes state | No |
| Needs checkpoint | No |
| Needs approval | No |
| Overridable | No |
| Blocked from autonomy | No |

In a workflow, detect, where the workflow has it, must come first (V102).

## Relationships

**Figure: Relationships of classify: 6 relationships with 4 capabilities.** classify has 6 relationships with 4 capabilities: 1 with edges into it, 2 with edges out of it, and 1 with edges both into it and out of it.

| Capability | Row | Relationships |
| --- | --- | --- |
| [`detect`](https://acs.synapti.ai/capabilities/detect/index.md) | Both directions | `enables` (into), `precedes` (into), `specializes` (out of) |
| [`compare`](https://acs.synapti.ai/capabilities/compare/index.md) | Edges out of classify | `enables` (out of) |
| [`discover`](https://acs.synapti.ai/capabilities/discover/index.md) | Edges into classify | `enables` (into) |
| [`explain`](https://acs.synapti.ai/capabilities/explain/index.md) | Edges out of classify | `enables` (out of) |

- `enables`: Unlocks [`compare`](https://acs.synapti.ai/capabilities/compare/index.md), [`explain`](https://acs.synapti.ai/capabilities/explain/index.md)
- `enables`: Unlocked by [`detect`](https://acs.synapti.ai/capabilities/detect/index.md), [`discover`](https://acs.synapti.ai/capabilities/discover/index.md)
- `precedes`: Comes after, when both are present [`detect`](https://acs.synapti.ai/capabilities/detect/index.md)
- `specializes`: Specializes [`detect`](https://acs.synapti.ai/capabilities/detect/index.md)

## Contract

**Figure: Contract of classify: 3 inputs (1 required), 6 outputs.** classify takes 3 inputs, 1 required (filled pin) and 2 optional (hollow pin), and returns 6 outputs. The tables below list every field.

### Inputs

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `item` | any | Yes | Item to classify |
| `taxonomy` | string\|array | No | Classification scheme |
| `multi_label` | boolean | No | Allow multiple labels |

### Outputs

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `labels` | array | Yes | Assigned labels |
| `probabilities` | object | No | Label probabilities |
| `evidence_anchors` | array of Anchor (or deprecated string or object) | Yes | What the output is based on, as evidence anchors (Standard v1.2 §6.5). An empty list grounds nothing, and the output is then marked inferred (§3.1). |
| `confidence` | number | Yes | The producer's probability that the output's claim is correct, self-reported unless the host documents a calibration (Standard v1.2 §4.1.1) From 0 to 1 |
| `inference_method` | string | No | How the output was reached when it is not grounded in evidence; with confidence it marks the output inferred (Standard v1.2 §3.1, §4.1.1). A producer should use model_knowledge, deduction, induction, abduction, analogy, statistical, simulation, assumption or an x- vendor value; a grounding policy (§5.20) requires one of them. |
| `uncertainty` | Uncertainty | No | The uncertainty of the output's principal value; its confidence equals the output's confidence (Standard v1.2 §4.1.1) |

The skill returns 7 fields: 4 are in classify's output contract (3 required) and 3 are the skill's own, outside the contract; it leaves out 2 contract fields (inference_method, uncertainty).

| Field of the skill's output | In the output contract |
| --- | --- |
| `labels` | Yes, required |
| `probabilities` | Yes, optional |
| `primary_label` | No, the skill's own |
| `ambiguous` | No, the skill's own |
| `confidence` | Yes, required |
| `evidence_anchors` | Yes, required |
| `assumptions` | No, the skill's own |
| `inference_method` | Yes, but the skill leaves it out |
| `uncertainty` | Yes, but the skill leaves it out |

## Used in workflows

**Figure: classify in workflows.** 10 workflows use classify, in 10 steps in all; its steps are the squares in an ink ring, and the key under the strips names the other squares.

- [`world_model_build`](https://acs.synapti.ai/workflows/world-model-build/index.md): step 4
- [`digital_twin_sync_loop`](https://acs.synapti.ai/workflows/digital-twin-sync-loop/index.md): step 6
- [`data_quality_pipeline`](https://acs.synapti.ai/workflows/data-quality-pipeline/index.md): step 3
- [`data_pipeline_validation`](https://acs.synapti.ai/workflows/data-pipeline-validation/index.md): step 10
- [`patient_monitoring`](https://acs.synapti.ai/workflows/patient-monitoring/index.md): step 8
- [`clinical_alert_triage`](https://acs.synapti.ai/workflows/clinical-alert-triage/index.md): step 6
- [`handoff_preparation`](https://acs.synapti.ai/workflows/handoff-preparation/index.md): step 9
- [`quality_control_loop`](https://acs.synapti.ai/workflows/quality-control-loop/index.md): step 5
- [`information_research`](https://acs.synapti.ai/workflows/information-research/index.md): step 6
- [`task_delegation`](https://acs.synapti.ai/workflows/task-delegation/index.md): step 2

## Claude Code skill

**Figure: What the classify skill's tools can do, against the ontology.** The skill may use 2 tools: 2 only read; the ontology marks classify as read-only, and every tool only reads.

| What they can do | Tools |
| --- | --- |
| Only read | `Read`, `Grep` |
| Run commands, which can change state | none |
| Change files | none |

**Figure: The field names each step of the classify procedure uses.** 4 of the procedure's 5 steps use the name of an input or output field of the classify skill as a word; 5 output fields of 7 are used by no step (probabilities, primary_label, ambiguous, evidence_anchors, assumptions).

| Step | Inputs it uses by name | Output fields it uses by name |
| --- | --- | --- |
| 1. Examine the item | `item` |  |
| 2. Understand the taxonomy | `taxonomy` | `labels` |
| 3. Match characteristics to labels | `item` | `labels` |
| 4. Assign labels |  | `labels`, `confidence` |
| 5. Ground classification |  |  |

Both examples of the skill write out every one of its 7 output fields.

**Figure: The field names each verification check of the classify skill uses.** 3 of the 5 checks use the name of an input or output field as a word; 6 output fields of 7 are named by no check (labels, probabilities, primary_label, ambiguous, evidence_anchors and assumptions).

| Check | Inputs it uses by name | Output fields it uses by name |
| --- | --- | --- |
| 1. At least one label assigned with confidence > 0.3 |  | `confidence` |
| 2. Evidence exists for each assigned label |  |  |
| 3. Labels are from specified taxonomy (if provided) | `taxonomy` |  |
| 4. Ambiguous flag set when confidence < 0.7 |  | `confidence` |
| 5. Probabilities sum to ~1.0 (if provided) |  |  |

**Figure: The neighbours the skill lists for classify, checked against the ontology and the catalogs.** The skill lists 6 capabilities as common neighbours of classify; 2 of them have an edge with it in the ontology, and 3 run next to it, in that order, in a catalog workflow (detect most often, 6 times). Under each tile, an edge reads from its source to its target, with classify's symbol in its place: "requires Cl" is a requires edge from the tile's capability to classify, so the tile's capability must run before classify; "Cl precedes" is a precedes edge from classify to the tile's capability.

| Listed as | Capability | Ontology edge | Next to it in a workflow |
| --- | --- | --- | --- |
| commonly follows | [`detect`](https://acs.synapti.ai/capabilities/detect/index.md) | `enables`, `precedes`, `specializes` (into it) | 6 times |
| commonly follows | [`observe`](https://acs.synapti.ai/capabilities/observe/index.md) | none | never |
| commonly follows | [`retrieve`](https://acs.synapti.ai/capabilities/retrieve/index.md) | none | never |
| commonly precedes | [`compare`](https://acs.synapti.ai/capabilities/compare/index.md) | `enables` (into it) | 3 times |
| commonly precedes | [`plan`](https://acs.synapti.ai/capabilities/plan/index.md) | none | never |
| commonly precedes | [`generate`](https://acs.synapti.ai/capabilities/generate/index.md) | none | 1 times |

### Intent

Assign one or more labels from a defined taxonomy to items based on their observed characteristics. This capability bridges detection and reasoning by providing semantic categorization.

**Success criteria:**
- Item assigned at least one label from taxonomy
- Label assignment supported by evidence
- Confidence scores reflect classification certainty
- Ambiguous cases explicitly flagged

**Compatible schemas:**
- `schemas/output_schema.yaml`

### Inputs

| Parameter | Required | Type | Description |
|-----------|----------|------|-------------|
| `item` | Yes | any | The item to classify (entity, document, code, data) |
| `taxonomy` | No | string\|array | Classification scheme or list of valid labels |
| `multi_label` | No | boolean | Whether multiple labels can be assigned (default: false) |

Inputs not listed here are outside the capability's contract: a workflow step that binds them gets W604 (STANDARD v1.1 §5.5).

### Procedure

1) **Examine the item**: Gather characteristics relevant to classification
   - Identify distinguishing features
   - Note structural patterns, content type, metadata
   - Collect evidence for each observed characteristic

2) **Understand the taxonomy**: Clarify the classification scheme
   - If taxonomy provided, use those labels exclusively
   - If no taxonomy, infer appropriate categories from context
   - Define clear boundaries between categories

3) **Match characteristics to labels**: Evaluate fit for each potential label
   - Score how well item characteristics match each category
   - Consider edge cases and borderline classifications
   - Note which features drive each potential classification

4) **Assign labels**: Select the most appropriate label(s)
   - For single-label: choose highest confidence match
   - For multi-label: include all labels above confidence threshold
   - Flag if no label is a strong match

5) **Ground classification**: Document evidence supporting each label
   - Reference specific characteristics that drove classification
   - Note any characteristics that contradict the assignment

### Output Contract

Return a structured object:

```yaml
labels:
  - label: string  # Assigned category/label
    confidence: number  # 0.0-1.0 for this specific label
    evidence: array[string]  # Characteristics supporting this label
probabilities:  # Optional: full probability distribution
  label_1: number
  label_2: number
primary_label: string  # Highest confidence label
ambiguous: boolean  # True if classification is uncertain
confidence: number  # probability that the labels are right (§4.1.1)
evidence_anchors: [{ref: "file:line", kind: file}, {ref: "characteristic:value", kind: record}]
assumptions: []
```

#### Field Definitions

| Field | Type | Description |
|-------|------|-------------|
| `labels` | array | Assigned labels with confidence and evidence |
| `probabilities` | object | Probability for each possible label |
| `primary_label` | string | Single best classification |
| `ambiguous` | boolean | Whether classification is uncertain |
| `confidence` | number | Probability, 0.0-1.0, that the labels are right (§4.1.1) |
| `evidence_anchors` | array of evidence anchors (§6.5) | References to the characteristics each label rests on |
| `assumptions` | array | Explicit assumptions |

### Examples

#### Example 1: Classify Code File

**Input:**
```yaml
item: "src/services/payment_processor.rb"
taxonomy: ["service", "model", "controller", "helper", "concern"]
```

**Output:**
```yaml
labels:
  - label: "service"
    confidence: 0.92
    evidence:
      - "Located in services/ directory"
      - "Class name ends with 'Processor'"
      - "Contains business logic methods without persistence"
probabilities:
  service: 0.92
  model: 0.03
  controller: 0.02
  helper: 0.02
  concern: 0.01
primary_label: "service"
ambiguous: false
confidence: 0.92
evidence_anchors:
  - {ref: "file:src/services/payment_processor.rb:1", kind: file}
  - {ref: "file:src/services/payment_processor.rb:15-45", kind: file}
assumptions:
  - "Directory structure follows Rails conventions"
```

#### Example 2: Classify with Ambiguity

**Input:**
```yaml
item: "User reported issue: 'App crashes on login'"
taxonomy: ["bug", "feature-request", "question", "documentation"]
multi_label: true
```

**Output:**
```yaml
labels:
  - label: "bug"
    confidence: 0.75
    evidence:
      - "Reports crash behavior"
      - "Describes unexpected failure"
  - label: "question"
    confidence: 0.40
    evidence:
      - "Lacks reproduction steps"
      - "May be user error or configuration"
probabilities:
  bug: 0.75
  question: 0.40
  feature-request: 0.05
  documentation: 0.10
primary_label: "bug"
ambiguous: true
confidence: 0.65
evidence_anchors:
  - {ref: "issue:title", kind: human_note}
  - {ref: "issue:body", kind: human_note}
assumptions:
  - "Crash is not expected behavior"
  - "User has attempted normal login flow"
```

### Verification

- [ ] At least one label assigned with confidence > 0.3
- [ ] Evidence exists for each assigned label
- [ ] Labels are from specified taxonomy (if provided)
- [ ] Ambiguous flag set when confidence < 0.7
- [ ] Probabilities sum to ~1.0 (if provided)

**Verification tools:** Read (to verify evidence references)

### Safety Constraints

- `mutation`: false
- `requires_checkpoint`: false
- `requires_approval`: false
- `risk`: low

**Capability-specific rules:**
- Do not invent labels outside the provided taxonomy
- Flag uncertainty rather than forcing low-confidence classifications
- Do not access data beyond what's needed for classification
- Note when item characteristics are insufficient for reliable classification

### Composition Patterns

**Commonly follows:**
- `detect` - Classify items after detecting their presence
- `observe` - Classify based on observed characteristics
- `retrieve` - Classify retrieved items

**Commonly precedes:**
- `compare` - Classification enables comparison within categories
- `plan` - Classified items inform planning decisions
- `generate` - Classification guides content generation

**Anti-patterns:**
- Never use classify for binary detection (use `detect`)
- Avoid classify when precise measurement needed (use `measure`)

**Workflow references:**
- See `reference/workflow_catalog.yaml#capability_gap_analysis` for classification usage
