codex-keysmith

by Jia-EthanVerified

Versioned Codex instruction deployment with preview, ownership manifests, hook isolation, scenario evaluation, and recovery.

3,926
Stars
610
Forks
Python
Language
8/23/2026
Added
View on GitHubDownload ZIP

⚠️ Third-Party Software Notice

This skill is third-party open-source software developed and hosted independently on GitHub. SkillTip is an informational directory and does not control or maintain the underlying repository. Any security checks displayed are automated and limited in scope. Review the source code before installing.

Read the Terms of Service

Installation

Add to your Claude Code skills directory:

# Add to your Claude Code skills
git clone https://github.com/Jia-Ethan/codex-keysmith

Getting Started

Guides for using skills like codex-keysmith.

Security Report

Verified

Last scanned: —

{
  "status": "PASSED",
  "issues": []
}

README.md

Illustrative codex-keysmith dry-run terminal preview; actual paths and output vary

Illustrative preview / 示意预览;实际路径与输出以本机 dry-run 为准。

codex-keysmith

先预览、再写入、可撤销的 Codex 全局指令部署工具。

简体中文 · English · Reference · 智能体安装 · Security · License

Blocking CI tests Source version v0.3.9 Python 3.10 to 3.14 recommended License MIT

简体中文

Keysmith 系列为本地 AI 工具安全部署、验证和撤销自定义指令。codex-keysmith 把一份 Markdown 部署到 Codex 配置目录(通常是 ~/.codex),让之后的新会话加载它。

[!WARNING] 这会改变该 Codex 配置下的全局行为,不是项目级开关:写入 config.tomlmodel_instructions_file,并默认把整份 hooks.json 隔离为 hooks.json.disabled。部署、卸载和中断恢复先预览,确认后加 --yes--restore-hooks 会立即执行且不接受 --yes。先阅读 examples/gpt-unrestricted.mdSECURITY.md

选择哪个 Keysmith

