Create projects optimized for AI-assisted development in seconds.
Stop wasting tokens on venv garbage. Start building.
Quick Start β’ Features β’ Commands β’ Roadmap β’ Documentation
Every AI coding assistant (Cursor, Copilot, Claude, Windsurf) has the same problem:
Your project: 50 files of actual code
AI context: 5,000,000 tokens of venv garbage
Result: Slow, expensive, hallucinating AI
AI Toolkit solves this. One command creates a clean, optimized project structure that AI assistants actually understand.
| Feature | Description |
|---|---|
| 6 Templates | bot, webapp, fastapi, parser, full, monorepo |
| Multi-IDE Support | Cursor, VS Code + Copilot, Claude, Windsurf |
| External venv | Dependencies live outside project (../_venvs/) |
| Smart .cursorignore | AI never sees garbage again |
| Bootstrap Scripts | One command setup on any machine |
| Feature | Command | What It Does |
|---|---|---|
| π§ AST Map | generate_map.py |
Parse Python with ast, not regex |
| π¦ Secret Scanner | review |
Detect API keys, tokens, secrets |
| π¦ XML Packer | pack |
Export context in XML for AI |
| π Fox Trace | trace |
Follow imports, extract only needed code |
Result: 5.1M tokens β 13K tokens (99% reduction!)
| Feature | Command | What It Does |
|---|---|---|
| π₯ Doctor | doctor --auto |
Diagnose + fix ALL issues automatically |
| π Status | status |
Auto-generate PROJECT_STATUS.md |
| Auto-Update | generate_map.py |
Updates context map AND status |
| Feature | Command | What It Does |
|---|---|---|
| π§Ή Deep Clean | doctor --deep-clean |
Move ALL heavy files + auto-patch code |
| π Restore | doctor --restore |
Restore project to original state |
| π Threshold | --threshold 500 |
Custom token threshold |
| ποΈ Preview | --dry-run |
Preview changes without applying |
Result: 5.1M tokens β 47K tokens (99% reduction!) + AI Navigation Map
# Option 1: From source (recommended for development)
git clone https://github.com/Adrena1ine-ai/AI-Native_Project_Scaffolding.git
cd AI-Native_Project_Scaffolding
# Create external venv (following our own philosophy!)
python -m venv ../_venvs/ai-toolkit-main
source ../_venvs/ai-toolkit-main/bin/activate # Linux/Mac
# or
..\_venvs\ai-toolkit-main\Scripts\Activate.ps1 # Windows
# Install dependencies
pip install -r requirements.txt
# Option 2: pipx (isolated, recommended for users)
pipx install git+https://github.com/Adrena1ine-ai/AI-Native_Project_Scaffolding.git
# Option 3: pip with extras
pip install "git+https://github.com/Adrena1ine-ai/AI-Native_Project_Scaffolding.git[dev]"
# Future (after PyPI release - Phase 5)
pip install ai-toolkit # Basic
pip install ai-toolkit[tui] # With TUI dashboard
pip install ai-toolkit[web] # With Web UI
pip install ai-toolkit[all] # Everything# Interactive mode
python main.py
# Or direct command
python main.py create my_awesome_bot --template bot
# Then bootstrap your new project
cd my_awesome_bot
./scripts/bootstrap.sh # Linux/Mac
# or
.\scripts\bootstrap.ps1 # Windows# See what's wrong
python main.py doctor /path/to/messy/project --report
# Fix everything with one command
python main.py doctor /path/to/messy/project --auto| Command | Description | Example |
|---|---|---|
create |
Generate new AI-optimized project | python main.py create mybot --template bot |
cleanup |
Analyze and fix project garbage | python main.py cleanup ./project --level medium |
migrate |
Add Toolkit to existing project | python main.py migrate ./old_project |
health |
Health check (find problems) | python main.py health ./project |
update |
Update toolkit configs | python main.py update ./project |
wizard |
Interactive project wizard | python main.py wizard |
| Command | Description | Example |
|---|---|---|
trace |
π AST dependency tracker | python main.py trace src/main.py --depth 2 |
pack |
π¦ XML context packer | python main.py pack src/handlers/ --output context.xml |
review |
π¦ Security scanner (secrets) | python main.py review ./project |
| Command | Description | Example |
|---|---|---|
doctor |
Diagnose + auto-fix issues | python main.py doctor ./project --auto |
doctor --deep-clean |
π§Ή Move heavy files + patch code | python main.py doctor ./project --deep-clean |
doctor --restore |
π Restore from deep clean | python main.py doctor ./project --restore |
status |
Regenerate PROJECT_STATUS.md | python main.py status . --preview |
hooks |
Git pre-commit hook management | python main.py hooks install |
AI Toolkit generates configuration files for all major AI coding assistants:
| Assistant | Config File | Purpose |
|---|---|---|
| Cursor | .cursorrules |
AI behavior rules |
| Cursor | .cursorignore |
Files to exclude from AI |
| Cursor | .cursor/rules/*.md |
Modular context rules |
| GitHub Copilot | .github/copilot-instructions.md |
Copilot instructions |
| Claude | CLAUDE.md |
Claude-specific instructions |
| Windsurf | .windsurfrules |
Windsurf configuration |
| All | _AI_INCLUDE/ |
Shared rules for any AI |
my_project/
βββ .cursor/
β βββ rules/
β βββ project.md # Cursor rules
βββ .github/
β βββ copilot-instructions.md # Copilot rules
β βββ workflows/
β βββ ci.yml # CI pipeline
β βββ cd.yml # CD pipeline
βββ _AI_INCLUDE/
β βββ PROJECT_CONVENTIONS.md # Coding standards
β βββ WHERE_THINGS_LIVE.md # Location guide
βββ scripts/
β βββ bootstrap.sh # Linux/Mac setup
β βββ bootstrap.ps1 # Windows setup
β βββ context.py # Context switcher
βββ src/
β βββ ... # Your code here
βββ .cursorrules # Main Cursor config
βββ .cursorignore # Smart ignore patterns
βββ .windsurfrules # Windsurf config
βββ CLAUDE.md # Claude instructions
βββ Dockerfile # Container config
βββ docker-compose.yml # Multi-container setup
βββ requirements.txt # Dependencies
# External (not in project):
../_venvs/my_project-main/ # Virtual environment
../_artifacts/my_project/logs/ # Archived logs
../_data/my_project/ # Large data files
| Template | Description | Includes |
|---|---|---|
bot |
Telegram bot (aiogram) | handlers, keyboards, middlewares, FSM |
webapp |
Web application | HTML, CSS, JS, Telegram WebApp SDK |
fastapi |
REST API | FastAPI, routers, schemas, CRUD |
parser |
Web scraper | httpx, BeautifulSoup, async |
full |
All modules | bot + webapp + api + parser + database |
monorepo |
Multi-project | Shared libraries, multiple services |
Fox Trace is our implementation of "Deep Dive" (similar to Windsurf's Cascade):
# You want to refactor payment.py
# Old way: paste entire project β 5M tokens
# Fox Trace way:
python main.py trace src/handlers/payment.py --depth 2What happens:
- Parse
payment.pywith AST - Find all imports:
from utils import calculate_tax - Go to
src/utils.py - Extract ONLY
calculate_taxfunction (not entire file!) - Package into XML with proper context
Result:
<context_dump>
<file path="src/handlers/payment.py">
def pay():
tax = calculate_tax(100)
...
</file>
<dependency path="src/utils.py" source="trace">
def calculate_tax(amount):
return amount * 0.2
</dependency>
</context_dump>Token savings: 5.1M β 13K (99.7% reduction)
The Doctor command diagnoses and fixes ALL project issues automatically:
python main.py doctor /path/to/project --autoWhat it detects:
- π΄ CRITICAL: venv inside project, node_modules
- π‘ WARNING:
__pycache__, logs, large data files - π’ SUGGESTION: missing configs, outdated files
What it fixes:
- Creates backup (
.tar.gz) - Deletes venv/pycache/logs
- Moves large files to
../_data/ - Creates
_AI_INCLUDE/folder - Generates
.cursorignore - Creates bootstrap scripts
- Sets up external venv
- Shows before/after comparison
Example output:
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
DOCTOR COMPLETE β All issues fixed! β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ£
β BEFORE AFTER β
β Tokens: 5.1M β 47K (99% reduction!) β
β Critical: 3 β 0 β
β Warnings: 2 β 0 β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ£
β π¦ Backup: my_project_backup_20241223.tar.gz β
β π Venv: ../_venvs/my_project-main β
β β
β Your project is now AI-ready! π β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
NEW in v3.5! The most powerful feature β automatically move heavy files AND patch your code!
# Preview what will be cleaned (dry run)
python main.py doctor /path/to/project --deep-clean --dry-run
# Full automatic deep clean
python main.py doctor /path/to/project --deep-clean --auto
# Custom threshold (default: 1000 tokens)
python main.py doctor /path/to/project --deep-clean --threshold 500
# Restore to original state
python main.py doctor /path/to/project --restoreBEFORE Deep Clean: AFTER Deep Clean:
βββββββββββββββββββββ βββββββββββββββββββββ
my_bot/ my_bot/
βββ data/ βββ config_paths.py β Bridge
β βββ products.json (50K tok) βββ AST_FOX_TRACE.md β AI Map
β βββ users.csv (100K tok) βββ .cursor/rules/
βββ handlers/ β βββ external_data.md
β βββ shop.py βββ handlers/
βββ main.py β βββ shop.py β Patched!
βββ main.py
Total: 160K tokens
../_data/my_bot/LARGE_TOKENS/
βββ data/products.json
βββ data/users.csv
Total: 10K tokens (94% reduction!)
| File | Purpose |
|---|---|
config_paths.py |
Bridge to external files with get_path() |
AST_FOX_TRACE.md |
Navigation map showing schemas WITHOUT data |
.cursor/rules/external_data.md |
Compact context for Cursor AI |
manifest.json |
Recovery info (in external storage) |
Deep Clean automatically updates your Python code:
# BEFORE
with open("data/products.json") as f:
data = json.load(f)
# AFTER (auto-patched!)
from config_paths import get_path
with open(get_path("data/products.json")) as f:
data = json.load(f)Supported patterns:
open("file.json")βopen(get_path("file.json"))Path("file.csv")βget_path("file.csv")pd.read_csv("file.csv")βpd.read_csv(get_path("file.csv"))sqlite3.connect("db.sqlite")βsqlite3.connect(get_path("db.sqlite"))
Instead of loading 50K tokens of data, AI reads a 500-token map:
## π¦ data/products.json
**Tokens:** ~50K
**External:** `../_data/my_bot/LARGE_TOKENS/data/products.json`
**Schema (structure only, no data):**
- type: array (1500 items)
- fields: {id: integer, name: string, price: number}
**Used in:**
- `handlers/shop.py:23` β `products = json.load(...)`Now when you ask Cursor "How does the buy button work?", it reads the schema and understands WITHOUT loading the actual 50K-token file!
| Version | Name | Features |
|---|---|---|
| v3.0 | Core | CLI, 6 templates, multi-IDE, Docker, CI/CD |
| v3.3 | The Fox Update | AST Map, Fox Trace, XML Packer, Secret Scanner |
| v3.4 | The Doctor Update | Doctor command, Status generator, Auto-update |
| v3.5 | Deep Clean & Bridge | Heavy file mover, Code auto-patcher, AI navigation map |
| Version | Name | Features | Status |
|---|---|---|---|
| v3.6 | CLI Wizard | Questionary prompts, natural language, skill levels | π Partial |
| Version | Name | Features | Timeline |
|---|---|---|---|
| v3.7 | TUI Dashboard | Textual full-screen UI, live tokens, keyboard nav | Week 4-5 |
| v3.8 | Automation | Diff export, pre-commit integration, deps graph | Week 6-7 |
| v3.9 | Quality & PyPI | 80% test coverage, mypy, pip install ai-toolkit |
Week 8-9 |
| v4.0 | Web UI | Browser dashboard, drag & drop, visual wizards | Week 10-13 |
| Version | Name | Features |
|---|---|---|
| v4.1+ | Extensions | Plugin system, custom templates |
| v4.1+ | IDE Plugin | VS Code/Cursor extension |
| v4.1+ | GUI Desktop | Tkinter/PyQt application |
| v4.1+ | Telegram Bot | @AIToolkitBot for quick actions |
| v4.1+ | Auto-context | AI-driven focus detection |
| v4.1+ | Cost Dashboard | Track AI spending per project |
| v4.2 | Localization | Full RU/EN support, i18n framework |
| v4.2 | RU Documentation | README, guides, PROMPTS_LIBRARY in Russian |
v3.0 ββββββββββββββββββββββββββββββββββββββββ 54 features (Core)
v3.3 ββββββββββββββββββββββββββββββββββββββββββββ 62 features (+Fox Update)
v3.4 ββββββββββββββββββββββββββββββββββββββββββββββ 68 features (+Doctor)
v3.5 ββββββββββββββββββββββββββββββββββββββββββββββββ 76 features (+Deep Clean)
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
v3.7 ββββββββββββββββββββββββββββββββββββββββββββββββββ 84 (+TUI)
v4.0 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 98 (+Web)
v4.2 βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 110 (Full)
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
0% 25% 50% 75% 100%
Current: 76/110 features (69%)
| Document | Purpose |
|---|---|
| README.md | This file β overview and quick start |
| CLAUDE.md | Instructions for Claude AI |
| PROMPTS_LIBRARY.md | Ready-to-use prompts for AI |
| TRADEOFFS.md | Architectural decisions explained |
| TECHNICAL_SPECIFICATION.md | Full roadmap and specs |
| CONTRIBUTING.md | How to contribute |
| first manifesto.md | Philosophy and core rules |
| Document | Purpose | Command |
|---|---|---|
| CURRENT_CONTEXT_MAP.md | Code structure map | python generate_map.py |
| PROJECT_STATUS.md | Implementation status | python main.py status |
AI-Native_Project_Scaffolding/
βββ src/
β βββ commands/ # CLI commands (12 total)
β β βββ create.py # Project creation
β β βββ cleanup.py # Project cleanup
β β βββ doctor.py # π₯ Diagnose & fix + Deep Clean
β β βββ trace.py # π AST dependency tracker
β β βββ pack.py # π¦ XML context packer
β β βββ review.py # π¦ Secret scanner
β β βββ ...
β βββ generators/ # File generators (6 total)
β β βββ ai_configs.py # AI assistant configs
β β βββ scripts.py # Bootstrap scripts
β β βββ docker.py # Docker files
β β βββ ...
β βββ utils/ # Utilities (9 total)
β β βββ context_map.py # π§ AST code mapping
β β βββ metrics.py # Token scanning
β β βββ status_generator.py # Auto-status
β β βββ schema_extractor.py # π JSON/CSV/SQLite schema
β β βββ token_scanner.py # π Find heavy files
β β βββ heavy_mover.py # π¦ Move + generate bridges
β β βββ ast_patcher.py # π§ Auto-refactor code
β β βββ fox_trace_map.py # π¦ AI navigation map
β β βββ cleaner.py # π§Ή Archive garbage
β βββ core/ # Core modules
β βββ constants.py # Templates, patterns
β βββ config.py # Configuration
βββ templates/ # Project templates
βββ tests/ # 220 tests
βββ docs/ # Documentation
βββ scripts/ # Utility scripts
# Run all tests
python -m pytest tests/ -v
# Run specific test file
python -m pytest tests/test_doctor.py -v
# Run with coverage
python -m pytest tests/ --cov=src --cov-report=htmlCurrent status: 220 tests passing β
We welcome contributions! See CONTRIBUTING.md for guidelines.
# Setup development environment
git clone https://github.com/Adrena1ine-ai/AI-Native_Project_Scaffolding.git
cd AI-Native_Project_Scaffolding
python -m venv ../_venvs/ai-toolkit-dev
source ../_venvs/ai-toolkit-dev/bin/activate
pip install -e ".[dev]"
# Run tests before submitting
pytest tests/ -v
mypy src/
ruff check src/"The project must remain clean for the AI assistant"
Three fundamental rules:
- Never create venv inside project β 500MB of garbage kills AI performance
- Never read large files entirely β logs, CSVs destroy context window
- Always check before creating β read
_AI_INCLUDE/first
See first manifesto.md for the complete philosophy.
OVERALL PROGRESS
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Phase 0: Core Foundation ββββββββββββββββββββββββββββ 100% β
Phase 1: Foundation (v3.1) ββββββββββββββββββββββββββββ 100% β
Phase 2: CLI Wizard (v3.2) ββββββββββββββββββββββββββββ 100% β
Phase 2.5: Fox Update (v3.3) ββββββββββββββββββββββββββββ 100% β
Phase 2.6: Doctor Update (v3.4) ββββββββββββββββββββββββββββ 100% β
Phase 2.7: Deep Clean (v3.5) ββββββββββββββββββββββββββββ 100% β
Phase 3: TUI Dashboard (v3.7) ββββββββββββββββββββββββββββ 0% β¬
Phase 4: Automation (v3.8) ββββββββββββββββββββββββββββ 0% β¬
Phase 5: Quality & PyPI (v3.9) ββββββββββββββββββββββββββββ 0% β¬
Phase 6: Web UI (v4.0) ββββββββββββββββββββββββββββ 0% β¬
Phase 7: Extensions (v4.1+) ββββββββββββββββββββββββββββ 0% π‘
Phase 8: Localization (v4.2) ββββββββββββββββββββββββββββ 0% π‘
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
TOTAL: 76/110 features (69%) | Next: Phase 3 (TUI Dashboard)
| Metric | Current | Target |
|---|---|---|
| Features Implemented | 76 | 110 |
| Commands | 12 | 15+ |
| Utilities | 9 | 12+ |
| Tests Passing | 220 | 250+ |
| Templates | 6 | 10+ |
| Supported IDEs | 5 | 5 |
| Interfaces | CLI | CLI + TUI + Web |
| Languages | EN | EN + RU |
| Symbol | Meaning |
|---|---|
| β | Complete |
| π | In Progress |
| β¬ | Planned |
| π‘ | Future Idea |
See SECURITY.md for:
- Supported versions
- How to report vulnerabilities
- Security best practices
- π Open an Issue
- π¬ Discussions
- π§ Telegram: @MichaelSalmin
Mickhael β Project Creator & Lead Developer
- Original vision
- Architecture decisions
- Business requirements
Claude (Anthropic) β AI Development Partner
- Technical specification
- Code implementation
- Documentation
"This project was developed with significant assistance from my good colleague Claude (Anthropic)." "P.S. and Grok, Gemini too ^_^"
MIT License β see LICENSE for details.