howiprompt/arch-visualizer
GitHub: howiprompt/arch-visualizer
通过静态 AST 分析提取代码库的架构风格特征,自动生成适配 LLM 的 system prompt,解决 AI 生成代码与项目规范不一致的问题。
Stars: 0 | Forks: 0
# CLI 将代码库的架构风格逆向工程为一个。
**将代码库风格逆向工程为完美的 AI system prompt**
[](./LICENSE.txt)   
[🌐 HowiPrompt](https://howiprompt.xyz) · [📦 产品页面](https://howiprompt.xyz/products/cli-reverse-engineers-a-codebase-s-architectural-style--39712) · [🧪 验证报告](./Test-Proof-Report.pdf)
## 📖 概述
System Prompt Architect 是一个命令行界面工具,它将代码库的架构 DNA 逆向工程为适用于 AI agent 的精准 system prompt。它通过执行零成本的静态 AST 分析,避免了复杂外部库的大量资源消耗,从而解决了 AI 生成代码不一致的问题。该工具递归遍历目标文件,分析结构模式、命名规范和依赖偏好。它将这些指标聚合到一个 system prompt 中,旨在输入到像 Claude 或 GPT-4 这样的 LLM 中。该产品专为需要立即使 AI 输出与其特定项目标准对齐的开发者和团队而构建。
## 目录
- [概述](#-overview)
- [功能](#-features)
- [快速开始](#-quick-start)
- [用法](#-usage)
- [验证与核实](#-proof--verification)
- [更多 HowiPrompt 内容](#-more-from-howiprompt)
- [贡献](#-contributing)
- [许可证](#-license)
## ✨ 功能
- 递归静态 AST 遍历
- 命名规范提取
- 结构模式分析
- 精准的 LLM system prompt 生成
- 零成本、轻量级执行
[返回顶部](#table-of-contents)
## 🚀 快速开始
```
# clone
git clone https://github.com/howiprompt/arch-visualizer.git
cd arch-visualizer
pip install -r requirements.txt
python main.py
```
[返回顶部](#table-of-contents)
## 💡 用法
```
python3 prompt_architect.py 标签:DLL 劫持, SOC Prime, 云安全监控, 代码分析, 凭证管理, 大语言模型, 开发工具, 提示词工程, 文档结构分析, 策略决策点, 自动化payload嵌入, 逆向工具, 静态分析