codex-assistant

通过自然语言调用 OpenAI Codex CLI 执行代码任务:重构、Bug 修复、测试生成、代码解释、迁移、审查、文档生成

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "codex-assistant" with this command: npx skills add joeseesun/codex-assistant/joeseesun-codex-assistant-codex-assistant

Codex Assistant

通过 OpenAI Codex CLI 执行代码任务。使用前请确保:

  1. Codex 已安装并配置 (codex 命令可用)
  2. 工作目录在信任列表中

触发词

  • /codex-assistant - 显式调用
  • 用 Codex / codex 帮我 - 自然语言调用

核心原则

当用户用 /codex用 Codex 发起请求时:

  1. 提取用户需求 - 从自然语言中提取 Codex 需要完成的任务
  2. 构建 Codex Prompt - 将需求转化为 Codex 能理解的指令
  3. 执行命令 - 使用 Bash 调用 codex exec
  4. 返回结果 - 直接展示 Codex 的输出

Codex 最佳场景

场景Codex 擅长提示词模板
代码重构优化结构、提升可读性"重构这段代码,让它更简洁"
Bug 修复定位问题、给出修复"找出并修复这个 bug"
测试生成编写单元测试"给这个函数写测试"
代码解释逐行解释逻辑"解释这段代码在做什么"
跨语言迁移语言/框架转换"转成 TypeScript"
代码审查找出问题、改进建议"审查这段代码"
文档生成添加注释/文档"给这个函数写文档"
样板代码生成模板/脚手架"写一个 React 组件模板"
代码清理移除技术债务"清理这段代码"

执行流程

步骤 1: 解析用户输入

识别任务类型(重构/修复/测试/解释/迁移/审查/文档/生成)

步骤 2: 构建 Codex Prompt

echo "你的任务描述" | codex exec -m gpt-5.2-codex

步骤 3: 展示结果

直接返回 Codex 的输出,不做额外加工


注意事项

  • Codex 是研究预览版,功能可能不稳定
  • 生成的代码建议 review 后使用
  • 复杂任务可能需要多次交互
  • 确保在受信任目录中执行

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

opencli

No summary provided by upstream source.

Repository SourceNeeds Review
General

defuddle

No summary provided by upstream source.

Repository SourceNeeds Review
Research

knowledge-site-creator

No summary provided by upstream source.

Repository SourceNeeds Review
General

yt-search-download

No summary provided by upstream source.

Repository SourceNeeds Review