@darkrei08/wizard-ai-cli
v0.52.55
Published
Installer for the Wizard-AI environment: AI CLI tools and Claude Code skills (graphify, llmlingua, flashrank, markitdown and more). Clones the repo and runs the platform setup script.
Maintainers
Readme
🔥 技术难题:单特性 50 美元的「幻觉税」与系统环境损坏
当您允许一个自律型 AI 智能体(例如 Claude Code、OpenHands、Aider 或 Cursor)在真实项目仓库中运行时,您会立刻遭遇两大系统级瓶颈:
- 上下文窗口暴增与 API 账单飙升: 智能体在每轮对话中都会将 80,000+ Token 的完整文件树、测试日志和
npm install输出全部塞满上下文。这会迅速耗尽 API 限制,导致严重的上下文失效(幻觉),且平均每开发一个特性要花费 ~$18.50。 - 静默式环境损坏(“凌晨两点的崩溃”): 智能体在循环中自动执行安装依赖时,一旦遇到受损包或语法错误,可能彻底损坏您的系统级运行时环境。
💡 Wizard-AI 的终极解决方案
Wizard-AI 充当 AI 智能体与您的操作系统之间的自愈式抽象层 (wizard-ai os) 与确定性 5-Loop 工程调度引擎:
flowchart TB
%% Nodes
User([👤 用户请求]) --> Router{🧙♂️ 自动路由}
%% Engine Loops
subgraph Engine [⚙️ ENGINE-LOOPS: 顺序执行]
Router --> L1[01. loop-1-plan]
L1 --> L2[02. loop-2-develop]
L2 --> L3[03. loop-3-debug]
L3 --> L4[04. loop-4-refactor]
L4 --> L5[05. loop-5-release]
end
%% Reference Library
subgraph Lib [📚 REFERENCE LIBRARY: 按需上下文]
Ref[skills/reference/]
Ref --> RefCore[core]
Ref --> RefFE[frontend]
Ref --> RefBE[backend]
Ref --> RefDO[devops]
Ref --> RefMisc[misc / stitch / data-science]
end
%% Connections
L1 -.->|提供规范| Ref
L2 -.->|TDD与开发| Environment[💻 用户环境]
L3 -.->|自动调试| Environment
L5 -.->|自动发布| GitHub[🐙 GitHub 仓库 / NPM]
%% Styling
classDef engineColor fill:#6366f1,stroke:#4f46e5,stroke-width:2px,color:#fff;
classDef libColor fill:#10b981,stroke:#059669,stroke-width:2px,color:#fff;
classDef mainColor fill:#8b5cf6,stroke:#7c3aed,stroke-width:2px,color:#fff;
class L1,L2,L3,L4,L5 engineColor;
class Ref,RefCore,RefFE,RefBE,RefDO,RefMisc libColor;
class Router mainColor;🧠 Agentic Context Engineering & The 4-Layer Format Stack
在 2026 年的 AI 生态系统中,上下文工程是新的黄金标准。Wizard-AI 引入了 4-Layer Format Stack,旨在消除幻觉并最大化 Token 优化:
- Layer 4: JavaScript (执行) — 逻辑通过
pi-extensible-workflows在安全的沙盒中运行。 - Layer 3: YAML (编排) — 仅用于路由、配置和 Agent 角色。
- Layer 2: Markdown + LEA (内容) — 使用 Lossless Evidence Aliases (LEA) (如
[S1]: MEMORY.md引用为[E1])。在重复元数据上节省高达 80%。 - Layer 1: TOON 格式 (API 边界) — 用 Token Oriented Object Notation (TOON) 替换 JSON (与原始 JSON 相比减少 40-75% 的 token)。
PRE & POST Autoloop 规则: 每次会话在每次迭代前后都会自动压缩上下文、同步记忆 (MEMORY.md) 并更新项目图。
🔧 Pi Dynamic Configurator (wizard-ai pi-configurator)
将 vekexasia/pi-config 模式自动集成到您的本地 ~/.pi/agent/ 环境中,并根据 Cockpit Tools 订阅级别提供智能模型选择和默认设置:
wizard-ai pi-configurator📚 RepoDocs Wiki Generator (wizard-ai repodocs)
使用 aryrabelo/repodocs 自动为任何仓库生成带有引用源的 Wiki。集成在 Loop 5 (Release) 中,用于开发周期结束时的文档生成:
wizard-ai repodocs repodocs-all .🚀 快速安装 (一键初始化)
npx -y @darkrei08/wizard-ai-cli@latest --verbose查看完整的安装步骤与说明,请参阅 主 README(英文)。
🚀 Real-World Agentic Use Cases
Wizard-AI isn't a chatbot; it's a workforce. Here is what your terminal can autonomously achieve by combining the built-in skills:
1. 🛡️ Autonomous Pentesting & Security Hardening
Skills Used: strix, cybersecurity, crowdsec-skill, ECC
Instead of running a basic linter, Wizard-AI deploys an autonomous hacker agent (strix) that attempts to exploit your codebase, generates proofs-of-concept, and rewrites the vulnerable code using strict NIST/OWASP protocols.
2. 🎨 "Anti-Slop" UI/UX Frontend Engineering
Skills Used: taste-skill, hallmark, mengto-skills, kinetics-ui
Vanilla AIs generate generic, "bootstrap-looking" web pages. Wizard-AI reads your brief, enforces strict typographic rules, applies asymmetric layouts, and implements physics-based micro-interactions (kinetics-ui), outputting premium, agency-tier frontend code.
3. 🕸️ Deep Semantic Architecture Refactoring
Skills Used: serena, codebase-memory-mcp, 0-loop-engine
Don't ask the AI to "read this file". Wizard-AI queries the Abstract Syntax Tree (AST) via Serena, creates an interactive knowledge graph (personal-graph), and refactors circular dependencies across 50+ files simultaneously without losing context.
4. 📈 SEO Research & Autonomous Blogging Pipeline
Skills Used: claude-seo, claude-blog, lightpanda
Need growth? The orchestration dispatches background agents to scrape live web data via stealth browsers (camofox, lightpanda), runs an E-E-A-T SEO audit, and generates high-ranking semantic clusters and articles autonomously.
