Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add hanzhcn/laohan-skills --skill laohan-chushicodexgit clone --depth 1 https://github.com/hanzhcn/laohan-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/hanzhcn/laohan-skills/laohan-chushicodex)<a href="https://agentmods.dev/skills/hanzhcn/laohan-skills/laohan-chushicodex"><img src="https://agentmods.dev/badge/skills/hanzhcn/laohan-skills/laohan-chushicodex/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/hanzhcn/laohan-skills/laohan-chushicodex"><img src="https://agentmods.dev/badge/skills/hanzhcn/laohan-skills/laohan-chushicodex.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00117 | $0.02088 |
| Opus 5.5 | $0.00047 | $0.00835 |
| Sonnet 5.5 | $0.00023 | $0.00418 |
| Haiku 4.5 | $0.00012 | $0.00209 |
Grade A, and why
laohan-chushicodex scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 22d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 99 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Codex 轻量初始化
只建立能提高安全性、可执行性和验收质量的最小基线;不把个人模型偏好、插件清单、密钥、绝对路径或复杂工作流伪装成通用初始化。
选择模式
GLOBAL_SETUP:只在新装或重整 Codex 时执行一次
- 使用于全局
config.toml、globalAGENTS.md、profile 或客户端健康需要建立基线的场景。 - 执行
scripts/audit-codex-init.sh,先取得诊断快照。脚本调用版本与codex --strict-config doctor --json,仅列配置字段存在性,不读取/输出密钥字段或转储环境;自身不修改配置,doctor的网络/认证探测依当前CLI能力和既有授权,不能保证完全离线。输出含本机路径、Doctor脱敏报告和Git状态,分享前审阅。必需命令失败会保留原退出码、整体非0,不把“采集结束”当健康通过;旧CLI缺命令/参数记未验证,不静默降级。 - 变更前说明文件和理由,先核用户/项目已有授权;已授权普通动作继续,仅缺授权、费用或范围/权限实质扩大才确认,不重复索要已有许可。权限配置不因本skill推荐自动改变。
- 保留用户已有的有效配置;不因初始化删除 MCP、插件、
AGENTS.md、项目 trust 或历史偏好。
PROJECT_ONBOARDING:每个项目首次接入时执行一次轻量检查
- 不重做全局配置,也不复制全局
AGENTS.md。 - 当前环境已采用共享治理时,先走可达的laohan-devrules与laohan-chushihua真实接入入口,沿项目现有合同和验证;下方通用模板只用于尚未接入该体系的环境,不另造弱合同或第二真源。
- 只确认项目的运行时、包管理器/锁文件、最小验证命令、目录边界和验收条件;先实测,再把真实结果写入项目
AGENTS.md。 - 需要新建项目
AGENTS.md时只写项目事实,不复制 全局模板。
通用 global AGENTS.md
GLOBAL_SETUP中,若用户要求新建或替换通用 globalAGENTS.md,读取 global-agents-template.md。- 模板仅适合无既有全局规则的用户;它不包含人名、模型、MCP、插件、路径、项目命令或私人工作方式。
- 目标文件已经存在时,先比较并给出最小 diff;除非用户明确要求,不覆盖原文件。
六项最小基线
1. 先体检,再决定是否升级
- 由真实采集入口运行
codex --version与codex --strict-config doctor --json;严格参数与doctor能力先按当前help确认,不能仅用help成功代替配置/健康检查。记录CLI与Desktop App分别是什么版本,不能混称。 - 若版本落后,只报告版本和官方更新路径
codex update;不自动升级。先确认安装来源、更新影响与回滚条件。 - 用
codex doctor的运行时输出确认 approval/sandbox;配置文件文本只是补充快照,不能替代运行时证据。 - 若doctor或严格检查失败,先诊断受影响路径并保留非0/未验;不把采集器exit0、配置字段存在或CLI版本当业务健康。无关可执行子项继续。
2. 默认最小权限,不默认“全自动”
- 交互式开发的推荐基线是
approval_policy = "on-request"与sandbox_mode = "workspace-write";审查使用read-onlyprofile。 - 可选地建立
review、dev、deep三个 profile:只为权限边界和推理强度服务,不改模型、不塞环境变量。 - 不把
never、danger-full-access、--dangerously-bypass-approvals-and-sandbox、自动安装插件或 MCP 当作初始化默认值。 - 仅对用户已检查且信任的项目设置
trust_level = "trusted";未知仓库先保持未信任。
3. 让 AGENTS.md 分层且短
- 全局
~/.codex/AGENTS.md只保存跨项目、长期有效的协作偏好、安全边界和工具路由。 - 项目根
AGENTS.md只保存项目事实:启动/测试/格式化命令、目录边界、验收条件和不可违反的约束。 - 把长教程、历史记录和偶发排障移到项目文档;
AGENTS.md只保留执行时需要的内容。不要复制粘贴同一规则到全局和项目两处。 - 如果用户同时使用 Claude Code,先确认其既有同步规范;不能仅写 Codex 私有记录。
What ships with it
5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 22d ago Changed · +1 lines b286c84d4bc5
- 1mo ago Changed · +1 lines 55f6695480dd
- 2mo ago Changed · +1 lines 2fb341f00d1e
- 3mo ago First seen · 96 lines · 117 tokens per session scan A e1de23daf13e
laohan-chushicodex is a skill published in the GitHub repository hanzhcn/laohan-skills (17 stars, last pushed 2d ago), licensed MIT. It adds 117 tokens to every session and 2,088 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
laohan-chushicodex compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| laohan-chushicodexhanzhcn/laohan-skills | Skill | 17 | 2d ago | MIT | A | 117 | Codex |
| baijiahao-uploaddreammis/social-auto-upload | Skill | 17k | 4d ago | MIT | A | 49 | Claude Code, Codex |
| hupu-uploaddreammis/social-auto-upload | Skill | 17k | 4d ago | MIT | A | 42 | Claude Code, Codex |
| xiaohongshu-uploaddreammis/social-auto-upload | Skill | 17k | 4d ago | MIT | A | 95 | Claude Code, Codex |
| Email Marketing Command CenterLeoYeAI/openclaw-master-skills | Skill | 2.2k | 9d ago | MIT | A | 29 | Claude Code, Codex |
| Freelance EmpireLeoYeAI/openclaw-master-skills | Skill | 2.2k | 9d ago | MIT | A | 71 | Claude Code, Codex |
| Vibe Coding MasteryLeoYeAI/openclaw-master-skills | Skill | 2.2k | 9d ago | MIT | A | 61 | Claude Code, Codex |