# Validate

Validate Semantica pipelines, extraction quality, graph schemas, and ontology consistency.

- Repository: https://github.com/semantica-agi/semantica (14373 stars)
- Category: Engineering
- License: MIT
- Last updated: 2026-11-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add semantica-agi/semantica --skill validate -g -a claude-code -y`
Codex: `npx skills add semantica-agi/semantica --skill validate -g -a codex -y`
Cursor: `npx skills add semantica-agi/semantica --skill validate -g -a cursor -y`
Gemini CLI: `npx skills add semantica-agi/semantica --skill validate -g -a gemini-cli -y`

## Description

Validate Semantica pipelines, extraction quality, graph schemas, and ontology consistency. Returns structured error/warning checklists. Uses PipelineValidator, PipelineBuilder.validate_pipeline(), GraphValidator, and OntologyValidator. Sub-commands: pipeline, step, dependencies, extraction, graph, ontology, performance.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# /semantica:validate

Validate pipeline and graph quality. Usage: `/semantica:validate <target> [options]`

`$ARGUMENTS` = target type + optional config or path.

---

## `pipeline [--config '<json>']`

Validate a full pipeline builder configuration.

```python
from semantica.pipeline.pipeline_builder import PipelineBuilder
from semantica.pipeline.pipeline_validator import PipelineValidator

builder = PipelineBuilder()
if config_json:
    import json
    builder.build_pipeline(json.loads(config_json))

# PipelineBuilder has its own quick validate
quick = builder.validate_pipeline()  # returns Dict

# PipelineValidator gives full ValidationResult(valid, errors, warnings)
# Does NOT raise, always returns a result object
validator = PipelineValidator()
result = validator.validate(builder)

# Also check inter-step dependencies
deps = validator.check_dependencies(builder)
```

Output:
```
Pipeline Validation:  VALID ✓  |  INVALID ✗
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Steps:    N registered
Valid:    M steps

Errors (K):
  ✗ [step_name] <error message>

Warnings (J):
  ⚠ [step_name] <warning message>

Dependencies:
  ✓ All dependencies resolved
  ✗ Step "<name>" depends on missing step "<dep>"

Result: <valid>, K errors, J warnings
```

---

## `step <step_name> [--type <type>] [--constraints '<json>']`

Validate a single pipeline step.

```python
from semantica.pipeline.pipeline_builder import PipelineBuilder
from semantica.pipeline.pipeline_validator import PipelineValidator
import json

builder = PipelineBuilder()
step = builder.get_step(step_name)

validator = PipelineValidator()
result = validator.validate_step(
    step=step,
    **json.loads(constraints_json) if constraints_json else {},
)
```

Output: same checklist format but scoped to a single step.

---

## `dependencies`

Check all inter-step dependency resolution for the active pipeline.

The rest: https://github.com/semantica-agi/semantica/blob/HEAD/plugins/skills/validate/SKILL.md
