Guides structured prompt composition for Codex/GPT-5.4 in coding, review, diagnosis, and research tasks within Claude Code plugin.
From codexnpx claudepluginhub openai/codex-plugin-cc --plugin codexThis skill uses the workspace's default tool permissions.
references/codex-prompt-antipatterns.mdreferences/codex-prompt-recipes.mdreferences/prompt-blocks.mdGuides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Use this skill when codex:codex-rescue needs to ask Codex or another GPT-5.4-based workflow for help.
Prompt Codex like an operator, not a collaborator. Keep prompts compact and block-structured with XML tags. State the task, the output contract, the follow-through defaults, and the small set of extra constraints that matter.
Core rules:
Default prompt recipe:
<task>: the concrete job and the relevant repository or failure context.<structured_output_contract> or <compact_output_contract>: exact shape, ordering, and brevity requirements.<default_follow_through_policy>: what Codex should do by default instead of asking routine questions.<verification_loop> or <completeness_contract>: required for debugging, implementation, or risky fixes.<grounding_rules> or <citation_rules>: required for review, research, or anything that could drift into unsupported claims.When to add blocks:
completeness_contract, verification_loop, and missing_context_gating.grounding_rules, structured_output_contract, and dig_deeper_nudge.research_mode and citation_rules.action_safety so Codex stays narrow and avoids unrelated refactors.How to choose prompt shape:
review or adversarial-review commands when the job is reviewing local git changes. Those prompts already carry the review contract.task when the task is diagnosis, planning, research, or implementation and you need to control the prompt more directly.task --resume-last for follow-up instructions on the same Codex thread. Send only the delta instruction instead of restating the whole prompt unless the direction changed materially.Working rules:
Prompt assembly checklist:
<task>.Reusable blocks live in references/prompt-blocks.md. Concrete end-to-end templates live in references/codex-prompt-recipes.md. Common failure modes to avoid live in references/codex-prompt-antipatterns.md.