Vibe Prompt Compiler Portable
Turn rough implementation requests into portable coding briefs that can be pasted into almost any AI coding tool.
Default Behavior
Use this skill automatically when a user gives a vague coding request. Do not require the user to run scripts first.
Instead:
- 1. Classify the request.
- Extract the facts already present.
- Turn missing details into explicit assumptions.
- Compile a clean internal implementation brief.
- Use that brief as the source of truth for the coding response.
Only mention scripts when the user wants portability, reusable CLI commands, or a saved handoff for another tool.
Task Types
Classify into one of these:
- - INLINECODE0
- INLINECODE1
- INLINECODE2
- INLINECODE3
- INLINECODE4
- INLINECODE5
- INLINECODE6
- INLINECODE7
- INLINECODE8
- INLINECODE9
- INLINECODE10
- INLINECODE11
Use the narrowest obvious type. Only ask a follow-up question when one missing detail blocks useful progress.
Portable Defaults
Unless the user says otherwise:
- - prefer MVP over over-engineering
- prefer minimal diffs over broad rewrites
- do not modify unrelated files
- avoid adding dependencies unless justified
- make assumptions explicit
- keep outputs easy to test and verify
- state non-goals when they reduce drift
- prefer evolutionary changes over rewrites for existing systems
- separate current-task execution from future-state ideas
Main Commands
Default: compile mentally and use the structure directly in the answer or coding workflow.
Compile a prompt via CLI when needed:
INLINECODE12
Create a handoff brief:
INLINECODE13
Extract repository-aware rules:
INLINECODE14
Useful flags:
- - INLINECODE15
- INLINECODE16
- INLINECODE17
- INLINECODE18
- INLINECODE19
- INLINECODE20
- INLINECODE21
- INLINECODE22
- INLINECODE23
- INLINECODE24
- INLINECODE25
- INLINECODE26
Target Tool Usage
When the request is broad, architectural, or likely to drift, prefer creating a handoff-style brief over answering from the raw request.
Cursor / VS Code chat
- - run
compile_prompt.py or INLINECODE28 - paste the output into the chat
- let the tool implement only the current slice
Claude Code / Codex CLI / Gemini CLI
- - use the compiled prompt or handoff as the source of truth
- ask the coding tool to plan first for broad tasks
- ask for minimal fixes for bug work
- prefer
--target-tool, --ruleset, and repo-aware flags for stronger execution constraints
Publish Notes
This skill is now suitable for sharing as a portable coding-brief compiler with:
- - structured prompt compilation
- stronger execution handoffs
- Chinese-first output
- tool-specific presets
- development rulesets
- repository-aware rule extraction and merging
- regression coverage across routing, golden outputs, presets, linting, and repo-aware flows
References
- - Read
references/auto-mode.md first for the default automatic behavior. - Read
references/templates.md for prompt skeletons. - Read
references/routing.md when classification is unclear. - Read
references/usage.md for suggested workflows in common IDEs and coding tools. - Read
references/tool-examples.md for concrete examples in Cursor, Claude Code, Codex CLI, and Gemini CLI. - Read
references/real-examples.md for realistic request-to-brief transformations, especially for architecture, integration, workflow, and vague coding requests.
Vibe Prompt Compiler Portable
将粗略的实现需求转化为可移植的编码简报,可粘贴到几乎任何AI编码工具中。
默认行为
当用户提出模糊的编码请求时,自动使用此技能。无需用户先运行脚本。
而是:
- 1. 对请求进行分类。
- 提取已存在的事实。
- 将缺失的细节转化为明确的假设。
- 编译一份清晰的内部实现简报。
- 将该简报作为编码响应的真实来源。
仅当用户需要可移植性、可复用的CLI命令或为其他工具保存交接信息时,才提及脚本。
任务类型
归类为以下之一:
- - new-project(新项目)
- page-ui(页面UI)
- crud-feature(CRUD功能)
- api-backend(API后端)
- bugfix(修复缺陷)
- refactor(重构)
- ai-feature(AI功能)
- architecture-review(架构评审)
- integration(集成)
- automation-workflow(自动化工作流)
- deployment(部署)
- general(通用)
使用最精确的类型。仅当某个缺失的细节阻碍了有效进展时,才提出后续问题。
可移植默认设置
除非用户另有说明:
- - 优先考虑MVP而非过度设计
- 优先考虑最小差异而非大规模重写
- 不修改无关文件
- 避免添加依赖项,除非有正当理由
- 明确说明假设
- 保持输出易于测试和验证
- 在减少偏差时说明非目标
- 对于现有系统,优先考虑渐进式变更而非重写
- 将当前任务执行与未来状态想法分开
主要命令
默认:在脑海中编译,并直接在答案或编码工作流中使用该结构。
需要时通过CLI编译提示:
python3 scripts/compile_prompt.py --request <用户请求>
创建交接简报:
python3 scripts/create_handoff.py --request <用户请求> --output handoff
提取仓库感知规则:
python3 scripts/extractreporules.py --repo-root .
有用的标志:
- - --task auto
- --stack Next.js, Supabase, Tailwind
- --audience 运营人员
- --mode plan-only
- --mode build-first-slice
- --mode bugfix
- --target-tool codex-cli
- --language-preset chinese-first
- --ruleset minimal-diff
- --repo-root .
- --auto-repo-rules
- --output json
目标工具使用
当请求范围广泛、涉及架构或可能偏离时,优先创建交接风格的简报,而非直接根据原始请求回答。
Cursor / VS Code 聊天
- - 运行 compileprompt.py 或 createhandoff.py
- 将输出粘贴到聊天中
- 让工具仅实现当前切片
Claude Code / Codex CLI / Gemini CLI
- - 使用编译后的提示或简报作为真实来源
- 对于广泛的任务,要求编码工具先制定计划
- 对于缺陷修复工作,要求最小修复
- 优先使用 --target-tool、--ruleset 和仓库感知标志以获得更强的执行约束
发布说明
此技能现已适合作为可移植编码简报编译器进行分享,具备:
- - 结构化提示编译
- 更强的执行交接
- 中文优先输出
- 工具特定预设
- 开发规则集
- 仓库感知规则提取与合并
- 跨路由、黄金输出、预设、代码检查和仓库感知流程的回归覆盖
参考资料
- - 首先阅读 references/auto-mode.md 了解默认自动行为。
- 阅读 references/templates.md 了解提示框架。
- 当分类不明确时,阅读 references/routing.md。
- 阅读 references/usage.md 了解常见IDE和编码工具中的建议工作流。
- 阅读 references/tool-examples.md 了解Cursor、Claude Code、Codex CLI和Gemini CLI中的具体示例。
- 阅读 references/real-examples.md 了解从请求到简报的真实转换示例,特别是针对架构、集成、工作流和模糊编码请求。