content/skills/developer-tools-integrations/codex-workflow-recommender/SKILL.md
Analyze a repository and current Codex environment, then recommend Codex CLI, Codex App, AGENTS.md, skills, native subagents, plugins, MCP servers, config/hooks, and optional OMX workflow improvements without modifying files. Use when the user asks to optimize Codex workflows, improve Codex setup, recommend Codex automation, configure MCP/plugins/subagents, analyze AGENTS.md scope needs, or says "优化 Codex 流程", "Codex 工作流推荐", "给 Codex 配 MCP", "配置 Codex plugins", or "配置 Codex subagents".
npx skillsauth add bahayonghang/my-claude-code-settings codex-workflow-recommenderInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Analyze a codebase and the local Codex surface, then recommend a safe implementation order for Codex-specific workflow improvements.
This skill is read-only. It may inspect files and run read-only discovery commands, but it must not create, edit, install, remove, or reconfigure anything. End with implementation options the user can approve separately.
Return exactly these top-level sections unless the user asks for a narrower category:
Codebase ProfileCurrent Codex SurfaceTop Recommendations by categorySafe Implementation OrderVerification PlanWant me to implement...Keep recommendations evidence-based. Recommend the highest-value 1-2 items per relevant category, not a catalog dump.
Inspect only enough to classify the project and its verification gates:
# POSIX shells
find . -maxdepth 3 \( -name package.json -o -name pyproject.toml -o -name Cargo.toml -o -name go.mod -o -name justfile -o -name Makefile \) -print
find . -maxdepth 4 \( -name AGENTS.md -o -path './.codex/*' \) -print
# PowerShell
Get-ChildItem -Recurse -Depth 3 -Include package.json,pyproject.toml,Cargo.toml,go.mod,justfile,Makefile | Select-Object -ExpandProperty FullName
Get-ChildItem -Recurse -Depth 4 -Force -Include AGENTS.md | Select-Object -ExpandProperty FullName
Capture:
| Signal | Why it matters |
|---|---|
| language/runtime manifests | hooks, test commands, subagent expertise |
| frontend/backend/data boundaries | Playwright/browser MCP, DB MCP, API docs |
| existing AGENTS.md files | root vs nested guidance recommendations |
| .codex/skills, .codex/agents | project-local Codex capabilities already present |
| ~/.codex/config.toml, ~/.codex/hooks.json when readable | user-level Codex config and hook surface |
| CI and local gates | verification plan and safe hook candidates |
| external services in dependencies or docs | MCP/plugin candidates |
| OMX files such as .omx/ or AGENTS.md OMX sections | optional repo-specific runtime workflows |
Prefer the installed CLI over memory:
codex --help
codex mcp --help
codex plugin --help
codex doctor --help
When available, also inspect configured state without modifying it:
codex mcp list --json
codex plugin list
codex plugin marketplace list
If a command is missing, state that the recommendation depends on the installed Codex version.
references/mcp-servers.mdreferences/skills-reference.mdreferences/hooks-patterns.mdreferences/subagent-templates.mdreferences/plugins-reference.mdDo not load every reference by default.
Recommend root or nested AGENTS.md changes when the repository has distinct subtrees, commands, generated files, safety boundaries, or verification gates that future Codex agents must know. If the user wants direct AGENTS.md edits, use agents-md-improver instead of this read-only recommender.
Recommend skills for repeatable workflows, project-specific procedures, bundled scripts/templates, or domain knowledge that should be discoverable by Codex. Typical roots include:
~/.codex/skills.codex/skills~/.agents/skillsConfirm the actual roots for the current environment before giving path-specific instructions.
Recommend .codex/agents or ~/.codex/agents only for bounded roles with clear ownership, sandbox expectations, and verification responsibilities. Avoid suggesting a subagent when a skill, prompt, or direct instruction is simpler.
Recommend MCP only when external tool access materially helps: browser automation, live docs, databases, issue trackers, observability, cloud services, or filesystem boundaries. Use codex mcp add/list/get/remove syntax and avoid provider-specific commands from other CLIs.
Recommend plugins when the user needs a bundled set of skills/tools or a reusable team distribution unit. Use codex plugin list/add/remove/marketplace syntax and verify marketplaces before recommending a plugin name.
Recommend ~/.codex/config.toml or hook-related changes only when the current Codex installation and local policy support them. Treat ~/.codex/hooks.json as environment-specific; do not invent a schema when it is not present. For enforcement that must work outside Codex, recommend standard repo gates such as pre-commit, just, npm scripts, or CI.
Recommend direct CLI features when they match the workflow:
| Need | Codex surface |
|---|---|
| non-interactive implementation or analysis | codex exec |
| read-only diff review | codex review |
| continue or branch a previous session | codex resume / codex fork |
| diagnose install/auth/config health | codex doctor |
| sandboxed local command execution | codex sandbox |
| launch desktop app | codex app |
Mention OMX only when the repository or user environment shows OMX is installed or requested. Present it as an optional enhancement, not a universal Codex capability.
## Codex Workflow Recommendations
### Codebase Profile
- **Type**: ...
- **Primary gates**: ...
- **Risk boundaries**: ...
### Current Codex Surface
- **AGENTS.md**: root/nested/global status
- **Skills**: discovered roots and notable project-local skills
- **Subagents**: discovered `.codex/agents` or user agents
- **MCP**: configured or absent
- **Plugins**: configured marketplaces/plugins or absent
- **Config/hooks**: current known surface and unsupported gaps
- **OMX**: present/absent/optional
### Top Recommendations by category
#### AGENTS.md
1. **...**
- Evidence: ...
- Why now: ...
- Suggested scope: ...
#### Skills
...
#### Native subagents
...
#### MCP servers
...
#### Plugins
...
#### Config/hooks
...
#### Codex CLI runtime
...
### Safe Implementation Order
1. Read-only inventory and baseline verification
2. AGENTS.md or docs guidance changes
3. Local/project skill or subagent additions
4. MCP/plugin/config changes behind explicit approval
5. Verification and rollback notes
### Verification Plan
- `codex doctor` for installation/config health
- repository-specific lint/type/test/build gates
- skill or agent validators when new packages are added
- `codex mcp list --json` / `codex plugin list` after configuration changes
### Want me to implement...
I can implement the approved local-file changes next. I will not install plugins, add MCP servers, or change user-level config without explicit approval.
development
Implement safe, behavior-preserving code refactors after inspecting the existing project. Use when the user asks to refactor code, split large files or modules, extract functions or methods, reduce duplicated logic, rename confusing classes/functions/variables, improve code comments, remove unused or dead code, or says 重构代码, 拆分模块, 提取方法, 减少重复代码, 优化命名, 优化注释, 删除未调用代码. For broad refactor requests, plan safe slices and wait for approval; for narrow scoped requests, directly implement the smallest verifiable slice.
development
Use only when the user explicitly asks for swarm, subagents, parallel agents, dynamic workflow, multi-agent orchestration, 多智能体编排, or when the task truly needs coordinated research plus implementation plus review plus verification packets. Do not use for ordinary code review, planning-only work, single-line bugfixes, routine audits, or migrations unless orchestration is requested or at least two independent workflow dimensions are present.
development
Run a code quality review focused on maintainability, structure, abstraction quality, file growth, branching complexity, boundary cleanliness, and refactoring opportunities. Use when the user asks for code quality review, code review, maintainability review, architecture quality review, PR code quality feedback, 代码质量审查, 代码质量 review, 可维护性审查, 架构质量审查, or review comments about code structure. Do not use for pure security review, formatting-only review, performance profiling, or implementation tasks unless the user also asks for a code quality review.
development
Plan-first brainstorming workflow that turns an idea into an approved Markdown implementation plan by default. Use when the user wants to brainstorm, design, scope, or plan a feature/spec before implementation. Spark explores project context, asks only blocking questions, writes the plan under the project root's .plannings/YYYY-MM-DD-feature-slug.md path, self-reviews it, and waits for user approval. Create an HTML or visual plan/spec only when the user explicitly asks for HTML, browser-viewable, or visual output; save the paired .html beside the Markdown plan.