---
title: "discover"
description: "Find previously unknown patterns"
canonical: "https://acs.synapti.ai/capabilities/discover/"
last_updated: "2026-11-16T01:14:10Z"
---

# discover

Find previously unknown patterns

Generated from [schemas/capability_ontology.yaml](https://github.com/synaptiai/agent-capability-standard/blob/main/schemas/capability_ontology.yaml), [skills/discover/SKILL.md](https://github.com/synaptiai/agent-capability-standard/blob/main/skills/discover/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 |

No ordering edge and no approval or checkpoint flag constrains where discover runs in a step list, and no conflicts_with edge keeps it out of a parallel group.

## Relationships

**Figure: Relationships of discover: 8 relationships with 8 capabilities.** discover has 8 relationships with 8 capabilities: 3 with edges into it, 4 with edges out of it, and 1 joined to it only by edges that run both ways.

| Capability | Row | Relationships |
| --- | --- | --- |
| [`retrieve`](https://acs.synapti.ai/capabilities/retrieve/index.md) | Edges into discover | `enables` (into) |
| [`search`](https://acs.synapti.ai/capabilities/search/index.md) | Edges into discover | `enables` (into) |
| [`observe`](https://acs.synapti.ai/capabilities/observe/index.md) | Edges into discover | `enables` (into) |
| [`detect`](https://acs.synapti.ai/capabilities/detect/index.md) | Either way | `alternative_to` (both ways) |
| [`classify`](https://acs.synapti.ai/capabilities/classify/index.md) | Edges out of discover | `enables` (out of) |
| [`plan`](https://acs.synapti.ai/capabilities/plan/index.md) | Edges out of discover | `enables` (out of) |
| [`attribute`](https://acs.synapti.ai/capabilities/attribute/index.md) | Edges out of discover | `enables` (out of) |
| [`generate`](https://acs.synapti.ai/capabilities/generate/index.md) | Edges out of discover | `enables` (out of) |

- `enables`: Unlocks [`classify`](https://acs.synapti.ai/capabilities/classify/index.md), [`attribute`](https://acs.synapti.ai/capabilities/attribute/index.md), [`plan`](https://acs.synapti.ai/capabilities/plan/index.md), [`generate`](https://acs.synapti.ai/capabilities/generate/index.md)
- `enables`: Unlocked by [`search`](https://acs.synapti.ai/capabilities/search/index.md), [`retrieve`](https://acs.synapti.ai/capabilities/retrieve/index.md), [`observe`](https://acs.synapti.ai/capabilities/observe/index.md)
- `alternative_to`: Can substitute for [`detect`](https://acs.synapti.ai/capabilities/detect/index.md)

## Contract

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

### Inputs

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | any | Yes | Data to explore |
| `constraints` | object | No | Discovery constraints |
| `method` | string | No | Discovery approach |

### Outputs

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `patterns` | array | Yes | Discovered patterns |
| `relationships` | array | No | Found relationships |
| `anomalies` | array | No | Unusual findings |
| `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 8 fields: 5 are in discover'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 |
| --- | --- |
| `patterns` | Yes, required |
| `relationships` | Yes, optional |
| `anomalies` | Yes, optional |
| `methodology` | No, the skill's own |
| `search_space` | 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: discover in workflows.** 2 workflows use discover, in 2 steps in all; its steps are the squares in an ink ring, and the key under the strips names the other squares.

- [`capability_gap_analysis`](https://acs.synapti.ai/workflows/capability-gap-analysis/index.md): step 3
- [`anomaly_investigation`](https://acs.synapti.ai/workflows/anomaly-investigation/index.md): step 3

## Claude Code skill

**Figure: What the discover skill's tools can do, against the ontology.** The skill may use 2 tools: 2 only read; the ontology marks discover 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 discover procedure uses.** 5 of the procedure's 7 steps use the name of an input or output field of the discover skill as a word; 3 output fields of 8 are used by no step (anomalies, methodology, confidence).

| Step | Inputs it uses by name | Output fields it uses by name |
| --- | --- | --- |
| 1. Define search space boundaries | `data` | `patterns`, `relationships`, `search_space` |
| 2. Apply discovery heuristics |  | `patterns` |
| 3. Assess significance |  |  |
| 4. Classify novelty |  | `assumptions` |
| 5. Identify entities involved |  | `patterns` |
| 6. Ground claims |  | `patterns`, `evidence_anchors` |
| 7. Synthesize findings |  |  |

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

**Figure: The field names each verification check of the discover skill uses.** 3 of the 5 checks use the name of an input or output field as a word; 3 output fields of 8 are named by no check (methodology, confidence and assumptions).

| Check | Inputs it uses by name | Output fields it uses by name |
| --- | --- | --- |
| 1. Each discovery is filed under patterns, relationships or anomalies, with significance and novelty classified |  | `patterns`, `relationships`, `anomalies` |
| 2. At least one discovery has evidence_anchors |  | `evidence_anchors` |
| 3. Methodology is documented and reproducible |  |  |
| 4. Search space boundaries are clearly defined |  | `search_space` |
| 5. Surprising discoveries are supported by multiple evidence points |  |  |

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

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

### Intent

Explore data or systems to find patterns, relationships, or anomalies that were not explicitly requested or expected. Discovery is open-ended exploration that surfaces novel insights rather than confirming hypotheses.

**Success criteria:**
- At least one non-obvious finding surfaced
- Significance level assigned to each discovery
- Novelty classified (known, suspected, surprising)
- Methodology documented for reproducibility

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

### Inputs

| Parameter | Required | Type | Description |
|-----------|----------|------|-------------|
| `data` | Yes | any | Data to explore |
| `constraints` | No | object | Bounds on exploration (time, scope, depth) |
| `method` | No | string | Discovery approach |

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) **Define search space boundaries**: Establish what is in and out of scope
   - File patterns, directories, or data sources
   - Conceptual boundaries (domain, time range)
   - Depth limits (how many hops of relationships)

2) **Apply discovery heuristics**: Use exploration strategies systematically
   - **Pattern mining**: Look for recurring structures, naming conventions, code patterns
   - **Relationship mapping**: Find connections between entities (imports, calls, references)
   - **Anomaly detection**: Identify outliers, inconsistencies, unusual structures
   - **Gap analysis**: Find missing elements, broken links, incomplete patterns

3) **Assess significance**: Evaluate each finding's importance
   - High: Directly actionable or explains important behavior
   - Medium: Useful context or potential issue
   - Low: Interesting but not actionable

4) **Classify novelty**: Determine how surprising each discovery is
   - Known: Documented or widely understood
   - Suspected: Hypothesized but not confirmed
   - Surprising: Unexpected or counter to assumptions

5) **Identify entities involved**: Link discoveries to specific entities
   - Files, functions, classes, modules
   - People, teams, systems
   - Concepts, patterns, architectures

6) **Ground claims**: Attach evidence anchors to all discoveries
   - Exact locations where patterns occur
   - References to related documentation

7) **Synthesize findings**: Connect individual discoveries into coherent insights

### Output Contract

Return a structured object:

```yaml
patterns:  # Discovered patterns (also gaps and opportunities)
  - type: pattern | gap | opportunity
    description: string  # What was discovered
    significance: low | medium | high
    novelty: known | suspected | surprising
    entities_involved: array[string]
    location: string  # Where found (file:line, path, or reference)
relationships:  # Found relationships between entities (same item shape, without type)
  - description: string
    significance: low | medium | high
    novelty: known | suspected | surprising
    entities_involved: array[string]
    location: string
anomalies:  # Unusual findings (same item shape, without type)
  - description: string
    significance: low | medium | high
    novelty: known | suspected | surprising
    entities_involved: array[string]
    location: string
methodology: string  # How discovery was conducted
search_space: string  # What was explored
confidence: number  # probability that the discoveries are real (§4.1.1)
evidence_anchors: array[EvidenceAnchor]  # References to supporting evidence; each {ref, kind} (STANDARD v1.2 §6.5)
assumptions: array[string]  # Conditions that affect findings
```

#### Field Definitions

| Field | Type | Description |
|-------|------|-------------|
| `patterns` | array\<object\> | Discovered patterns, gaps and opportunities (empty when none) |
| `patterns[].type` | enum | `pattern`, `gap` or `opportunity` |
| `relationships` | array\<object\> | Connections found between entities |
| `anomalies` | array\<object\> | Outliers, inconsistencies, unusual structures |
| `*[].significance` | enum | Importance level (every discovery) |
| `*[].novelty` | enum | How unexpected the finding is (every discovery) |
| `methodology` | string | Exploration approach used |
| `search_space` | string | Scope of exploration |
| `confidence` | number | Probability, 0.0-1.0, that the discoveries are real (§4.1.1) |
| `evidence_anchors` | array of evidence anchors (§6.5) | References to evidence |
| `assumptions` | array[string] | Conditions that could change findings |

### Examples

#### Example 1: Discover Hidden Dependencies

**Input:**
```yaml
data: "src/"
method: "relationship"
constraints:
  max_depth: 3
  focus: "imports and function calls"
```

**Output:**
```yaml
patterns:
  - type: "pattern"
    description: "All repository classes follow identical initialization pattern with DI container lookup"
    significance: medium
    novelty: known
    entities_involved:
      - "src/repositories/*.ts"
    location: "src/repositories/"
  - type: "gap"
    description: "No unit tests for critical OrderValidation module"
    significance: high
    novelty: surprising
    entities_involved:
      - "src/validation/OrderValidation.ts"
    location: "tests/ - no corresponding test file"
relationships:
  - description: "Circular dependency between UserService and AuthService"
    significance: high
    novelty: surprising
    entities_involved:
      - "src/services/UserService.ts"
      - "src/services/AuthService.ts"
    location: "src/services/UserService.ts:12 imports AuthService; src/services/AuthService.ts:8 imports UserService"
anomalies:
  - description: "PaymentService bypasses standard error handling pattern used by all other services"
    significance: high
    novelty: suspected
    entities_involved:
      - "src/services/PaymentService.ts"
    location: "src/services/PaymentService.ts:45-78"
methodology: "Static analysis of import statements, grep for class instantiation patterns, comparison against test file naming conventions"
search_space: "src/ directory (156 TypeScript files)"
confidence: 0.85
evidence_anchors:
  - {ref: "file:src/services/UserService.ts:12", kind: file}
  - {ref: "file:src/services/AuthService.ts:8", kind: file}
  - {ref: "file:src/services/PaymentService.ts:45", kind: file}
  - {ref: "file:tests/:directory-listing", kind: file}
assumptions:
  - "Standard TypeScript import resolution"
  - "Test files follow *Spec.ts or *.test.ts convention"
  - "All production code is in src/"
```

**Evidence pattern:** Grep for import statements, build dependency graph, compare patterns across files.

---

#### Example 2: Discover Architecture Patterns

**Input:**
```yaml
data: "entire codebase"
method: "pattern"
```

Seed observation: some endpoints seem to share similar structure.

**Output:**
```yaml
patterns:
  - type: "pattern"
    description: "Three distinct architectural styles coexist: MVC in /admin, DDD in /core, and script-style in /legacy"
    significance: high
    novelty: suspected
    entities_involved:
      - "/admin/*"
      - "/core/*"
      - "/legacy/*"
    location: "Repository-wide directory structure"
  - type: "opportunity"
    description: "MVC controllers in /admin could be consolidated - 12 controllers have nearly identical CRUD patterns"
    significance: medium
    novelty: known
    entities_involved:
      - "/admin/controllers/*.ts"
    location: "/admin/controllers/"
relationships:
  - description: "DDD bounded contexts in /core share a common anti-corruption layer for legacy integration"
    significance: medium
    novelty: surprising
    entities_involved:
      - "/core/adapters/legacy/"
    location: "/core/adapters/legacy/*.ts"
anomalies: []
methodology: "Directory structure analysis, pattern matching on file organization, code similarity detection"
search_space: "Full repository (312 files, 4 top-level directories)"
confidence: 0.75
evidence_anchors:
  - {ref: "file:/admin/controllers/:pattern-sample", kind: file}
  - {ref: "file:/core/domain/:ddd-structure", kind: file}
  - {ref: "file:/core/adapters/legacy/LegacyAdapter.ts:1-50", kind: file}
assumptions:
  - "Directory structure reflects intentional architecture"
  - "Pattern differences are deliberate, not accidental"
```

### Verification

- [ ] Each discovery is filed under `patterns`, `relationships` or `anomalies`, with significance and novelty classified
- [ ] At least one discovery has evidence_anchors
- [ ] Methodology is documented and reproducible
- [ ] Search space boundaries are clearly defined
- [ ] Surprising discoveries are supported by multiple evidence points

**Verification tools:** Read (to verify locations), Grep (to confirm patterns exist)

### Safety Constraints

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

**Capability-specific rules:**
- Do not modify any files during discovery
- Respect scope boundaries - do not explore outside the bounds set by `data` and `constraints`
- Flag discoveries that may reveal sensitive information
- Report uncertainty when findings could be coincidental

### Composition Patterns

**Commonly follows:**
- `observe` - Discovery often follows initial system observation
- `search` - Discovery extends search results
- `classify` - Discovery finds relationships between classified entities

**Commonly precedes:**
- `classify` - Discovered entities may need classification
- `measure` - Discovered patterns may need quantification
- `compare` - Discovered options may need comparison
- `plan` - Discoveries may trigger action planning

**Anti-patterns:**
- Never use discover for known-item retrieval (use `search`)
- Avoid discover for existence checking (use `detect`)
- Do not use discover when you already know what to find

**Workflow references:**
- See `reference/composition_patterns.md#capability-gap-analysis` for relationship discovery
- See `reference/composition_patterns.md#world-model-build` for discovery in modeling
