Codex Team Rollout skill for Codex

Same rules and guardrails for every engineer. Codex designs a rollout in three layers: checked-in repository config for commands, skills and rules; personal user settings; and admin-enforced requirements for approvals, sandbox, web search and MCP servers. It then drafts onboarding, runs a measured pilot with criteria set in advance, and scales repo by repo instead of copying config by hand.

  • Codex Mastery
  • $codex-team-rollout
  • 146 lines
  • 2 files
  • ~1,650 tokens
  • MIT
  • Updated

Install

curl -fsSL codexskills.dev/install.sh \  | sh -s -- codex-team-rollout

Installs to ~/.agents/skills/codex-team-rollout/ for every project on this machine.

104-line POSIX script. No sudo, no telemetry. Read install.sh

Use it in Codex

Start a prompt with $codex-team-rollout, or pick it from /skills. You can also just describe the task: Codex reads the description below and loads the playbook when your request matches.

What Codex reads before loading it

Plans and executes a Codex rollout to an engineering team, deciding what lives in checked-in repo config (AGENTS.md, .agents/skills, .codex/config.toml, rules, hooks, custom agents), what stays per-user, and what admins enforce with requirements.toml or Agent Security, then pilots, measures and scales it. Use when the user asks how to roll Codex out to a team or org, standardize Codex settings across repos, share skills, set guardrails developers cannot override, or write onboarding for Codex.

Use it when

  • Introducing Codex to a team or organization
  • Standardizing Codex config and skills across many repositories
  • Setting guardrails developers cannot override
  • Measuring whether a Codex pilot worked

Use something else when

How to check the result

A fresh machine following the onboarding doc shows the expected skills, MCP tools and requirement layers in /debug-config, and forbidden flags such as -a never are refused or fall back.

The mistake it prevents

Putting must-hold guardrails only in repo .codex/config.toml, where CLI flags and user config override them and untrusted checkouts skip them.

~/.agents/skills/codex-team-rollout/SKILL.md

