A multilingual, fork-first field guide for running Codex CLI with clear instructions, safer defaults, reusable skills, reviewed hooks, and repeatable release checks.
🌐 Languages:
|
|
|
|
|
full guide |
|
|
A public operator handbook for using Codex CLI with durable instructions, safer automation, reusable skills, hooks, MCPs, and repeatable release checks. Start here: Quick start gives the fastest path into the handbook. |
Codex CLI'yi rastgele komutlarla değil, daha kontrollü ve tekrar edilebilir bir çalışma düzeniyle kullanmak isteyenler için topladığım saha notları. Prompt, skill, hook, MCP ve release tarafında işime yarayan pratikleri tek yerde tutuyor. Buradan başla: Türkçe rehber README.tr.md; hızlı genel bakış için bu sayfadaki özet yeterli. |
This public fork is maintained as an independent Codex best-practices repository. It keeps upstream MIT license attribution, but the handbook, multilingual onboarding, validation, security notes, release flow, and fork-facing identity are owned here.
| Need | Open |
|---|---|
| First 5 minutes | Quick start |
| Turkish onboarding | README.tr.md |
| Which Codex surface to use | Codex surface map |
| Current source decisions | docs/RESEARCH_NOTES.md |
| Release and publish gate | docs/RELEASE_CHECKLIST.md |
| Public readiness checklist | docs/PUBLIC_READINESS.md |
| Local validation | npm run validate |
This repo is the companion handbook for the broader Codex setup ecosystem:
| Repo | Role |
|---|---|
codex-enterprise-starter |
Installable starter kit for setting up a reusable Codex working environment |
codex-cli-best-practice |
Public handbook for operating, extending, validating, and releasing Codex workflows safely |
Use the starter when you want a ready setup. Use this handbook when you want to understand the surfaces, safety model, validation path, and maintenance rules behind that setup.
This repo is a practical operating handbook for Codex CLI users who want repeatable engineering workflows instead of one-off prompts. It explains where to put durable instructions, how to keep automation reviewable, how to package reusable skills, and how to verify a public release without leaking local state.
It is intentionally a documentation and configuration reference, not an application codebase.
npm run validate
codexTry the included agent-to-skill demo:
Fetch the current weather for Istanbul in Celsius and create the SVG weather card output using the repo.
Expected outputs:
orchestration-workflow/weather.svgorchestration-workflow/output.md(ignored because it is generated)
| Surface | Use it for | Repo example |
|---|---|---|
| Prompt | One-off task constraints | Current user request |
AGENTS.md |
Durable project rules and verification commands | AGENTS.md |
.codex/config.toml |
Project defaults, sandboxing, approvals, MCP, hooks, agents | .codex/config.toml |
| Skill | Reusable workflow with progressive disclosure | .agents/skills/weather-svg-creator/SKILL.md |
| Subagent | Explicit specialist role for bounded work | .codex/agents/weather-agent.toml |
| MCP | Live docs, private tools, external context | best-practice/codex-mcp.md |
| Hook | Reviewed lifecycle automation, never the only security boundary | best-practice/codex-hooks.md |
| Release checklist | Manual publish gates | docs/RELEASE_CHECKLIST.md |
| Area | Path | Purpose |
|---|---|---|
| Welcome | README.md |
English-first public entry point with multilingual bridge |
| Turkish guide | README.tr.md |
Full Turkish onboarding and maintenance guide |
| Agent rules | AGENTS.md, CLAUDE.md |
Codex and Claude-compatible operating guidance |
| Codex config | .codex/ |
Project defaults, agents, hooks, hook scripts, examples |
| Skills | .agents/skills/ |
Reusable Codex workflows |
| Best practices | best-practice/ |
Focused Codex surface guides |
| Examples | examples/ |
Profile and CI examples |
| Docs | docs/ |
FAQ, roadmap, research notes, release notes, readiness checks |
| Validation | scripts/validate-docs.mjs |
Dependency-free repository guard |
| GitHub | .github/ |
Docs guard workflow, issue template, release form, PR template |
- Keep secrets in environment variables or trusted local config, never in repo docs.
- Treat sandboxing and approvals as separate controls.
- Keep broad filesystem or network access out of shared examples.
- Use hooks as guardrails, not as the primary enforcement boundary.
- Keep local overrides in ignored files such as
AGENTS.override.md,.codex/config.local.toml, and.codex/hooks/config/*.local.json. - Run
gitleaks detect --redact --no-banner --verbosebefore tags and releases.
npm run validate
git diff --check
gitleaks detect --redact --no-banner --verboseThe validator checks required files, README identity markers, local markdown links, common mojibake sequences, JSON syntax, committed local-only paths, stale Codex keys, and generated hook-log leaks.
Use docs/RELEASE_CHECKLIST.md before publishing. The short version:
npm run validate
git diff --check
gitleaks detect --redact --no-banner --verbose
git status --shortThen commit intentionally, push the branch, tag the release, create the GitHub Release from the matching release notes, and verify the public page, links, Actions run, and release asset state.
Bu fork, Codex CLI kullananlar için iki dilli bir operator rehberi. Amacı sadece ayar dosyası örneği vermek değil; prompt, AGENTS.md, config, skill, subagent, MCP, hook ve release checklist arasında doğru kararı vermeyi öğretmek.
npm run validate
codexDemo için Codex'e şunu yaz:
Istanbul icin guncel hava durumunu Celsius olarak getir ve repo icindeki SVG hava kartini olustur.
| İş | Dosya |
|---|---|
| Repo mantığını öğren | README.md |
| Türkçe rehber | README.tr.md |
| Kalıcı talimatlar | AGENTS.md |
| Codex ayarları | .codex/config.toml |
| Skill yazımı | docs/SKILLS.md, best-practice/codex-skills.md |
| Hook kullanımı | best-practice/codex-hooks.md, .codex/hooks/HOOKS-README.md |
| Windows notları | docs/WINDOWS.md |
| Release hazırlığı | docs/RELEASE_CHECKLIST.md |
| Public hazır mı? | docs/PUBLIC_READINESS.md |
Token, cookie, private key, lokal auth dosyası, kişisel hook config'i veya log dosyası commitlenmez. Release öncesi validation, diff check ve Gitleaks birlikte çalıştırılır.
This is an independent fork edition. The original MIT license lineage is preserved in LICENSE. Fork-specific handbook content, Turkish onboarding, release discipline, validation workflow, and public-readiness docs are maintained in this repository.