项目目标工具部署面稳妥安装Desktop
codex-keysmithCodex全局 ~/.codex 指令稳定 CLI Release未签名 Beta
claude-keysmithClaude Code项目 / 用户 CLAUDE.md import源码 CLI未签名 Beta
grok-keysmithGrok Build全局 ~/.grok/rules(不改 AGENTS.md稳定 CLI Release未签名 Beta
zcode-keysmithZCode App用户目录 system-role + wrapper仅源码

安装方式

  1. 稳妥:稳定 CLI。 打开 最新稳定 Release,下载单文件 codex-instruct-v*.pySHA256SUMS,校验后再运行;当前稳定资产名为 codex-instruct-v0.3.9.py。不要 curl | python
  2. 更易用:未签名 Desktop Beta。Desktop 预发布:macOS Apple Silicon DMG 与 Windows x64 NSIS,内嵌 CLI sidecar、双 preset、四个 fixture 包与“恢复配置引用”入口。无签名、无自动更新、无 Linux GUI。安装步骤见 CODE_SIGNING_POLICY.md
  3. 源码。 clone 后直接 python3 codex-instruct.py。此源码树与最新稳定 Release 均为 0.3.9,以 Releases 页为准。

快速开始

# 把 vX.Y.Z 换成 Releases 页的最新稳定 tag
base='https://github.com/Jia-Ethan/codex-keysmith/releases/download/vX.Y.Z'
curl --fail --location --remote-name "$base/codex-instruct-vX.Y.Z.py"
curl --fail --location --remote-name "$base/SHA256SUMS"
awk '$2 == "codex-instruct-vX.Y.Z.py"' SHA256SUMS | shasum -a 256 -c -

python3 codex-instruct-vX.Y.Z.py --version
python3 codex-instruct-vX.Y.Z.py --codex-dir ~/.codex --status --lang zh-CN
python3 codex-instruct-vX.Y.Z.py --codex-dir ~/.codex --dry-run --lang zh-CN
# 确认目标目录、提示词来源和写入计划后:
python3 codex-instruct-vX.Y.Z.py --codex-dir ~/.codex --yes --lang zh-CN

源码路径:git clone https://github.com/Jia-Ethan/codex-keysmith.git && cd codex-keysmith,再把上述脚本名换成 codex-instruct.py。部署后关闭旧任务、开一个新 Codex 会话。省略 --codex-dir 会处理全部自动发现的配置目录。Windows 命令把 python3 换成 python

会修改什么

路径会发生什么
<codex-dir>/gpt-unrestricted.md(或 --name新建,或先备份再替换
<codex-dir>/config.toml只改顶层 model_instructions_file
<codex-dir>/hooks.json默认整体隔离为 hooks.json.disabled
<codex-dir>/.codex-keysmith-manifest.json记录本层所有权,供卸载使用

场景部署另写 <target>/.codex-keysmith/,不改上述指令层文件。完整边界见 docs/reference.md

如何撤销

以下以 Release 单文件为例;源码 checkout 请把文件名换成 codex-instruct.py

python3 codex-instruct-vX.Y.Z.py --codex-dir ~/.codex --restore-hooks --lang zh-CN
python3 codex-instruct-vX.Y.Z.py --codex-dir ~/.codex --uninstall --lang zh-CN
python3 codex-instruct-vX.Y.Z.py --codex-dir ~/.codex --uninstall --yes --lang zh-CN

卸载每次只撤销最新一层。--reactivatev0.3.9 开始提供:

python3 codex-instruct-vX.Y.Z.py --codex-dir ~/.codex --reactivate --lang zh-CN
python3 codex-instruct-vX.Y.Z.py --codex-dir ~/.codex --reactivate --yes --lang zh-CN

--status 显示 inactive-by-config--reactivate 只补回缺失的顶层 model_instructions_file,不要手工改 config.toml,也不要为补字段再走一遍完整部署。它会回滚可捕获的批量失败,但不创建 durable journal;硬中断后先运行 --status,无冲突时重跑 --reactivate --yes 完成其余目录。--recover 只处理 deploy/uninstall 中断事务。不要手工删除 journal、备份或 manifest。

平台与 Beta 限制

  • CLI:macOS / Linux 为主要支持;Windows 新鲜部署为 EXPLICIT_BETA。不要使用已发布的 v0.1.0
  • Desktop Beta:仅 macOS Apple Silicon 与 Windows x64,未签名、未经公证,可能触发 Gatekeeper / SmartScreen。
  • CLI 与 Desktop 正常操作不主动收集或上传用户数据;当前资产尚未完成实体设备验收,也未获 SignPath 签名。
  • 推荐 Python 3.10–3.14。没有 pip install,没有自动更新。
  • 版本、资产名和签名状态以 ReleasesCODE_SIGNING_POLICY.md 为准,不要以本页为版本源。

两条通道

指令通道把 Markdown 部署到 ~/.codex(默认 --preset unrestricted)。环境通道 --scaffold 把残缺 fixture 工作区写到 ~/.codex-fixture-workspace/<pack>不修改 ~/.codex。两通道可叠用,互不写对方目录。默认安装步骤不变;scaffold 不是必做步骤。

python3 codex-instruct.py --scaffold-list
python3 codex-instruct.py --scaffold pytest_complete --dry-run
python3 codex-instruct.py --scaffold pytest_complete --yes

独立单文件脚本旁边没有 fixture_packs/ 时,--scaffold 会提示下载 Release bundle 或指定 --pack-dir

进阶文档

贡献、安全与系列

提交前阅读 CONTRIBUTING.md。漏洞走 SECURITY.md 的 GitHub 私密渠道。社区讨论:LINUX DO

Frequently Asked Questions

What is codex-keysmith?

codex-keysmith is an open-source cli tools skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by Jia-Ethan. Versioned Codex instruction deployment with preview, ownership manifests, hook isolation, scenario evaluation, and recovery. It has 3,926 GitHub stars.

Is codex-keysmith safe to use?

Yes. codex-keysmith passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install codex-keysmith?

Clone the repository with "git clone https://github.com/Jia-Ethan/codex-keysmith" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is codex-keysmith written in?

codex-keysmith is primarily written in Python. It is open-source under Jia-Ethan on GitHub, so you can review or fork the full source.

Are there alternatives to codex-keysmith?

Yes. SkillsLLM lists many other CLI Tools skills you can browse and compare side by side. Open the CLI Tools category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh codex-keysmith against similar tools.

Comments (0)

No comments yet. Be the first to share your thoughts!

ui-ux-pro-max-skill

by nextlevelbuilder

12

An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.

119,92012,870Python
CLI Toolsai-skillsantigravity
View details

happy

by slopus

Mobile and Web client for Codex and Claude Code, with realtime voice, encryption and fully featured

23,4501,980TypeScript
CLI Tools
View details

claudecodeui

by siteboon

Use Claude Code, OpenCode, Cursor CLI, and Codex on mobile and web with CloudCLI (aka Claude Code UI). CloudCLI is a free open source webui/GUI that helps you manage your Claude Code session and projects remotely.

13,3941,866TypeScript
CLI Tools
View details

CRS-自建Claude Code镜像,一站式开源中转服务,让 Claude、OpenAI、Gemini、Droid 订阅统一接入,支持拼车共享,更高效分摊成本,原生工具无缝使用。

12,5471,869JavaScript
CLI Tools
View details

ccstatusline

by sirmalloc

🚀 Beautiful highly customizable statusline for Claude Code CLI with powerline support, themes, and more.

12,508545TypeScript
CLI Tools
View details

Developers Also Liked

Based on votes and bookmarks from developers who liked this skill

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI Agentsai-agentsanthropicclaude-code
View details
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI Agentsai-agentsbrainstorming
View details

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP Serversapisai-tools
View details

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI Agentsai-agentsanthropicclaude-code
View details

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI Agentsclaude-codeai-tools
View details
codex-keysmith — AI Skill for Claude Code | SkillTip