--- name: codex-team-rollout description: Plans and executes a Codex rollout to an engineering team, deciding what lives in checked-in repo config (AGENTS.md, .agents/skills,… license: MIT ---

A rollout is done well when a new engineer gets the same project rules, skills and safety boundaries on day one without hand-copying config, guardrails that must hold are enforced rather than suggested, and the team can show whether Codex is helping.

Three layers, three owners

LayerLives inOwnerUse it for
RepositoryAGENTS.md, .agents/skills/, .codex/config.toml, .codex/rules/, .codex/hooks.json, .codex/agents/*.toml, .worktreeincludeRepo maintainers, via PR reviewCommands, conventions, shared workflows, project defaults
User~/.codex/config.toml, ~/.codex/<profile>.config.toml, ~/.codex/AGENTS.md, ~/.agents/skills/Each engineerPersonal model, editor, notification preferences
Enforced policyrequirements.toml via Agent Security (cloud), MDM, or /etc/codex/requirements.tomlSecurity / platform adminsAllowed approval policies, sandbox modes, permission profiles, web search modes, MCP allowlist, managed hooks and rules

Rules of placement:

  • Anything every contributor needs to work correctly goes in the repo.
  • Anything that must not be overridden goes in requirements, never only in repo config (users and CLI flags override project config; requirements constrain them).
  • Repo config cannot grant workspace, model or connected-system access, and project .codex/ layers load only when the developer trusts the project.
  • Project config ignores provider, base-URL, notify, otel and profile keys; set those per user or by managed config.

Workflow

- [ ] 1. Pick a pilot group and 2-3 representative repos
- [ ] 2. Write the repo layer for the pilot repos
- [ ] 3. Define guardrails and deliver them as requirements
- [ ] 4. Publish onboarding (install, sign-in, trust, first task)
- [ ] 5. Run the pilot for 2-4 weeks with explicit success criteria
- [ ] 6. Fix what the pilot exposed, then scale repo by repo
- [ ] 7. Review quarterly: skills, policy, model ids, usage

2. Repo layer

Minimum per repo:

AGENTS.md                      # commands, conventions, boundaries (keep it short)
.agents/skills/<workflow>/     # 2-5 team workflows: release, migration, review checklist
.codex/config.toml             # project defaults only
.codex/rules/default.rules     # forbid/prompt rules for dangerous commands
.worktreeinclude               # ignored files managed worktrees need (no secrets you can avoid)
# .codex/config.toml — project defaults (trusted projects only)
model_reasoning_effort = "medium"
[sandbox_workspace_write]
network_access = false

[mcp_servers.issue-tracker]
url = "https://mcp.internal.example.com/mcp"
enabled_tools = ["get_issue", "search_issues"]

Review these files like code: CODEOWNERS on AGENTS.md, .agents/, .codex/.

3. Guardrails as requirements

Decide each item explicitly and record the reason:

# requirements.toml (delivered via Agent Security, MDM, or /etc/codex/requirements.toml)
allowed_approval_policies = ["on-request"]             # blocks -a never
allowed_web_search_modes = ["cached"]                  # no live browsing
default_permissions = ":workspace"

[allowed_permission_profiles]
":read-only" = true
":workspace" = true                                    # omitted profiles, incl. full access, are denied

[mcp_servers.issue-tracker]
identity = { url = "https://mcp.internal.example.com/mcp" }   # only approved MCP servers enable

Legacy deployments that still use sandbox_mode can use allowed_sandbox_modes = ["read-only", "workspace-write"]. Requirements fall back to a compatible value and notify the user when local config conflicts. Exact keys and merge behaviour: check the requirements section of the configuration reference before shipping.

Separate decisions an admin owns elsewhere: who can use Codex locally or in the cloud (workspace permissions), which plugins are allowed, cloud environments and their secrets, and login restrictions (forced_login_method, forced_chatgpt_workspace_id, managed locally).

4. Onboarding doc (template)

# Codex at <Team>
1. Install: <approved install method>; check `codex --version` >= <min version>.
2. Sign in: `codex login` with your <workspace> ChatGPT account (not a personal one).
3. Trust only repos you work on; Codex asks on first launch.
4. First task: run `codex` in <repo>, ask "Summarize the instructions you loaded".
5. Shared skills: type `$` or `/skills` to see <list>.
6. Rules: never paste production secrets; never run with --yolo outside <sandbox env>.
7. Help: #codex-help; report bad behaviour with /feedback and a session id.

5. Pilot success criteria

Define before starting, e.g.: share of merged PRs with Codex-authored commits, review rework rate on those PRs, time-to-first-PR for new hires, number of guardrail denials and their causes, usage per engineer per week (workspace analytics or the Analytics API for Enterprise), and qualitative pain points. Collect failure transcripts: they are the input for AGENTS.md fixes and new skills.

6. Scale

  • Template the repo layer (a starter PR per repo), then let each repo’s owners tailor it.
  • Promote a skill to an org-wide location (/etc/codex/skills on managed machines, or a plugin) only after two repos use it unchanged.
  • Pin a minimum Codex version; features such as permission profiles and per-profile files depend on it.

Gotchas

  • Putting a guardrail only in .codex/config.toml: a CLI flag or user config overrides it, and untrusted checkouts skip it entirely.
  • A 20 KB root AGENTS.md written by committee costs every session tokens and hides the rules that matter. Cap it and move detail into nested files or skills.
  • Model ids retire; a model pinned in repo config, custom agents and CI breaks on the retirement date. Track them in one place.
  • Hooks and rules from the repo run on developer machines; review them with the same care as CI scripts. New or changed hooks require trust before they run.
  • Plugins are not available in the IDE extension; do not make a plugin the only way to get a workflow the IDE users need.
  • Measure rework, not just volume: more Codex PRs that need heavy review is not success.

Verification

  • A fresh machine following the onboarding doc gets the expected /status, /skills list, /mcp tools and /debug-config layers (including requirements).
  • Attempting a forbidden setting (codex -a never, --sandbox danger-full-access) falls back or is refused with a notice.
  • Pilot metrics are reported against the criteria set before the pilot.

What the zip contains

SKILL.md plus the interface file below. Nothing runs on install.

agents/openai.yamlgenerated from this page

Gives the Codex app a display name, a one-line description and a starter prompt for this skill.

interface:
  display_name: "Codex Team Rollout"
  short_description: "Same rules and guardrails for every engineer"
  default_prompt: "$codex-team-rollout Plan how we roll Codex out to our 40-person engineering org"

About this skill

Written and maintained by the Codex Skills editors to the same editorial standard as every skill here: a selective description, a real workflow, known pitfalls and a way to verify the work. First published , last updated . MIT licensed. Something wrong or out of date? Tell us.

esc
Just launched

Codex Skills Pro is live

79 premium skills for Codex, each with scripts, references and an evidence report that proves the result.

Bought one by one$882.21
All 79 skills$49
94% off

That's $0.62 a skill, paid once.

Get all 79 for $49Or pick single skills from $4.99 →

Secure checkout by Creem