construct-hierarchy

construct-hierarchy is a skill for Claude Code, Codex from yogsoth-ai/de-anthropocentric-research-engine. It costs 28 tokens per session (425 once invoked), scanned A, original, Apache-2.0.

A hierarchy-building skill that organizes entities into parent-and-child relationships such as “is a,” “part of,” or “instance of.” It checks that the structure has valid roots, no cycles, and no unsupported relationship types.

In plain words
What is it for?
Use it to build a typed hierarchy, find cycles and orphan nodes, report depth, and explain why each relationship was included or rejected.
Why use it?
It catches circular relationships, misplaced items, missing levels, and entities that do not belong anywhere in the structure. This makes a classification or knowledge structure easier to check and use.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to build a typed hierarchy, find cycles and orphan nodes, report depth, and explain why each relationship was included or rejected.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yogsoth-ai/de-anthropocentric-research-engine/construct-hierarchy
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add yogsoth-ai/de-anthropocentric-research-engine --skill construct-hierarchy
Clone the repo
git clone --depth 1 https://github.com/yogsoth-ai/de-anthropocentric-research-engine

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for construct-hierarchy

README.md
[![agentmods](https://agentmods.dev/badge/skills/yogsoth-ai/de-anthropocentric-research-engine/construct-hierarchy/github.svg)](https://agentmods.dev/skills/yogsoth-ai/de-anthropocentric-research-engine/construct-hierarchy)
Your own site
<a href="https://agentmods.dev/skills/yogsoth-ai/de-anthropocentric-research-engine/construct-hierarchy"><img src="https://agentmods.dev/badge/skills/yogsoth-ai/de-anthropocentric-research-engine/construct-hierarchy/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for construct-hierarchy

Your own site · 80×15
<a href="https://agentmods.dev/skills/yogsoth-ai/de-anthropocentric-research-engine/construct-hierarchy"><img src="https://agentmods.dev/badge/skills/yogsoth-ai/de-anthropocentric-research-engine/construct-hierarchy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 425 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00028 $0.00425
Opus 5.5 $0.00011 $0.00170
Sonnet 5.5 $0.00006 $0.00085
Haiku 4.5 $0.00003 $0.00042

Measured 2mo ago against content hash 2fe79d22c14d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

construct-hierarchy scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/construct-hierarchy/SKILL.md · 54 lines

What it actually says

construct-hierarchy

Purpose

Construct an acyclic is-a/part-of/instance-of hierarchy with explicit roots, depth, and transitivity constraints.

Input contract

required: [entity_set, relation_assertions, hierarchy_scope]
optional: [root_policy, multiple_inheritance_policy, depth_limit]
constraints: [relations use declared types; cycles are invalid]

Procedure

  1. Normalize entity identifiers and relation types.
  2. Insert high-confidence edges and infer only declared transitive edges.
  3. Detect cycles, orphan nodes, missing intermediate levels, and root violations.
  4. Repair or quarantine invalid edges, then emit roots, depth, and edge rationale.

If the hierarchy is complete enough to test for cycles, orphans, and incompatible parentage, consider audit-structure-consistency as the next tactic.

Output contract

produces: [hierarchy_graph, roots, depth_report, cycle_report, edge_rationales]
delta_fields: [findings, evidence_updates, uncertainties]

Quality gates

  • Graph is acyclic and every node has an allowed path to a root or an explicit orphan status.
  • Transitive closure does not introduce relation-type violations.
  • Depth is reported; depth >5 requires explicit justification.

Parameterization

Caller supplies entity schema, relation ontology, root and multiple-inheritance policies, transitivity rules, and depth limit.

Failure and counterexamples

Reject an edge that creates a cycle or conflates is-a with part-of.

Provenance map

  • resolved: hierarchy-construction
  • intermediate: Pass4/map-field-taxonomy

Preserved source criteria ledger

source criterion
hierarchy-construction Acyclic always; cycles are logical errors.
hierarchy-construction Multiple inheritance is allowed.
hierarchy-construction Depth <=5 unless explicitly justified.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 54 lines · 28 tokens per session scan A 2fe79d22c14d

Subscribe to this mod's changes

construct-hierarchy is a skill published in the GitHub repository yogsoth-ai/de-anthropocentric-research-engine (536 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 28 tokens to every session and 425 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-24.

Related

construct-hierarchy compared with skills from other repositories

construct-hierarchy next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
construct-hierarchyyogsoth-ai/de-anthropocentric-research-engineSkill5361mo agoApache-2.0A28Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill330k2d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill14kyesterdayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code