Skip to main content
Alison Aquinas logoAlison's LLM Skills Marketplace

tree

Included in skill bundleshared-skillsView on GitHub ↗

Files

SKILL.mdagentsreferencesscripts

Install

Install only this skill with npx skills
npx skills add alisonaquinas/llm-shared-skills --skill 'tree' -g -y
Install the containing skill bundle
/plugin install shared-skills@llm-skills
Download tree-skill.zip
This skill is bundled inside shared-skills. Use npx skills when you only want this skill, or install the bundle once to make every included skill available through the plugin marketplace flow. Browse the full skill bundle repository at github.com/alisonaquinas/llm-shared-skills.

Invoke

Invoke this skill after installation
/shared-skills:tree

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