经 AI Skill Hub 精选评估,自然语言编译器 获评「推荐使用」。这款Prompt模板在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 7.5 分,适合有一定技术背景的用户使用。
一个开源工具,能够将混乱的自然语言提示编译成结构化的中间语言,提高 AI 模型的效率和准确性。
自然语言编译器 是经过精心设计和反复验证的专业 Prompt 模板集合。这些 Prompt 框架能够有效激活 Claude、ChatGPT 等大型语言模型的深层能力,让 AI 生成更准确、更有价值的输出结果。无需任何安装,直接复制模板内容到 AI 对话框即可使用。
一个开源工具,能够将混乱的自然语言提示编译成结构化的中间语言,提高 AI 模型的效率和准确性。
自然语言编译器 是经过精心设计和反复验证的专业 Prompt 模板集合。这些 Prompt 框架能够有效激活 Claude、ChatGPT 等大型语言模型的深层能力,让 AI 生成更准确、更有价值的输出结果。无需任何安装,直接复制模板内容到 AI 对话框即可使用。
# Prompt 无需安装,直接复制使用 # 支持:Claude / ChatGPT / Gemini / 通义千问 等主流模型 # 使用步骤 # 1. 复制 Prompt 模板内容 # 2. 粘贴到 AI 对话框 # 3. 替换 [占位符] 为实际内容 # 4. 发送后获取结构化输出 # 获取原始文件 git clone https://github.com/madara88645/Compiler
# 粘贴到 Claude/ChatGPT 使用 # 示例 Prompt 结构: 你是一位 [角色],擅长 [领域]。 请根据以下要求完成任务: 任务背景:[描述背景] 具体要求:[详细说明] 输出格式:[期望格式] # 将 [] 内内容替换为实际需求
# compiler 配置文件示例(config.yml) app: name: "compiler" debug: false log_level: "INFO" # 运行时指定配置文件 compiler --config config.yml # 或通过环境变量配置 export COMPILER_API_KEY="your-key" export COMPILER_OUTPUT_DIR="./output"
<p align="center"> <img src="docs/images/cover.jpg" alt="Prompt Compiler Cover" width="100%"> </p>
Prompt Compiler turns vague requests into structured prompts, execution plans, and policy-checked workflows — so you can go from idea to safe, usable AI output in seconds.
Try it now at prcompiler.com | VS Code extension | GitHub artifacts
---
The engine analyzes your intent and produces four output layers:
Switch between the output tabs in the UI to inspect each layer, and copy any result with one click.
<p align="center"> <img src="docs/images/comp1.PNG" alt="Prompt Compiler - Main View" width="100%"> </p>
---
```bash git clone https://github.com/madara88645/Compiler.git cd Compiler
cp .env.example .env
Core variables:
```env OPENAI_API_KEY=sk-your-actual-key OPENAI_BASE_URL=https://api.openai.com GROQ_API_KEY=gsk_your_groq_key
PROMPT_COMPILER_MODE=conservative
ADMIN_API_KEY=replace-me PROMPTC_REQUIRE_API_KEY_FOR_ALL=false
Intent, System, User, Plan, Expanded, JSON, Quality.---
PROMPTC_UPLOAD_DIR=.promptc_uploads PROMPTC_RAG_ALLOWED_ROOTS= ```
Notes:
OPENAI_API_KEY / GROQ_API_KEY are server-side provider credentials, not values that visitors should type into the app.PROMPTC_RAG_ALLOWED_ROOTS, only files inside those roots can be ingested by path.---
Prompt Compiler now also exposes a structured IR and policy layer for more sensitive or execution-heavy requests.
low, medium, highadvice_only, human_approval_required, auto_okpublic, internal, confidential, restrictedThis is not a separate product. It is a new capability inside Prompt Compiler that helps you inspect risky requests before you run them downstream in coding, research, or automation flows.
---
Prompt Compiler can render deterministic markdown artifacts from natural language requests:
Example:
python -m cli.main github render --type pr-review-brief --from-file prompt.txt
---
The VS Code package lives in integrations/vscode-extension. Once the Marketplace publisher is claimed and the first vscode-v* tag is pushed, it installs from:
madara88645.promptc-vscodemadara88645/promptc-vscodeUntil then, install from source (see the extension README) or the .vsix artifact on the Publish VS Code Extension workflow run.
Features:
PromptC: Compile Selection, PromptC: Compile File, PromptC: Recompile LastIntent, Policy, Prompts, Raw JSONpromptc.apiBaseUrl, promptc.conservativeMode, promptc.requestTimeoutMs, promptc.autoOpenPanel, promptc.historySizeAPI keys are stored in VS Code secret storage, not workspace settings.
---
该项目提供了一种有效的方法来优化 AI 模型的输入和输出,提高模型的效率和准确性,但需要进一步的测试和验证
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。
AI Skill Hub 点评:自然语言编译器 的核心功能完整,质量良好。对于内容创作者和自媒体人来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | Compiler |
| 原始描述 | 开源Prompt模板:A tool that compiles messy natural language prompts into a structured intermedia。⭐23 · Python |
| Topics | artificial-intelligencellmspromptprompt-engineeringpython |
| GitHub | https://github.com/madara88645/Compiler |
| License | Apache-2.0 |
| 语言 | Python |
收录时间:2026-05-21 · 更新时间:2026-05-22 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端