Prompt2tree — AI skill for Claude Code
When using AI coding assistants (ChatGPT, Claude, Cursor, DeepSeek), asking agents to create individual folders and files burns thousands of context tokens and introduces latency or rate-limit delays.
How to install Prompt2tree
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open VittalAB/prompt2tree and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Prompt2tree does
When using AI coding assistants (ChatGPT, Claude, Cursor, DeepSeek), asking agents to create individual folders and files burns thousands of context tokens and introduces latency or rate-limit delays. `promp2tree` solves this
Alternatives in AI
- Repomix — 📦 Repomix is a powerful tool that packs your entire repository into a single, AI-friendly file 22.7k ★
- Context Engineering Intro — GitHub Repo stars Context engineering - the new way of AI coding assistants Context engineering guide 12.8k ★
- OpenContext — A personal context store for AI agents and assistants—reuse your existing coding agent CLI (Codex/Claude/OpenC 1.1k ★
README
🌲 prompt2tree (`pt`)
[](https://pypi.org/project/prompt2tree/) [](https://pypi.org/project/prompt2tree/) [](https://opensource.org/licenses/MIT)
**The AI-native project scaffolder.** Convert raw LLM text trees into physical directory structures and initial boilerplate files in milliseconds.
💡 Why prompt2tree?
When using AI coding assistants (ChatGPT, Claude, Cursor, DeepSeek), asking agents to create individual folders and files burns thousands of context tokens and introduces latency or rate-limit delays.
**`prompt2tree` solves this.** Request a visual folder tree from your LLM, copy the string, and run `pt -c` (or `pt structure.txt`). Your entire project architecture is scaffolded instantly on your local machine for zero token cost.
⚡ Quick Start
1. Installation
pip install prompt2tree
*To enable direct OS clipboard reading, install with the `clip` extra:*
pip install "prompt2tree[clip]"
2. Usage Workflows
Option A: Directly from Clipboard (Fastest)
Copy any tree output from ChatGPT or Claude, then run:
pt -c
# or
prompt2tree --clip
Option B: From a Text File
pt structure.txt
*If no arguments are passed, `pt` automatically looks for `structure.txt` in the working directory.*
Option C: Piping via Stdin
cat structure.txt | pt
✨ Key Features
- 🧹 LLM Output Sanitization: Automatically strips Markdown backticks (```), conversational chatter, and inline explanatory comments (
main.py # application entrypoint). - 🌲 Universal Tree Support: Parses Unicode box-drawing trees (
├──,└──), ASCII pipe/hyphen variants (|--,\--), and plain tab/space-indented hierarchies. - 📄 Smart Boilerplate Auto-Fill: Automatically populate
Related Skills
Codesight
Universal AI context generator. Saves thousands of tokens per conversation in Claude Code, Cursor, Copilot, Co
Claude Usage Statusline
Dependency-free Claude Code statusline: model, context usage, 5h/weekly rate limits, tokens, cost — one line.
Cheap LLM Router
Save Claude/Codex subscription tokens by routing context-only file reads through a cheaper LLM (DeepSeek, Kimi
Echook
🔊 echook — AI-operated audio notifications for Claude Code, Cursor IDE & Codex CLI — 26 hooks, voice + chime
Tmux Agent Usage
Display AI agent rate limit usage in your tmux status bar
Vibeharness
Hackable, interactive LLM agent harness for the terminal — streaming REPL, tool-using agent loop, persistent P
Related Agents
10x Tool Calls
Cursor and Windsurf meter usage by requests and tool calls rather than tokens, which means a finished or stall
OpenAI Assistants
Setup: OpenAI Assistants API / ChatGPT Custom GPT
ChatGPT On Wechat
CowAgent是基于大模型的超级AI助理,能主动思考和任务规划、访问操作系统和外部资源、创造和执行Skills、拥有长期记忆并不断成长,比OpenClaw更轻量和便捷。同时支持微信、飞书、钉钉、企微、QQ、公众号、网页