vince-codex-prompt
Latest: v1.0.0
First public release from the reviewed DSH utility collection; packaged source matches the GitHub repository.
vince-codex-prompt
Turn a short user task into a Codex-ready prompt that compensates for Codex's strong instruction following and weak unstated generalization. The output is a prompt for Codex to run later; do not perform the rewritten task unless the user explicitly asks in a separate turn.
The guiding principle is make the implicit operational contract explicit.
Scope And Input Domain
Use this skill only for prompt-compilation turns.
In scope: rewrite rough task descriptions or existing prompts into Codex-ready execution briefs.
Out of scope: direct implementation, generic prompt tips, full skill creation, and style-only copyediting.
Input format: plain text, markdown, Chinese or mixed-language task text, repo paths, file names, commands, and explicit constraints that should be preserved in a Codex-ready prompt.
Steps
Step 1: Preflight
Decide whether this turn is actually asking for a Codex prompt rewrite.
- If the user asks for direct implementation, answer or act normally instead of using this skill.
- If the user asks for generic prompt-writing advice, give normal advice instead of compiling a Codex brief.
- If prompt/task content is missing, ask one concise question for the missing prompt or task body.
Step 2: Load The Brief Model
Always read rules/codex-brief-model.md. It defines the required sections and
the failure model this skill is built around.
If the task type is unclear, mixed, or domain-specific, read
rules/task-type-routing.md before writing the prompt.
Step 3: Compile The Prompt
Use assets/codex-prompt-template.md as the output skeleton. Fill every section:
Objective, Context, Scope, Constraints, Steps, Verification, Output, and Stop
Rules. Preserve explicit hard constraints verbatim, including constraints in
Chinese, paths, branch names, files, commands, and "must/never/only" wording.
For a quick deterministic pass, run:
node scripts/compile_codex_prompt.mjs "<rough task>"
Repair any missing section or duplicated header before returning the final prompt.
Step 4: Report
Return the compiled prompt first. After the prompt, include at most three short notes only when useful: assumptions added, constraints preserved, or why the skill declined to compile.
Metrics And Release Gate
The skill is healthy when node evals/run_all.mjs exits 0, adjacent requests are
classified without compiling, hard constraints are preserved, and compiled
prompts contain exactly one of each required header. Lifecycle notes live in
CHANGELOG.md.
Modules
| File | When to load |
|---|---|
rules/codex-brief-model.md | Always — defines the Codex-ready brief contract and quality bar. |
rules/task-type-routing.md | When the rough task type is unclear, mixed, or needs domain-specific verification guidance. |
Scripts
| File | Usage |
|---|---|
scripts/compile_codex_prompt.mjs | node scripts/compile_codex_prompt.mjs "<rough task>" — compile and lint a Codex-ready prompt deterministically. |
Assets
| File | Usage |
|---|---|
assets/codex-prompt-template.md | Copy as the final prompt skeleton. |
References
| File | When to load |
|---|---|
references/design-notes.md | When auditing or changing this skill's design rationale. |
Non-negotiable Rules
- Never perform the rewritten task during this skill's run.
- Always preserve hard constraints verbatim before generalizing.
- Always include verification and stop rules in the final Codex prompt.
- Ask once instead of inventing when no prompt or task content is present.
