Token导航 LogoToken导航

Agent Skill · 研究检索

codex-config-optimizer(Codex 配置优化器)

codex-config-optimizer 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

codex-config-optimizer 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为执行命令;许可证为 MIT,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 37,758。

总安装 1,673周安装 69GitHub Stars 9下载 546核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:codex-config-optimizer(Codex 配置优化器)
来源仓库:https://github.com/i9wa4/dotfiles
仓库路径:skills/codex-config-optimizer
安装命令:
npx skills add https://github.com/i9wa4/dotfiles --skill codex-config-optimizer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/i9wa4/dotfiles --skill codex-config-optimizer

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

codex-config-optimizer 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。

它通过 Nix 声明式管理 Codex CLI 配置优化规则,生成 config.toml 与 AGENTS.md。源文件位于 dotfiles/nix/home-manager/agents/codex-cli.nix,由激活脚本同步至目标位置。

安装命令为 npx skills add https://github.com/i9wa4/dotfiles --skill codex-config-optimizer,需 ghq 工具获取源码。使用前建议核实 Nix 环境就绪及默认规则生成逻辑无冲突。

来源仓库内路径:skills/codex-config-optimizer

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/i9wa4/dotfiles --skill codex-config-optimizer;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

codex-config-optimizer 怎么安装?

在终端执行 npx skills add https://github.com/i9wa4/dotfiles --skill codex-config-optimizer。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

codex-config-optimizer 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

codex-config-optimizer 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 npx skills add https://github.com/i9wa4/dotfiles --skill codex-config-optimizer;npx skills add i9wa4/dotfiles --skill "codex-config-optimizer" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

codex-config-optimizer 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

codex-config-optimizer 用的人多吗?

公开数据是累计安装 1,673 次,近一周安装 69 次,下载 546 次,GitHub 9 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

codex-config-optimizer 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
codex-config-optimizer

Codex 配置优化器 · 本页

1,6739执行命令MIT有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Codex CLI Optimizer Skill

Rules and tracking for Codex CLI configuration optimization.

1. Config File Location

Config is managed declaratively via Nix (programs.codex home-manager module).

Source of truth:

  • @~/ghq/github.com/i9wa4/dotfiles/nix/home-manager/agents/codex-cli.nix
  • @~/ghq/github.com/i9wa4/dotfiles/nix/home-manager/agents/
