Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By nekocodev0.12.0MITIn 1 marketplace
Keeps a FILETREE.md index with a one-line description and content hash per file, so drift shows up after edits. A Bash hook screens commit commands, and FILETREE.md is never committed for you.
Trending plugins
7-day copy clicks
You run one by typing its /name in Claude Code.
1 caution to review before installing
A hook runs when Claude uses the Bash tool
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A Claude Code plugin that maintains FILETREE.md — a one-line description per file with content hashes for staleness detection. Lets the LLM grasp repo layout in a few hundred tokens before touching code.
Every new Claude Code session relearns the codebase: ls, grep, open file, read, repeat. The discovery is expensive and not reusable across sessions.
| Pain point | filetree's answer |
|---|---|
| LLM keeps rediscovering layout each session | Persisted as FILETREE.md, checked into git, shared with collaborators |
| Summary docs go stale silently | Per-entry content hash; mismatch reveals drift immediately |
| Rewriting every description on small refactors wastes tokens | UNCHANGED bias — LLM refreshes hash only when purpose is intact (~100x cheaper) |
| Tooling adds a sqlite / daemon / watcher | Single markdown file. Change detection delegated to git. Zero background process |
Via marketplace:
/plugin marketplace add nekocode/filetree-skill
/plugin install filetree
Local development / dog-fooding (no install needed):
cd /path/to/filetree-skill
claude --plugin-dir .
After editing commands/ or SKILL.md, run /reload-plugins inside the session for a hot reload.
| Command | Purpose |
|---|---|
/filetree:init | Generate FILETREE.md from scratch. Refuses to overwrite without confirmation. --self-only keeps every artifact out of git |
/filetree:update | Sync FILETREE.md with current repo state (added / changed / removed / renamed) |
/filetree:lint | Read-only drift check. Exits non-zero on drift, CI-friendly. Does not call the LLM |
/filetree:uninstall | Full uninstall — un-wires CLAUDE.md/AGENTS.md, removes generated files (confirmed per item), tears down self-only mode |
All commands refuse to commit FILETREE.md. You review the diff and commit yourself.
/filetree:init handles this on first run — it scans the repo root for CLAUDE.md / AGENTS.md, skips files that already have a ## FILETREE.md section, and for the rest proposes a dedicated ## FILETREE.md section (rendered in the file's language). You confirm each edit before it lands.
Caveats:
CLAUDE.md nor AGENTS.md exists, the plugin won't create one — it's your call which (if any) to seed. Create the file you want, then re-run /filetree:init.CLAUDE.md / AGENTS.md later, re-run /filetree:init (it'll ask before overwriting FILETREE.md) or wire by hand.To wire by hand, drop a section like this into your CLAUDE.md:
## FILETREE.md
`FILETREE.md` indexes every file with a one-line role summary, grouped by directory. Read it to find code by purpose before `ls`/`grep`/`find` — it turns "search the repo" into "look it up". Auto-maintained; don't hand-edit.
```
## (root)/
- `manage.py`: Django CLI entrypoint
## src/auth/
- `jwt.py`: JWT middleware; parses token, injects user_id
- `session.py`: Redis-backed server-side session store
```
The agent then treats FILETREE.md as a cheap index — one read replaces dozens of ls / grep / cat calls during orientation.
.filetree.json)Optional. Drop a .filetree.json at the repo root and commit it to share with the team. Absent → defaults.
{
"manifest_path": "docs/FILETREE.md",
"exclude": ["migrations/", "**/*.gen.ts", "/build"],
"include": ["*.svg"],
"language": "zh",
"commit_guard": true
}
| Key | Effect | Default |
|---|---|---|
manifest_path | Where the manifest is written (relative path inside the repo) | FILETREE.md |
exclude | gitignore-style patterns to keep tracked files OUT of the manifest | [] |
include | gitignore-style patterns to index files normally skipped (e.g. *.svg) | [] |
language | Pin the summary language (e.g. "zh") instead of auto-detecting | null |
commit_guard | Intercept a Claude-issued git commit and auto-update FILETREE.md | false |
self_only | Self-only mode marker, managed by /filetree:init --self-only / /filetree:uninstall — don't set by hand | false |
exclude / include accept full gitignore syntax (/build, **, !keep.gen.ts, trailing-slash dirs). Invalid config fails fast with a clear error.
# Project Filetree
_Auto-maintained by `/filetree:update`. Content hashes live in the sidecar `FILETREE.hash.json`; do not edit it by hand._
## (root)/
- `README.md`: Project entry doc
## src/auth/
- `middleware.py`: JWT validation middleware; parses bearer token and injects user_id into request context
- `jwt_utils.py`: Pure JWT signing / verification helpers, framework-agnostic
7-day copy clicks
npx claudepluginhub nekocode/filetree-skill --plugin filetreeBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground