From code-simplifier
Write or refine prompts specifically for GPT-5.5, including Codex CLI runs and Responses API agentic workflows. Use when Claude or another harness needs a high-performance OpenAI-style GPT-5.5 prompt with reasoning.effort, text.verbosity, XML block contracts, persistence, decision rules, completeness contracts, verification loops, tool-use parallelism, and outcome-first acceptance criteria.
How this skill is triggered — by the user, by Claude, or both
Slash command
/code-simplifier:gpt-5-5-prompt-writerThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Write one prompt that a GPT-5.5 session can execute with minimal ambiguity. Optimize for outcome, action, persistence, and verification, not for prose elegance.
Write one prompt that a GPT-5.5 session can execute with minimal ambiguity. Optimize for outcome, action, persistence, and verification, not for prose elegance.
Read references/openai-gpt-5-5-prompting.md when the task is long-horizon, tool-heavy, or expensive enough that prompt quality materially matters.
reasoning.effort and text.verbosity deliberately.Before drafting, extract:
If the user supplied a spec or earlier review findings, turn those into explicit required work items in <task>. Do not leave them implicit.
GPT-5.5 prompts compose from named XML blocks. Use only the blocks the task needs.
Core wrapper:
<task> — the concrete job, the relevant repo or failure context, and the expected end state.Output and format:
<structured_output_contract> — exact response shape and ordering.<compact_output_contract> — concise prose contract when no schema applies.Follow-through and completion:
<default_follow_through_policy> — when to act vs ask.<completeness_contract> — finish the job, do not stop at first plausible answer.<verification_loop> — verify result before finalizing, fix and rerun if a check fails.Grounding:
<missing_context_gating> — do not guess; retrieve or state what is unknown.<grounding_rules> — anchor every claim to context or tool output, label inferences.<citation_rules> — back claims with primary sources where research applies.Safety and tool use:
<action_safety> — keep changes tightly scoped, flag risky actions.<tool_persistence_rules> — keep using tools until enough evidence to finish.Task-specific:
<research_mode> — separate facts, inferences, open questions.<dig_deeper_nudge> — check for second-order failures before finalizing.<progress_updates> — brief, outcome-based progress for long runs.Use short imperative bullets inside each block. Keep the prompt concrete.
Apply these GPT-5.5-specific patterns:
reasoning.effort: "medium" as the interactive coding default. Use "low" for latency-sensitive work where some thinking still helps. Reserve "high" or "xhigh" for complex agentic tasks where evals show measurable gains. Use "none" only for fast, no-reasoning paths (classification, voice). Higher effort is not automatically better; tighten the prompt before raising effort.text.verbosity: "low" for code agents and concise responses; the API default "medium" is often too long. Specify word budgets, section counts, or JSON-only when strictness matters.apply_patch, rg, read_file, list_dir, update_plan) for Codex runs. Parallelize independent tool reads.update_plan. Skip planning for trivial tasks. Before finishing, reconcile every plan item — Done, Blocked, or Cancelled. Never leave items in-progress.prompt_cache_key consistently for repeated traffic. Track usage.prompt_tokens_details.cached_tokens.For long-running coding prompts, include a loop in the prompt:
Name the exact commands and required services. Good prompts do not say "test thoroughly"; they say exactly what must run.
For tasks with local infrastructure, spell out startup expectations using whatever the project actually uses, named by the user, not assumed:
If the prompt requires running multiple services or end-to-end checks, say that success is not complete until those paths have been exercised and any failures addressed or reported with evidence.
<task>
You are an autonomous senior engineer working in {{repo_path}} on branch {{branch}}.
Implement the required work items end-to-end and validate them.
Required work items:
- {{item_1}}
- {{item_2}}
Relevant files and docs:
- {{file_or_doc_1}}
- {{file_or_doc_2}}
Tech stack: {{stack_named_by_user}}.
</task>
<default_follow_through_policy>
Default to the most reasonable low-risk interpretation and keep going.
Only stop to ask when a missing detail changes correctness, safety, or an irreversible action.
</default_follow_through_policy>
<completeness_contract>
Persist until the task is fully handled end-to-end within the current turn whenever feasible.
Do not stop at analysis or partial fixes.
Treat the task as incomplete until every required item is covered or explicitly marked [blocked] with evidence.
Before finishing, reconcile every plan item: Done, Blocked, or Cancelled. Never leave items in-progress.
</completeness_contract>
<tool_persistence_rules>
Prefer dedicated tools over raw shell (apply_patch, rg, read_file, list_dir, update_plan).
Parallelize independent reads; sequence dependent ones.
After parallel retrieval, synthesize before the next batch.
Keep using tools until you have enough evidence to finish confidently.
</tool_persistence_rules>
<verification_loop>
Required validations:
- {{command_1}}
- {{command_2}}
- {{service_or_environment_named_by_user}}
Before finalizing, run the required validations.
If a check fails, fix the cause and rerun until green or a real external blocker remains.
</verification_loop>
<missing_context_gating>
Do not guess missing repository facts.
Retrieve with tools, or state exactly what remains unknown.
</missing_context_gating>
<action_safety>
Keep changes tightly scoped to the stated task.
Avoid unrelated refactors, renames, or cleanup unless required for correctness.
Do not run destructive git commands (reset --hard, checkout --) without explicit approval.
No broad try/catch; propagate errors explicitly. No `as any` or type assertions in place of real types.
</action_safety>
<structured_output_contract>
Final report:
1. what changed (per file, one line each)
2. what validations ran and their outcomes
3. residual risks or follow-ups
Keep it compact. Highest-value findings first.
</structured_output_contract>
Suggested API or CLI configuration:
model: "gpt-5.5"reasoning.effort: "medium" (use "high" only if evals show measurable gains)text.verbosity: "low"codex exec for non-interactive automated runs (or just codex for an interactive TUI session) and let the harness manage tools and planning.Avoid these prompt mistakes:
reasoning.effort to compensate for a weak prompt — overthinking is real on GPT-5.5.Before returning a prompt, verify that it:
<task><verification_loop><completeness_contract> for execution work<missing_context_gating> whenever guessing would be costlyreasoning.effort and text.verbositynpx claudepluginhub scavanna/fork014_agent-skills --plugin opus-4-7-prompt-writerGuides completion of development work by verifying tests, detecting environment, and presenting structured options for merge, PR, or cleanup.
Guides creation and editing of skills using test-driven development with pressure scenarios and subagents to verify agent compliance.
Dispatches multiple subagents concurrently for independent tasks without shared state. Use when facing 2+ unrelated failures or subsystems that can be investigated in parallel.