
Validate
Validate Semantica pipelines, extraction quality, graph schemas, and ontology consistency.
Install
npx skills add semantica-agi/semantica --skill validate -g -a claude-code -y- Repository
- semantica-agi/semantica14.4k
- Category
- Engineering
- Updated
- 3d ago
- License
- MIT
- Context cost
- Lightabout 1,205 tokens
- Runs scripts
- No, instructions only
What it does
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.
/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.
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.
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.
