AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Codex Prompt Engineering

skill-williamhallatt-cogworks-codex-prompt-engineering · by williamhallatt

Optimize Codex/GPT prompts for gpt-5.1, gpt-5.2, and gpt-5.2-codex with calibrated reasoning effort, autonomous execution patterns, correct tool contracts (apply_patch, exec_command, update_plan), compact outputs, evaluation flywheel loops, and production security controls.

No reviews yet
0 installs
22 views
0.0% view→install

Install

$ agentstack add skill-williamhallatt-cogworks-codex-prompt-engineering

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-williamhallatt-cogworks-codex-prompt-engineering)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
6mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Codex Prompt Engineering? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Codex Prompt Engineering

> Knowledge snapshot: 2026-02-20

Purpose

Use this skill to design or review prompts for Codex/GPT coding agents with focus on:

  • quality and reliability
  • token efficiency
  • correct tool usage
  • safe autonomy

Use When

  • Writing or revising system prompts for coding agents
  • Debugging weak agent behavior (stalling, verbosity, bad tool calls)
  • Calibrating reasoning_effort (none|low|medium|high|xhigh)
  • Defining tool orchestration and planning behaviors
  • Building evaluation loops for prompt iteration

Core Rules

  1. Calibrate reasoning effort
  • none or omit for trivial formatting/retrieval
  • medium default for interactive coding
  • high/xhigh for complex autonomous tasks
  1. Run end-to-end autonomously
  • gather context -> plan -> implement -> test -> refine
  • ask only for ambiguity, destructive actions, or major architecture trade-offs
  1. Use correct tool contracts
  • file edits: apply_patch
  • shell execution: exec_command
  • task tracking: update_plan with plan: [{step, status}]
  • batch independent calls with multi_tool_use.parallel
  1. Keep communication compact
  • tiny change: 2-5 sentences
  • medium change: Measure -> Improve -> Repeat
  • keep graders and representative datasets
  1. Apply security basics
  • validate/sanitize untrusted inputs
  • defend against direct/indirect prompt injection
  • enforce least privilege for tools/data

Runtime Mapping Note

Some environments expose shell tools under different names. In this repository runtime:

  • use exec_command (not shell_command)
  • use update_plan schema: plan with step/status

File Guide

  • reference.md: compact canonical guidance and checklists
  • patterns.md: reusable patterns beyond prompt engineering
  • examples.md: concise before/after examples with correct contracts

Invocation

Use codex-prompt-engineering to review this prompt for quality and token efficiency.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.