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 ★
- Codesight — Universal AI context generator 979 ★
- ClaudeCodeStatusLine — Custom status line for Claude Code showing model, tokens, rate limits, and git info in real-time 333 ★
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
AI Timeline
See what AI coding agents actually do, across one session or thousands. Timelines, tool calls, tokens and cost
Answer Standing
Agent skill: measure how AI assistants (ChatGPT, Claude, Gemini, DeepSeek, Doubao...) describe your product wi
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
LLM Rate Limit Proxy
Self-hosted LLM proxy that pools and rotates your API keys, queues requests instead of returning 429 Too Many
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、公众号、网页