---
name: yogsoth-ai/hierarchy-construction
source: https://app.decimal.ai/s/yogsoth-ai-hierarchy-construction@1/SKILL.md
source_sha256: 8f94ec9c3fa8
---

# Hierarchy Construction

Build taxonomic hierarchies using component_of and instance_of edges. Ensure hierarchies are acyclic, transitive, and complete.

## Available SOPs

- edge-batch-creation — create hierarchy edges in bulk
- hierarchy-visualization — inspect current hierarchy structure
- gap-detection — find missing intermediate levels
- consistency-checking (tactic, peer) — verify no cycles

## Guiding Principles

- **Acyclic always.** A cycle in a hierarchy is a logical error. Detect and break immediately.
- **Intermediate levels matter.** Jumping from "machine learning" directly to "Adam optimizer" skips useful structure.
- **Multiple inheritance is fine.** A concept can belong to multiple parents (component_of multiple things).
- **Depth ≤ 5.** Hierarchies deeper than 5 levels are usually over-specified.

## Minimum Yield

<HARD-GATE>
≥3 hierarchy edges created per invocation.
If the hierarchy is already complete for the current scope, report and exit.
</HARD-GATE>

<!-- BEGIN available-tables (generated) -->

## Available Tactics

Optional, no fixed order; the final leaf is always a sop.

| Tactic | When to use |
| --- | --- |
| knowledge-structuring-consistency-checking | Tactic for verifying ontology consistency — detect contradictions, cycles, orphans, and type violations. |

## Available SOPs

Optional, no fixed order; the final leaf is always a sop.

| SOP | When to use |
| --- | --- |
| edge-batch-creation | SOP for creating multiple edges in a batch — efficient bulk relationship creation. |
| gap-detection | SOP for finding structural gaps in the ontology — missing concepts, thin branches, disconnected clusters. |
| hierarchy-visualization | SOP for inspecting the current hierarchy structure — query graph to display parent-child relationships. |

<!-- END available-tables (generated) -->