AgentStack
SKILL verified MIT Self-run

Directory Tree

skill-publisher-skill-claude-skill-directory-tree · by publisher-skill

目录树生成器 - 生成美观的目录树结构,支持文件大小显示和导出

No reviews yet
0 installs
0 views
view→install

Install

$ agentstack add skill-publisher-skill-claude-skill-directory-tree

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Directory Tree? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Directory Tree Skill

目录树生成器,生成美观的目录树结构。

功能特性

  • 生成目录树 - 直观的树形结构显示
  • 文件大小显示 - 显示文件和目录大小
  • 深度限制 - 限制显示深度
  • 排除模式 - 排除特定文件/目录
  • 导出功能 - 导出为文本或 Markdown

使用方法

Python API

from skills.directory_tree import DirectoryTree

tree = DirectoryTree()

# 生成目录树
tree_str = tree.generate('/path/to/folder')
print(tree_str)

# 显示文件大小
tree_str = tree.generate_with_sizes('/path/to/folder')

# 限制深度
tree_str = tree.generate('/path/to/folder', max_depth=3)

# 保存到文件
tree.save_to_file(tree_str, 'output.txt')

API 参考

DirectoryTree 类

generate(directory, max_depth=None, exclude_patterns=None, include_files=True)

生成目录树字符串

generate_with_sizes(directory, max_depth=None, exclude_patterns=None)

生成带文件大小的目录树

generate_markdown(directory, max_depth=None, exclude_patterns=None, include_files=True)

生成 Markdown 格式的目录树

save_to_file(tree_str, output_file)

保存到文件

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.