codex-token-skills

作者 lokikill123已验证

⚡ Cut 60-80% token cost for DeepSeek V4 Pro on Codex CLI. token-saver + memory skills with prefix-cache optimization.

109
Stars
11
Forks
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/lokikill123/codex-token-skills

快速入门

使用 codex-token-skills 等 Skills 的指南。

安全报告

已验证

上次扫描:—

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

README.md

⚡ Codex Token Skills

专为 DeepSeek V4 Pro 优化的 Codex skill,大幅降低 token 消耗并提升前缀缓存命中率。

Codex Skills License


为什么需要?

DeepSeek V4 Pro 的前缀缓存机制:系统提示词 + 上下文文件越稳定,缓存命中率越高。如果你的 SKILL.md / AGENTS.md 频繁变动,每次对话都要重新处理全部上下文,浪费大量 token。

这两个 skill 的核心思路:

问题解决方案
上下文频繁变动 → 缓存失效Skill 文件写好后冻结不动
Codex 输出冗长 → token 浪费强制极简输出,改完只说路径+done
上下文压缩 → 丢失记忆用文件做持久记忆,跨对话恢复

Skill 列表

🔧 token-saver — 强制省 token

Smart 双模式:

  • 简单任务(修 bug、改配置、装东西):禁止 preamble、禁止计划、禁止解释、禁止验证
  • 复杂任务(vibecoding、数据分析、架构设计):允许简短交流,但严格控制

实测预计省 60-80% token。

🧠 memory — 全局持久记忆

上下文窗口被压缩后,下次对话自动从 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 中配置自动激活
  • 如需 UI 开发配合,可搭配 mac-style-ui skill(见作者其他 repo)

License

MIT

常见问题

What is 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 109 GitHub stars.

Is codex-token-skills safe to use?

Yes. codex-token-skills 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-token-skills?

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).

Are there alternatives to codex-token-skills?

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.

评论 (0)

暂无评论,成为第一个分享想法的人!

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 工具ai-skillsantigravity
查看详情

happy

by slopus

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

23,4501,980TypeScript
CLI 工具
查看详情

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 工具
查看详情

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

12,5471,869JavaScript
CLI 工具
查看详情

ccstatusline

by sirmalloc

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

12,508545TypeScript
CLI 工具
查看详情

开发者还喜欢

基于喜欢此 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 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

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 服务器apisai-tools
查看详情

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 智能体ai-agentsanthropicclaude-code
查看详情

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 智能体claude-codeai-tools
查看详情