Alison Aquinas logoAlison's LLM Plugins

tree

Included in pluginshared-skillsView on GitHub ↗

Files

SKILL.mdagentsreferencesscripts

Install

Install the containing plugin
/plugin install shared-skills@llm-skills
Invoke this skill after installation
/shared-skills:tree
Download tree-skill.zip
This skill is bundled inside shared-skills. Install the plugin once, then Claude Code can use any of its included skills. Browse the full plugin repository at github.com/alisonaquinas/llm-shared-skills.

SKILL.md


name: tree description: Display directory structure in tree format. Use when the agent needs to search, filter, or transform data efficiently.

Tree

Display directory structure in tree format

Prerequisite Check

Run this before proposing tree output:

command -v tree >/dev/null 2>&1 || tree --version

If tree is missing, surface that first and fall back to find or ls -R, noting that formatting and depth controls will differ.

Quick Start

  1. Verify tree is available: tree --version or man tree
  2. Establish the command surface: man tree or tree --help
  3. Start with basic usage: tree [options] [input]

Intent Router

  • references/install-and-setup.md — Installing tree
  • references/cheatsheet.md — Common options and patterns
  • references/advanced-usage.md — Advanced techniques
  • references/troubleshooting.md — Common errors and solutions

Core Workflow

  1. Verify tree is available: tree --version
  2. Test with sample data first
  3. Validate output before batch processing
  4. Document exact commands for reproducibility

Quick Command Reference

tree --version                       # Check version
tree --help                          # Show help
tree [options] [input]               # Basic usage
man tree                             # Full manual
# Show a shallow directory summary
tree -L 2 .

# Fallbacks when tree is unavailable
find . -maxdepth 2 -print
ls -R

Safety Notes

AreaGuardrail
Input validationVerify input data format before processing.
Output handlingValidate output structure.
Large filesTest with smaller samples first.

Recovery note: when using find or ls -R as a fallback, describe the expected output difference up front because the user will not get tree-style indentation or the same ignore/depth behavior.

Source Policy

  • Treat installed behavior and man page as truth.

Resource Index

  • scripts/install.sh — Install on macOS or Linux.
  • scripts/install.ps1 — Install on Windows or any platform.
← Back to marketplace