tree-generator

tree-generator is a skill for Claude Code from RaNDoM6913/claude-code-superkit. It costs 30 tokens per session (1,594 once invoked), scanned A, original, MIT.

A documentation tool that creates a readable map of a project’s folders and important files, called a directory tree.

In plain words
What is it for?
Use it to detect project structure, identify major components including monorepos, and generate annotated Markdown trees under docs/trees/.
Why use it?
It saves time when explaining a codebase and removes noisy folders such as dependencies, build output, and caches.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions AGENTS.md; mentions Codex.

Good fit Use it to detect project structure, identify major components including monorepos, and generate annotated Markdown trees under docs/trees/.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/random6913/claude-code-superkit/tree-generator
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 RaNDoM6913/claude-code-superkit --skill tree-generator
Clone the repo
git clone --depth 1 https://github.com/RaNDoM6913/claude-code-superkit

Made for: Claude Code.

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 tree-generator

README.md
[![agentmods](https://agentmods.dev/badge/skills/random6913/claude-code-superkit/tree-generator/github.svg)](https://agentmods.dev/skills/random6913/claude-code-superkit/tree-generator)
Your own site
<a href="https://agentmods.dev/skills/random6913/claude-code-superkit/tree-generator"><img src="https://agentmods.dev/badge/skills/random6913/claude-code-superkit/tree-generator/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 tree-generator

Your own site · 80×15
<a href="https://agentmods.dev/skills/random6913/claude-code-superkit/tree-generator"><img src="https://agentmods.dev/badge/skills/random6913/claude-code-superkit/tree-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,594 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.00030 $0.01594
Opus 5.5 $0.00012 $0.00638
Sonnet 5.5 $0.00006 $0.00319
Haiku 4.5 $0.00003 $0.00159

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

Security

Grade A, and why

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 12d 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.

packages/codex/skills/tree-generator/SKILL.md · 66 lines

How it starts

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

Tree Generator

Represent the requested repository or component structure accurately at a useful depth. A limited tree is a view with stated boundaries, not an exhaustive inventory. Generate a read-only preview unless the task authorizes saving to an identified documentation destination.

Establish scope and destination

Read applicable AGENTS.md first and relevant project-tree/documentation conventions. Resolve the actual root and selected components from the request and repository evidence. Manifests such as go.mod, package.json, Cargo.toml, and pyproject.toml help identify components; a filename alone does not establish a monorepo boundary or directory purpose.

Record the root, whether the view represents the current working tree or a specific revision, selected subtrees, depth semantics, exclusions, hidden-file policy, and any output/scan limit. For example, define depth 0 as the root and depth 1 as its immediate children. Use the requested depth or choose and disclose a useful overview depth; do not turn that choice into a claim of full depth. If scope is ambiguous in a way that changes the result, resolve it before writing.

Use the project's maintained destination convention when writing is authorized; docs/trees/tree-monorepo.md and per-component files are examples, not mandatory paths. Without an authorized write/destination, return a preview and proposed location. Do not create one file per component automatically, install a tree utility, alter Git state, or perform external writes.

Before a permitted update, inspect the destination and nearby documentation conventions. Preserve existing hand-authored content and others' dirty work; update a designated generated section or the specifically authorized file. Re-read before writing if another worker may have changed it. Do not overwrite custom content that cannot be preserved within the requested update; provide the preview and unresolved destination decision instead. Check for symlinked destinations and do not follow them outside the authorized location.

Read the full file on GitHub · 66 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. 12d ago Changed · +2 lines ab86dde7e6e0
  2. 1mo ago Changed · -1 lines · +9 tokens per session 8516282c566c
  3. 2mo ago First seen · 65 lines · 21 tokens per session scan A 9eacf5ebfd88

Subscribe to this mod's changes

tree-generator is a skill published in the GitHub repository RaNDoM6913/claude-code-superkit (3 stars, last pushed yesterday), licensed MIT. It adds 30 tokens to every session and 1,594 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-03.

Related

tree-generator compared with skills from other repositories

tree-generator next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tree-generatorRaNDoM6913/claude-code-superkitSkill3yesterdayMITA30Claude Code
headroomheadroomlabs-ai/headroomSkill81ktodayApache-2.0A76Claude Code
git-commitadongwanai/learn-workbuddySkill566yesterdayMITA0Claude Code, Codex
nav-diagnoseqf-studio/navigatorSkill35815d agoMITA43Claude Code
nav-compactqf-studio/navigatorSkill35815d agoMITB38Claude Code
ccxthalesholleben/ccxSkill105d agoMITA66Codex
nav-multialekspetrov/navigatorSkill2322mo agoMITA62Claude Code