Codex Project Guidance
Create the destination-project guidance needed for these Codex best-practices sections:
- Strong first use: Context and prompts
- Make guidance reusable with
AGENTS.md - Configure Codex for consistency
- Improve reliability with testing and review
- Common mistakes that can be prevented by project-local instructions
Workflow
- Inspect the destination project before writing. Read
AGENTS.md,.codex/config.toml,README.md, package manifests, build files, CI files, test config, and existing docs underdocs/or.agents/. - Run the scaffold helper if the project is missing the Codex docs envelope. Resolve this path relative to this skill directory:
python3 ../codex-best-practices/scripts/scaffold_codex_docs.py /path/to/project
- Keep
AGENTS.mdconcise. It should route future agents to focused docs and name the commands, constraints, and done criteria that matter most. - Customize
docs/codex/prompting.mdso Goal, Context, Constraints, and Done when examples match the project. - Customize
docs/codex/configuration.mdwith project-specific model, reasoning, sandbox, approval, profile, MCP, and environment decisions. Do not write secrets. - Customize
docs/codex/validation-and-review.mdfrom real project commands. Prefer non-mutating checks. Include skipped-check reporting. - Add or update
code_review.mdonly when the repo wants root-level review guidance. - Update
docs/codex/best-practices-audit.mdwith evidence and gaps.
Validation
Run repository-native checks when docs or config validators exist. At minimum, inspect links, required headings, and the audit checklist. Report any command that could not be verified.
Source: wgj/agent-plugins — distributed by TomeVault.