DestinationSourceManaged by
~/.codex/config.tomlGenerated by activation scriptcodex-cli.nix
~/.codex/AGENTS.mdGenerated from AGENTS.md + inlined rules/*.mdinstruction-artifacts.nix
~/.codex/rules/Generated default.rules from denied Bash policycodex-cli.nix
~/.codex/hooks.jsonGenerated hook configcodex-cli.nix
~/.codex/scripts/Symlinked codex-* scripts + shared deny patternscodex-cli.nix
~/.codex/skills/Multiple flake inputs + localagent-skills.nix
MCP serversnix/home-manager/agents/mcp-servers.nixcodex-cli.nix

2. Config Management

Static settings (model, analytics, features, MCP servers) are defined as Nix attributes in codex-cli.nix. Trusted projects are discovered dynamically by fd at home-manager switch time and appended to config.toml.

Hooks are also declared in codex-cli.nix; their runtime scripts live under nix/home-manager/agents/scripts/codex-* and are materialized into ~/.codex/scripts/ at switch time.

To update settings, edit nix/home-manager/agents/codex-cli.nix and rebuild.

3. Fetch Releases

3.1. Detect Local Version

Always detect the installed version first:

codex --version

This returns the locally installed version (e.g. codex-cli 0.113.0). All release analysis MUST be scoped to this version and below. Do NOT report features or changes from versions newer than the local install.

3.2. Fetch from GitHub

FILE=$(mkmd --dir tmp --label output)
gh api repos/openai/codex/releases --jq '.[0:10]' > "$FILE"

Then extract entries up to and including the local version using:

jq '.[] | select(.tag_name == "rust-v<LOCAL_VERSION>") | {tag_name, body}' "$FILE"

4. CHANGELOG Operations

IMPORTANT: All operations below are scoped to the locally installed version. Ignore any release entries for versions newer than codex --version.

4.1. Latest Release Summary

  1. Detect local version with codex --version
  2. Fetch releases using the command above
  3. Extract the rust-v<local-version> release entry (not the first entry)
  4. Categorize changes into:

- New features (Added) - Bug fixes (Fixed) - Improvements (Improved/Changed) - Breaking changes

  1. Present in Japanese with brief explanations

4.2. Version Diff

  1. Detect local version with codex --version
  2. Ask user for start version (end version defaults to local version)
  3. Extract all releases between start and local version (inclusive)
  4. Summarize cumulative changes
  5. Highlight breaking changes and deprecations

4.3. Breaking Changes Detection

  1. Detect local version with codex --version
  2. Search releases up to local version for: breaking, removed, deprecated, changed (behavior changes)
  3. List affected commands and options
  4. Provide migration guidance

5. Settings Categories

CategoryExamples
Modelmodel, model_reasoning, model_reasoning_effort
Behaviorapproval_mode, sandbox, network_access
Displaynotify, tui.notifications_method
Shellshell_environment_commands
Hooksfeatures.codex_hooks, hooks.json, scripts/codex-*
Historyhistory, project_doc_max_bytes
Featuresfeatures.skills, features.web_search_request
Disabledisable_response_storage, hide_agent_*
Analyticsanalytics.enabled, feedback.enabled

6. Hooks Guidance

  • YOU MUST: Enable hooks with features.codex_hooks = true before relying on any hooks.json behavior
  • YOU MUST: Keep Codex home-level hooks in nix/home-manager/agents/codex-cli.nix unless there is a deliberate repo-local override need
  • YOU MUST: Keep Codex hook scripts under nix/home-manager/agents/scripts/codex-*
  • YOU MUST: Reuse denied-bash-commands.nix as the SSOT for Bash deny policy instead of hand-maintaining separate Codex-only command lists
  • YOU MUST: Keep shared Bash deny justifications repair-oriented so the rejection tells the agent what to do next, not just what was blocked
  • YOU MUST: Treat Codex PreToolUse and PostToolUse as Bash-only today
  • YOU MUST: Keep PostToolUse Bash hooks feedback-only; the command already ran, so use them for concise remediation rather than fake enforcement
  • NEVER: Claim Codex currently intercepts Write|Edit|NotebookEdit; those matcher examples are valid regex but do not match current Codex runtime
  • NEVER: Rely on unsupported permissionDecision: "ask" / "allow", updatedInput, or additionalContext fields for PreToolUse; the current runtime parses them but fails open
  • NOTE: Official docs say SessionStart, PreToolUse, PostToolUse, UserPromptSubmit, and Stop are the supported current events
  • NOTE: Official docs say matching hooks from multiple hooks.json files all run, and matching command hooks for the same event launch concurrently
  • NOTE: Stop is the closest current Codex equivalent to Claude PreCompact; use it for lightweight handoff persistence, not as proof of full parity

7. AGENTS.md Design Guidelines

  • YOU MUST: Focus only on persona and core guidelines
  • YOU MUST: Keep instructions compatible with both Claude Code and Codex CLI
  • NEVER: Include tool-specific syntax (e.g., Claude Code's TodoWrite)

8. Optimization Checklist

Check the following when editing AGENTS.md or config.toml:

  • Is the persona definition concise?
  • Are basic rules truly needed at all times?
  • Can detailed explanations be moved to skills/?
  • Is config.toml using appropriate approval_mode?
  • Are shared Bash deny messages phrased as safe next steps, not only denials?
  • Are Codex hook limitations documented honestly (Bash-only pre/post tool)?
  • Is PostToolUse scoped to deterministic Bash feedback, not enforcement?
  • Is hook state split correctly between hooks.json and scripts/codex-*?

9. Optimization Tracking

Last reviewed Codex CLI version: v0.117.0 (2026-03-30)

9.1. Applied Optimizations

  • AGENTS.md generated from shared AGENTS.md + inlined rule markdown
  • skills/ symlinked to Claude Code skills
  • default.rules generated from denied Bash policy
  • Home-level Codex hooks enabled for UserPromptSubmit, SessionStart, PreToolUse (Bash only), PostToolUse (Bash only), and Stop
  • Shared deny-bash patterns reused by both Claude Code and Codex CLI hooks
  • Shared deny-bash justifications upgraded from bare denials to repair guidance for both Claude Code and Codex CLI
  • Codex UserPromptSubmit now carries time, role, cwd, and git context
  • Lightweight Codex handoff persistence via Stop + SessionStart
  • model_auto_compact_token_limit = builtins.floor (codexContextWindow * 0.7) autocompact at 70% (190,400 tokens for gpt-5.x 272k window)
  • tui.terminal_title = [] disables Codex terminal-title writes so tmux pane_title stays reserved for role identity (v0.117.0)

9.2. Pending Considerations

  • Create prompts/ symlink to ../claude/commands/ if needed
  • Create generate-config.sh for automated config.toml generation
  • Evaluate MCP server integration (AWS docs MCP etc.)
  • Plan mode (/plan) - now stable and enabled by default (v0.94.0)
  • command_attribution = "disable" - co-author attribution disabled (v0.103.0)
  • PostToolUse Bash feedback heuristics - keep scope narrow and deterministic as new repo failure patterns repeat
  • code_mode experimental feature - isolated coding workflow; watch for stabilization (v0.114.0)
  • Disable bundled system skills config switch - useful if custom skills suffice for leaner sessions (v0.114.0)
  • Permission profile config language - split filesystem/network sandbox policies for finer control in config.toml (v0.113.0)
  • Subagent support - multi-agent feature stabilized (v0.115.0);.toml agents auto-generated from subagents/*.md at Nix build time (codex-cli.nix)
  • openai_base_url config override - custom API endpoint (v0.115.0)
  • Smart Approvals guardian - route review requests through guardian subagent for reduced approval friction (v0.115.0)

9.3. Not Adopting

  • personality setting - keep default ("friendly"); no benefit from changing
  • log_dir config - default log location is fine
  • tui.notifications_method - keep default
  • CLAUDE_CODE_DISABLE_CRON env - N/A for Codex CLI
  • approval_policy: on-failure - deprecated (v0.102.0); not used in config
  • PreToolUse / PostToolUse matcher patterns like Write|Edit - current Codex runtime only emits Bash, so these configs are misleading today
  • permissionDecision: "ask" / "allow" and updatedInput in PreToolUse - current runtime parses them but does not enforce them
  • PostToolUse decision/block semantics for Bash repair hooks - keep these feedback-only so Codex still sees the raw command result
  • AfterToolUse hook - superseded by documented hooks engine
  • smart_approvals - keep default behavior (v0.93.0)

9.4. Version Notes

  • v0.117.0: /title terminal-title picker now works in both classic and app-server TUI, plugins become a first-class workflow, app-server TUI is now enabled by default, and legacy artifact, read_file, and grep_files handlers were removed
  • v0.116.0: Local installed version at review time; official hooks docs still mark hooks as experimental and document current event support/limits at https://developers.openai.com/codex/hooks
  • v0.115.0: Full-resolution image inspection via view_image, js_repl gains codex.cwd/codex.homeDir with cross-cell persistence, realtime WebSocket transcription mode + v2 handoff, v2 app-server filesystem RPCs with Python SDK, Smart Approvals guardian subagent for review routing, tool-search via Responses API with fallback, multi-agent feature stabilized, wait_agent tool rename, bubblewrap default Linux sandbox, openai_base_url config override
  • v0.114.0: Experimental code mode (isolated coding), hooks engine (SessionStart/Stop), health endpoints (/readyz//healthz) for app-server WebSocket, config to disable bundled system skills, handoff transcript context for turn continuity, $ mention picker with category labels, Linux tmux segfault fix, approval persistence across turns, Python SDK v2 schema foundation
  • v0.113.0: request_permissions tool (runtime permission requests), plugin marketplace + curated discovery + uninstall, app-server streaming exec with TTY/PTY, web search full tool config, permission profile config language, image gen saves to cwd, SQLite DB for logs, winget auto-update
  • v0.112.0: @plugin mentions for direct plugin reference, permission profiles merged into per-turn sandbox, JS REPL binding persistence fix, SIGTERM graceful shutdown, bubblewrap userns hardening, macOS Seatbelt improvements
  • v0.111.0: Fast mode enabled by default, TUI shows Fast/Standard mode, js_repl can import local .js/.mjs files, plugins reported to model at session start, app-server v2 MCP elicitation as structured request/response
  • v0.110.0: Plugin system (skills/MCP/app connectors from config or marketplace), persisted /fast toggle, multi-agent TUI flow with approval prompts, workspace-scoped memory writes, Windows installer
  • v0.107.0: Fork thread into sub-agents, realtime voice device selection, multimodal custom tool output, memories configurable (codex debug clear-memories)
  • v0.104.0: WS_PROXY/WSS_PROXY env for websocket proxying, ConfigChange hook from app-server, command approval ID plumbing
  • v0.103.0: Commit co-author attribution via command_attribution config, richer app details in listings
  • v0.102.0: Unified permissions flow with TUI history, slash command to grant sandbox read access, customizable multi-agent roles, model/rerouted notification, approval_policy: on-failure deprecated
  • v0.101.0: Bug fixes for memory and model resolution
  • v0.100.0: Experimental JS REPL runtime, memory slash commands (/m_update, /m_drop), ReadOnlyAccess sandbox policy, AfterToolUse hook
  • v0.99.0: /statusline command for TUI footer config, shell commands no longer interrupt in-flight turns, GIF/WebP image support, AfterToolUse hook added, security fix (RUSTSEC-2026-0009)
  • v0.98.0: GPT-5.3-Codex model introduced, steer mode stable by default (Enter sends, Tab queues)
  • v0.97.0: "Allow and remember" for MCP/App tools, live skill updates, /debug-config slash command, configurable log_dir
  • v0.96.0: unified_exec enabled on all non-Windows platforms
  • v0.95.0: ~/.agents/skills personal skill loading, /plan accepts args and images, parallel shell tools, CODEX_THREAD_ID env injected
  • v0.94.0: Plan mode enabled by default, personality config stable (default: friendly), skills from .agents/skills

10. Response Format (CHANGELOG)

# Codex CLI vX.X.X 更新内容

## 新機能
- [機能名]: [説明]

## バグ修正
- [修正内容]

## 改善
- [改善内容]

## 破壊的変更
- [影響を受ける機能と移行方法]

---
Source: https://github.com/openai/codex/releases

11. Important Notes

  • Codex CLI changelog is on the releases page, not CHANGELOG.md
  • Use GitHub releases API to fetch release notes
  • Always specify the version being referenced
  • Link to official release page when available

12. Reference Links

平台分布

Claude Code

26.4%
按下载量换算144

windsurf

21.42%
按下载量换算117

trae

16.73%
按下载量换算91

OpenCode

14.12%
按下载量换算77

Codex

7.38%
按下载量换算40

Antigravity

3.54%
按下载量换算19

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/i9wa4/dotfiles --skill codex-config-optimizer;npx skills add i9wa4/dotfiles --skill "codex-config-optimizer" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。

继续浏览同类 Skills