跳到正文
Skillpedia
通用编程53k · #3375

code-mate-codex

它能做什么

这个工具可以帮你分析代码并实现功能。它会运行一个名为 Codex 的程序,在你的编程项目上完成任务。

适用场景

  • ✓当你想让 AI 分析你的代码时。
  • ✓当你要求 AI 修改代码时。
  • ✓当你想听听另一个 AI 对你代码的看法时。

技能链接

https://github.com/CherryHQ/cherry-studio/blob/main/resources/code-cli-skills/code-mate-codex/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/CherryHQ/cherry-studio/blob/main/resources/code-cli-skills/code-mate-codex/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“分析一下这段代码,看看有没有错误。”

每周 5 个新技能,1 分钟读完。

工作原理

工具会为 Codex 程序设置好运行环境,发送你的指令,并等待结果。最后它会展示最终结果,如果出现问题,也会告诉你。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Codex CLI

Run

  1. Set the Bash working directory to the exact project the user named and set a finite timeout, normally 10 minutes.
  2. Check availability with command -v codex. If it is missing, stop and ask the user to install Codex CLI in Code Mate.
  3. Run one task and exit:
codex exec "<prompt>" --json

Pass the prompt as one quoted argument. Parse stdout as JSONL, preserve event order, and use the final agent message as the result. Treat an error event or nonzero exit as failure. Never start interactive codex or codex login.

Authentication And Permissions

If Codex reports missing login or API configuration, stop and ask the user to finish Codex setup in Code Mate. Never request, read, print, or copy credentials.

Use --sandbox read-only unless the user explicitly requested workspace changes. For an approved edit, use only the narrowest suitable sandbox and working directory; never add --dangerously-bypass-approvals-and-sandbox. Add --skip-git-repo-check only when the user intentionally selected a non-Git directory.

Example: for a review request, append --sandbox read-only, ask Codex not to modify files, and summarize the final JSONL message plus any reported errors.

常见问题

什么是 Codex?

Codex 是一个帮助程序员分析和编写代码的程序。

我需要安装什么吗?

需要。你要先在 Code Mate 中安装 Codex CLI,才能使用这个工具。

这个工具会修改我的文件吗?

只有当你明确提出要求,并且工具已配置为允许修改时,它才会改动你的文件。大多数情况下,它只是分析代码,不做修改。

详情

作者的原始描述

Runs Codex CLI non-interactively for code analysis and implementation tasks. Use when the user asks to delegate repository work to Codex or obtain a second coding-agent result.

repo: CherryHQ/cherry-studio

热度

GitHub 星标
53k
排名
#3375
许可证
AGPL-3.0
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能