agentleFS
PolakiniOPolakiniO/AI-Engineering-Playbook/skills/codex-agent-orchestration/SKILL.md

codex-agent-orchestration

Skill2 starsChanged 8 months agoMITView on GitHub

Set up and run Codex custom subagent orchestration for software projects. Use when a user wants a project-local `.codex/agents/*.toml` team, an `AGENTS.md` orchestration contract, a software-factory workflow, parallel Codex subagents, or reusable agent chains such as architect to backend/frontend to tester/security/reviewer.

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. About 0 are common, 11 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Use this skill to turn any repository into a Codex-orchestrated software team.

    line 12
  2. Distinctive:

    Prefer the bundled generator for new or updated projects:

    line 16
  3. Distinctive:

    If the skill is installed in Codex, the generator usually lives at:

    line 22
  4. Distinctive:

    Read agent-team-template.md only when manually customizing the generated files.

    line 28
  5. Very specific:

    Run generate_project_agents.py --project <repo> to synthesize the agent team from detected project signals.

    line 33
  6. Very specific:

    Keep or tune the generated agents.

    line 35
  7. Distinctive:

    Wait for the plan.

    line 43
  8. Distinctive:

    Wait for implementers and reconcile their results in the parent session.

    line 45
  9. Distinctive:

    Use direct instructions such as:

    line 51
  10. Distinctive:

    Do not spawn write-capable agents against overlapping files at the same time.

    line 59
  11. Distinctive:

    Do not let subagents commit, push, publish, deploy, rotate secrets, or change permissions unless the user explicitly requested that outcome …

    line 60
  12. Distinctive:

    Keep raw logs and broad exploration in subagents.

    line 61
  13. Distinctive:

    Keep the parent session responsible for structured output schemas, final user-facing decisions, and cross-agent conflict resolution.

    line 62
  14. Distinctive:

    Prefer high-reasoning models for architect, security, reviewer, and ambiguous fixes.

    line 63

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Codex Agent Orchestration

Overview

Use this skill to turn any repository into a Codex-orchestrated software team. The project-local layer is .codex/agents/*.toml; the reusable workflow layer is this skill; the repo instruction layer is AGENTS.md.

Generated agents are named by project, role, and job so their purpose is clear at a glance, for example companyos_backend_api_service_builder or companyos_tester_regression_checker.

Prefer the bundled generator for new or updated projects:

python /path/to/codex-agent-orchestration/scripts/generate_project_agents.py --project .

If the skill is installed in Codex, the generator usually lives at:

python ~/.codex/skills/codex-agent-orchestration/scripts/generate_project_agents.py --project .

Read agent-team-template.md only when manually customizing the generated files.

Setup Workflow

  1. Inspect the repository shape and existing instructions.
  2. Run generate_project_agents.py --project <repo> to synthesize the agent team from detected project signals.
  3. Review the generated plan in the script output. Re-run with --dry-run first when the repository already has hand-written .codex files or an AGENTS.md.
  4. Keep or tune the generated agents. Default names use <project>_<role>_<job>. Use --generic-names only when the user prefers portable names such as architect_plan_mapper and reviewer_quality_gate_reviewer.
  5. Validate TOML syntax and confirm every custom agent defines name, description, and developer_instructions.

Running The Team

For substantial work, orchestrate this default chain:

  1. Spawn architect or explorer to inspect the repo and produce a plan.
  2. Wait for the plan.
  3. Spawn independent implementers in parallel only when they can avoid editing the same files.
  4. Wait for implementers and reconcile their results in the parent session.
  5. Spawn tester and reviewer. Add security when auth, permissions, payments, secrets, untrusted input, deployment, or compliance are involved.
  6. Route critical or high findings back to the smallest relevant implementation agent.
  7. Rerun tester and reviewer after fixes.
  8. Return a parent-session final summary with changed files, verification, risks, and unresolved items.

Use direct instructions such as:

Use the project Codex agent team. Have the architect map the work first, then delegate backend and frontend changes in parallel if they do not touch the same files. Run tester and reviewer before the final summary.

Guardrails

  • Do not spawn write-capable agents against overlapping files at the same time.
  • Do not let subagents commit, push, publish, deploy, rotate secrets, or change permissions unless the user explicitly requested that outcome and the parent session handles approval.
  • Keep raw logs and broad exploration in subagents; return distilled results to the parent.
  • Keep the parent session responsible for structured output schemas, final user-facing decisions, and cross-agent conflict resolution.
  • Prefer high-reasoning models for architect, security, reviewer, and ambiguous fixes. Prefer faster models for read-heavy scans and narrow repetitive work when configured by the project.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.