by lokikill123
⚡ Cut 60-80% token cost for DeepSeek V4 Pro on Codex CLI. token-saver + memory skills with prefix-cache optimization.
# Add to your Claude Code skills
git clone https://github.com/lokikill123/codex-token-skillsGuides for using cli tools skills like codex-token-skills.
codex-token-skills is an open-source cli tools skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by lokikill123. ⚡ Cut 60-80% token cost for DeepSeek V4 Pro on Codex CLI. token-saver + memory skills with prefix-cache optimization. It has 78 GitHub stars.
codex-token-skills's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/lokikill123/codex-token-skills" and add it to your Claude Code skills directory (see the Installation section above).
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-token-skills against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
专为 DeepSeek V4 Pro 优化的 Codex skill,大幅降低 token 消耗并提升前缀缓存命中率。
DeepSeek V4 Pro 的前缀缓存机制:系统提示词 + 上下文文件越稳定,缓存命中率越高。如果你的 SKILL.md / AGENTS.md 频繁变动,每次对话都要重新处理全部上下文,浪费大量 token。
这两个 skill 的核心思路:
| 问题 | 解决方案 |
|---|---|
| 上下文频繁变动 → 缓存失效 | Skill 文件写好后冻结不动 |
| Codex 输出冗长 → token 浪费 | 强制极简输出,改完只说路径+done |
| 上下文压缩 → 丢失记忆 | 用文件做持久记忆,跨对话恢复 |
Smart 双模式:
实测预计省 60-80% token。
上下文窗口被压缩后,下次对话自动从 MEMORY.md 恢复:
每次仅消耗
~800 token,换来跨对话一致性。
# 克隆到 Codex skills 目录
git clone https://github.com/lokikill123/codex-token-skills.git
cp -r codex-token-skills/skills/* ~/.codex/skills/
# 重启 Codex 即可生效
或通过 skill-installer:
install-skill --repo lokikill123/codex-token-skills --path skills/token-saver
install-skill --repo lokikill123/codex-token-skills --path skills/memory
[system prompt] + [AGENTS.md] + [各 skill SKILL.md] + [user message]
^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
系统固定 这部分 skill 文件冻结不变 → 前缀缓存命中 → 省 50%+ token
关键原则:Skill 文件一次写定,永不修改。项目级动态内容放项目目录的 AGENTS.md,不放 skill 里。
token-saver + memory 同时激活,效果最大化~/.codex/AGENTS.md 中配置自动激活MIT