Update TREE.md – Clean Project Tree Regenerator
Goal: Keep TREE.md accurate, compact, and developer-focused. Never include heavy/irrelevant folders.
Exclusions (hard-coded – always apply)
node_modules .next dist build coverage .cache .tmp .vercel .output target # Rust / wasm if any *.log .DS_Store Thumbs.db .git .gitignore # we show the tree, not the ignore file itself
Process (strict)
- •
Run shell command to generate clean tree: tree -a -I 'node_modules|.next|dist|build|coverage|.cache|.tmp|.vercel|.output|target|*.log|.DS_Store|Thumbs.db|.git' --dirsfirst
- •
Capture output
- •
Format as markdown code block with header:
Project Structure (last updated: YYYY-MM-DD HH:MM)
<clean tree="" output="" here=""> - •
Replace entire content of TREE.md with this new version. No extra commentary in the file.
- •
Clean up:
shell "rm temp-tree.txt"
Tool calls sequence (when invoked)
- •shell "tree -a -I 'node_modules|.next|dist|build|coverage|.cache|.tmp|.vercel|.output|target|*.log|.DS_Store|Thumbs.db|.git' --dirsfirst > temp-tree.txt"
- •read "temp-tree.txt"
- •Format content → add timestamp header
- •write "TREE.md" "<formatted markdown content>"
- •shell "rm temp-tree.txt"
Output Format (when skill finishes)
TREE.md has been regenerated and is now up-to-date. Relevant excerpt:
<show first ~20-30 lines of the new tree for quick confirmation>
No other text. Return control to the parent sequence.