skill-tree-generator

A tool for splitting large skills into smaller, hierarchically organized skill trees, or combining related skills under shared routing instructions. Routing means directing a request to the most relevant smaller skill.

In plain words
What is it for?
It is for decomposing one skill, combining multiple skills, removing overlapping capabilities, and adding new leaves to an existing skill tree.
Why use it?
It makes complex collections of instructions easier to navigate, maintain, and extend when they contain several different workflows.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/openbitfun/skill_tree/skill-tree-generator
Any agent
npx skills add openBitFun/skill_tree --skill skill-tree-generator
Clone the repo
git clone --depth 1 https://github.com/openBitFun/skill_tree

Made for: Claude Code, Codex.

Per session 104 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,708 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00104 $0.08708
Opus 5 $0.00052 $0.04354
Sonnet 5 $0.00021 $0.01742
Haiku 4.5 $0.00010 $0.00871

Measured 2d ago against content hash d17e3371b9a9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

skill-tree-generator 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 2d 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.

skill-tree-generator/SKILL.md · 538 lines

How it starts

The opening of the file, as written. The whole thing — 538 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Skill Tree Generator

Usage

/skill-tree-generator <skill-name-or-skill-path-or-description>
/skill-tree-generator --aggregate skill1,skill2,... [--domain domain-name] [--no-decompose]
/skill-tree-generator --update <tree-path> --add <skill>
输入特征 Mode 描述
单个 skill 路径/描述,无特殊 flag Mode 1 将单体 skill 转为路由树
--aggregate skill1,skill2,... Mode 2 聚合多个 skill 为统一跨域树
--update <tree-path> --add <skill> Mode 3 增量更新已有 tree

可选 flag

Flag 适用 Mode 作用
--domain <name> Mode 2 声明同域聚合,ROOT.md 按域内能力差异路由
--no-decompose Mode 2 跳过 Step A1 能力拆解,所有源 skill 一律按单叶处理。仅当源 skill 已预先拆到原子粒度时使用

Overview

Transform monolithic skills into modular, hierarchical skill-trees (ROOT.md → ROUTER.md → SKILL.md) with dynamic routing. Use when:

  • A skill has grown too complex and needs modularization
  • Multiple distinct workflows exist within a single skill
  • Multiple related skills need to be unified under one routing tree
  • Cross-domain workflows span multiple skills
  • Overlapping capabilities across skills need deduplication
  • An existing skill-tree needs new skills or capabilities added

Strict Conformance

Before creating or modifying tree output, read and follow references/strict_conformance.md. Do not use substitute workflows, fast versions, heuristic-only splitting, or partial validation. If full conformance is impractical, stop and report the blocker before continuing.


Mode 1: Single Skill Tree Generation

Generate a routing tree for a single skill.

Input: Skill path or description Output: Complete tree structure in {skill-name}-tree/

Example:

/skill-tree-generator web-development

Mode 1 Step 1: Analyze Input Skill

First, analyze the input skill to identify:

  1. Core domains - What major functional areas does the skill cover?
  2. Sub-domains - Within each core domain, what sub-categories exist?
  3. Leaf capabilities - What specific tasks/endpoints are at the lowest level?
  4. Routing criteria - What signals distinguish one path from another?

Read the full file on GitHub · 538 lines

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. 2d ago First seen · 538 lines · 104 tokens per session scan A d17e3371b9a9

Subscribe to this mod's changes

skill-tree-generator is a skill published in the GitHub repository openBitFun/skill_tree (64 stars, last pushed 12d ago), licensed MIT. It adds 104 tokens to every session and 8,708 once invoked, about $0.0005 per session on Opus 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-08-30.

Related

Other skills, from other repositories

agent-messaging

Send and receive cryptographically signed messages between AI agents using the Agent Messaging Protocol (AMP). Use when the user asks to "send a message to an agent", "check agent inbox", "message another agent", "reply to a message", "notify an agent", or any inter-agent communication task.

davila7/claude-code-templates · 64 tokens

kagent-dev

Development guide for kagent's v1alpha3 Harness and AgentTemplate CRDs, AgentInstance gRPC control plane, upstream A2A integration, Substrate runtime provisioning, tests, generation, and PR workflow. Use for any implementation, debugging, review, or CI task in the kagent repository.

kagent-dev/kagent · 65 tokens

workflows

Execute a workflow script that orchestrates multiple subagents deterministically. Use when the user explicitly requests a workflow, multi-agent orchestration, parallel or sequential agent pipelines, structured agent outputs, or a durable background workflow run.

get-bb/bb · 47 tokens

agent-tuning

Use when changing agent model or effort configuration, adapter mappings, or eval candidate profiles.

kunchenguid/no-mistakes · 21 tokens

ax-python-agent

Use when writing Python code with axllm for agents, child delegation, tools, MCP, citations, persistent playbook learning, stage instructions, runtime state, final typed responses, and direct-respond executor skipping.

ax-llm/ax · 49 tokens

📝 任务完成后归档

重要提醒: 每次完成复杂调试或开发任务后,主动执行此流程! 将学到的经验归档为 skill,供以后参考。不要等用户提醒。.

Project-N-E-K-O/N.E.K.O · 49 tokens