tree-validator
Validates the referential integrity of the knowledge tree and performs a Reverse Coverage Audit against the source context documents.
Skill by orchable
Chalk Labs
Need help deploying tree-validator?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/orchable-tree-validator
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: testing, security
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/tree-validator
What's inside
- Skill name
tree-validator- Description
- Validates the referential integrity of the knowledge tree and performs a Reverse Coverage Audit against the source context documents.
- License
- MIT
- Instructions
- 59 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (11)
- SKILL.md
- audit_coverage.py · scripts/
- audit_lo_semantics.py · scripts/
- detect_gaps.py · scripts/
- fix_swift_cio_neutrality.py · scripts/
- generate_hierarchy_report.py · scripts/
- llm_auto_heal_master_tree.py · scripts/
- master_tree_parser.py · scripts/
- scaffold_tree.py · scripts/
- validate_master_tree.py · scripts/
- validate_tree.py · scripts/
SKILL.md (first lines)
## Repository Structure
```
repo-root/
├── projects/
│ └── <project-slug>/
│ ├── output/
│ │ ├── fields.tsv
│ │ ├── subjects.tsv
│ │ ├── categories.tsv
│ │ ├── topics.tsv
│ │ ├── concepts.tsv
│ │ └── learning-objectives.tsv
│ └── .tree-validator/ # auto-scaffolded by script, no manual creation needed
│ └── reports/<timestamp>/{validation_report.md, coverage_report.md}
├── skills/
│ └── skills/tree-validator/scripts/
│ ├── validate_tree.py # Validates referential integrity
│ ├── audit_coverage.py # Performs reverse coverage audit against syllabus
│ ├── detect_gaps.py # Detects 5 types of gaps (A, B, C, D, E)
│ ├── validate_master_tree.py # Validates Master Tree integrity
│ ├── scaffold_tree.py # Initializes project structure + TSV headers
│ ├── master_tree_parser.py # Shared parser for Master Tree TSV
│ └── fix_swift_cio_neutrality.py # Fixes T6 violations (Swift-specific)
└── status.yaml # active_project + status of the most recent run
```
## N:N (Many-to-Many) Referential Integrity Rules
The Knowledge Graph supports **N:N (Many-to-Many)** relationships across all 5 tiers (comma-separated `,` values are supported in `field_codes`, `subject_codes`, `category_codes`, `topic_codes`, `concept_codes`).
`validate_tree.py` automatically verifies that **every parent code in a comma-separated list** must exist in the corresponding parent table.
## Validation & Acceptance Workflow
1. **Referential Integrity Validation (`/validate-tree`)**:
- Run `python3 skills/tree-validator/scripts/validate_tree.py --project <slug> --fix`
- Ensure 100% no `BROKEN_REFERENCE`, `ORPHAN_NODE`, or format errors.
2. **Reverse Coverage Audit Against Syllabus (`/audit-coverage`)**:
- Run `python3 skills/tree-validator/scripts/audit_coverage.py --project <slug>`
- Ensure 100% of the items in the source syllabus (`projects/<slug>/context/` or PDF) are covered by LO codes.
- Generate a report at `projects/<slug>/.tree-validator/reports/<timestamp>/coverage_report.md`.
3. **Gap Detection (`/detect-gaps`)**:
- Run `python3 skills/tree-validator/scripts/detect_gaps.py --project <slug>`
- Detect 4 types of gaps: **A** (Concept without an LO), **B** (CIO missing child SIOs), **C** (Master Candidate not yet selected), **D** (CIO violates Marr's Tri-Level Test).
- Generate a report at `projects/<slug>/.tree-validator/reports/<stamp>/gap_report.md`.
4. **Master Tree Validation (`/validate-master-tree`)**:
- Run `python3 skills/tree-validator/scripts/validate_master_tree.py`
- Validate referential integrity and detect collisions in the Master Tree (`mlo-knowlege-tree.tsv`).
- **MUST PASS** before `/map-taxonomy` or `/build-tree` reads from the Master Tree (Gate §7).
5. **Project Initialization (`/init`)**:
- Run `python3 skills/tree-validator/scripts/scaffold_tree.py <slug>`
- Scaffold the project directory structure and 6 TSV files with standard headers. Update `status.yaml`.From orchable/knowledge-graph-public, MIT.
More from orchable/knowledge-graph-public
- 0.549score
learning-objective-generator
orchable
Extract and generate structured Learning Objectives (ULO, CIO, SIO) from raw syllabus and context text using LLM scripts.
SkillBFreshness: B★ 1Claude Code +9 - 0.549score
concept-integrity
orchable
Validate and repair concept semantic integrity — detect duplicates, enforce boundaries via 2-agent Proposer/Judge, and cascade repair across project TSVs and…
SkillBFreshness: B★ 1Claude Code +9 - 0.546score
taxonomy-mapper
orchable
Cross-reference extracted project syllabus with the Master Knowledge Graph to establish a formal taxonomy mapping plan.
SkillBFreshness: B★ 1Claude Code +9 - 0.546score
tree-assembler
orchable
Build the 6 final TSV project files by applying the approved mapping plan against the Master Knowledge Graph.
SkillBFreshness: B★ 1Claude Code +9 - 0.544score
project-context-loader
orchable
Inventory, read, interpret, and summarize every resource in the active project's context directory to establish the exact domains and syllabus.
SkillBFreshness: B★ 1Claude Code +9 - 0.539score
cs2023-standard
orchable
IEEE/ACM Computer Science Curricula 2023.
SkillBFreshness: B★ 1Claude Code +9 - 0.297score
keyword-extractor
orchable
No description from the publisher yet.
SkillBFreshness: B★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Aug 15, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from orchable
- 0.549score
concept-integrity
orchable
Validate and repair concept semantic integrity — detect duplicates, enforce boundaries via 2-agent Proposer/Judge, and cascade repair across project TSVs and…
SkillBFreshness: B★ 1Claude Code +9 - 0.549score
learning-objective-generator
orchable
Extract and generate structured Learning Objectives (ULO, CIO, SIO) from raw syllabus and context text using LLM scripts.
SkillBFreshness: B★ 1Claude Code +9 - 0.546score
taxonomy-mapper
orchable
Cross-reference extracted project syllabus with the Master Knowledge Graph to establish a formal taxonomy mapping plan.
SkillBFreshness: B★ 1Claude Code +9 - 0.546score
tree-assembler
orchable
Build the 6 final TSV project files by applying the approved mapping plan against the Master Knowledge Graph.
SkillBFreshness: B★ 1Claude Code +9 - 0.544score
project-context-loader
orchable
Inventory, read, interpret, and summarize every resource in the active project's context directory to establish the exact domains and syllabus.
SkillBFreshness: B★ 1Claude Code +9 - 0.539score
cs2023-standard
orchable
IEEE/ACM Computer Science Curricula 2023.
SkillBFreshness: B★ 1Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get tree-validator running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
tree-validator skill. Agent Mart. https://agentmart.dev/skills/orchable-tree-validator (last updated 2026-10-24)