CLI tool for exporting repository content into a structured markdown file for LLM processing.
- 📄 Markdown file generation from repository content
- 🔍
.gitignore
integration - 📊 Repository structure visualization
- ❓ AI-assisted query system
- 🔄 File truncation (30 lines preview for 500+ line files)
- 🖼️ Binary file handling with placeholders
- 🔐 Authentication system
# Using npm
npm install -g zhankai
# Using yarn
yarn global add zhankai
# Using pnpm
pnpm add -g zhankai
# Version verification
zhankai --version
# Documentation generation
cd your-project
zhankai
# Default output
zhankai
# Custom output file
zhankai -o custom-docs.md
# Directory depth limitation
zhankai -d 2
# Include file contents
zhankai -c
⚠️ Requirement: RGCVII token holdings required.
# Authentication setup
zhankai setup
# Codebase queries
zhankai -q "describe functionality"
# Credential removal
zhankai logout
Option | Description | Default |
---|---|---|
-o, --output <filename> |
Output file specification | <REPOSITORY_NAME>_app_description.md |
-d, --depth <number> |
Directory traversal depth | Infinity |
-c, --contents |
Content inclusion flag | false |
-q, --query <string> |
AI query string | - |
--version |
Version information | - |
- RGCVII token verification
zhankai setup
execution- Required inputs:
- Ethereum address
- Etherscan message signature
- Signature verification
- pnpm v9.12.2
- Node.js v20.9.0
git clone https://github.com/your-username/zhankai.git
cd zhankai
pnpm i
pnpm build
- Repository scanning
.gitignore
filtering- File processing:
- Size-based truncation
- Binary file conversion
- Format preservation
- Structure generation
- Markdown compilation
GPL-3.0 License. See LICENSE for specifications.