Install any skill in seconds. Free to start, no credit card required.
Get Started Free →This skill should be used when creating, auditing, or maintaining AGENTS.md files and Codex CLI configuration for any project—including initializing AGENTS.md for cross-agent compatibility (Codex, Cursor, Copilot, Devin, Jules, Amp, Gemini CLI), generating config.toml or .rules files, scaffolding .agents/skills/, converting CLAUDE.md to AGENTS.md, or auditing existing agent configs for bloat and staleness. Complementary to codex-orchestrator (which executes subagents; this skill creates the conf
.claude/skills/majiayu000-agents-md-manager/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-08 | ✗→✓ | ▲ Improved | 51% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 116% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 9% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 21% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 33% | 0% |
Create and maintain AGENTS.md files and Codex CLI configuration for any project.
Determine the mode:
| Mode | When | Script | |------|------|--------| | Create | New project needs AGENTS.md | scripts/analyze_project.py then write | | Refresh | Existing AGENTS.md needs audit | scripts/validate_agents_md.py | | Convert | Migrate from CLAUDE.md | scripts/convert_claude_to_agents.py | | Config | Generate config.toml | scripts/generate_config_toml.py | | Rules | Create .rules files | See references/starlark-rules-spec.md | | Skills | Scaffold .agents/skills/ | scripts/scaffold_codex_skill.py |
Run analysis to detect stack, existing config, and gaps:
bashpython3 ~/.claude/skills/agents-md-manager/scripts/analyze_project.py [project_path]
Output: JSON report with tech stack, commands, directory structure, and Codex artifact inventory (AGENTS.md, config.toml, .rules, .agents/skills/, CLAUDE.md conversion candidates).
Apply the WHAT/WHY/HOW framework in plain markdown only—no @import syntax, no YAML frontmatter.
markdown# Project Name Brief description. ## Commands - Dev: `pnpm dev` - Test: `pnpm test` - Build: `pnpm build` - Lint: `pnpm lint` ## Structure - `/src` — Application source - `/tests` — Test suites ## Conventions - [Critical convention 1] - [Critical convention 2] ## Boundaries - Always: Run tests before committing - Ask: Before adding production dependencies - Never: Modify migration files directly ## Troubleshooting - [Common issue and fix]
project_doc_max_bytes)@import, no YAML frontmatterreferences/templates.md for project-type-specific templatesreferences/agents-md-spec.md for discovery and concatenation rulesConvert existing CLAUDE.md to AGENTS.md format:
bashpython3 ~/.claude/skills/agents-md-manager/scripts/convert_claude_to_agents.py <claude_md_path> [output_path]
Outputs AGENTS.md plus conversion_report.json listing transformations and manual review items.
Key transformations: @import inlined or nested; hooks become .rules suggestions; skill invocations become prose; Claude-specific commands stripped.
See references/conversion-mapping.md for the complete field-by-field mapping.
Generate ~/.codex/config.toml (global) or .codex/config.toml (project-scoped):
bashpython3 ~/.claude/skills/agents-md-manager/scripts/generate_config_toml.py [--global | --project <path>] [--model MODEL] [--sandbox MODE]
Covers: model, reasoning effort, personality, sandbox mode, MCP servers, profiles, trusted projects, writable roots.
See references/config-toml-reference.md for the complete field reference.
Create .rules files in Starlark for command approval. Location: ~/.codex/rules/ (global) or .codex/rules/ (project). Rules files are authored manually—no generation script exists for this format. All .rules files in the directory are loaded and merged.
Common patterns:
npm, pip, cargo)rm -rf, git push --force)git commit, gh pr create)See references/starlark-rules-spec.md for syntax and examples.
Scaffold .agents/skills/<name>/ in Codex format (different from Claude .claude/skills/):
bashpython3 ~/.claude/skills/agents-md-manager/scripts/scaffold_codex_skill.py <name> [--path <dir>]
Creates SKILL.md with name + description frontmatter (both required for Codex), plus agents/openai.yaml for UI metadata.
See references/codex-skills-format.md for format differences from Claude skills.
When refreshing existing AGENTS.md, validate:
project_doc_max_bytes limit)@import syntax? (not supported in AGENTS.md)Run automated audit:
bashpython3 ~/.claude/skills/agents-md-manager/scripts/validate_agents_md.py [project_path]
For monorepos, place AGENTS.md at multiple levels:
/AGENTS.md # Repo-wide conventions
/services/
payments/
AGENTS.override.md # Payments-specific overrides
search/
AGENTS.md # Search service conventionsAGENTS.override.md takes precedence over AGENTS.md in the same directorycodex-orchestrator| File | Contents | |------|----------| | references/agents-md-spec.md | AGENTS.md discovery, concatenation, override, size limits, cross-agent compatibility | | references/config-toml-reference.md | Complete config.toml field reference | | references/starlark-rules-spec.md | .rules file syntax, prefix_rule(), decision types | | references/codex-skills-format.md | .agents/skills/ format, openai.yaml, Claude skill differences | | references/conversion-mapping.md | CLAUDE.md to AGENTS.md field-by-field mapping | | references/templates.md | AGENTS.md templates by project type |
Other measured skills in the registry, with their headline benchmark lift.