laohan-chushicodex

laohan-chushicodex is a skill for Codex from hanzhcn/laohan-skills. It costs 117 tokens per session (2,088 once invoked), scanned A, original, MIT.

A lightweight setup workflow for a new or reorganized Codex installation and for onboarding Codex to a project. It checks versions, configuration, permissions, project commands, directory boundaries, and acceptance conditions.

In plain words
What is it for?
Use it to audit Codex, establish or review AGENTS.md instructions, confirm project verification commands, and prepare a shareable setup baseline.
Why use it?
It creates a small, repeatable baseline without overwriting useful existing settings or granting more access than needed.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Claude Code; reads ~/.codex paths; mentions AGENTS.md.

Good fit Use it to audit Codex, establish or review AGENTS.md instructions, confirm project verification commands, and prepare a shareable setup baseline.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hanzhcn/laohan-skills/laohan-chushicodex
Install

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.

Any agent
npx skills add hanzhcn/laohan-skills --skill laohan-chushicodex
Clone the repo
git clone --depth 1 https://github.com/hanzhcn/laohan-skills

Made for: Codex.

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

agentmods badge for laohan-chushicodex

README.md
[![agentmods](https://agentmods.dev/badge/skills/hanzhcn/laohan-skills/laohan-chushicodex/github.svg)](https://agentmods.dev/skills/hanzhcn/laohan-skills/laohan-chushicodex)
Your own site
<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.

agentmods 80×15 button for laohan-chushicodex

Your own site · 80×15
<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>
Per session 117 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,088 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 22d ago against content hash b286c84d4bc5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/audit-codex-init.sh, tests/test_audit_codex_init.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

laohan-chushicodex/SKILL.md · 99 lines

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、global AGENTS.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 中,若用户要求新建或替换通用 global AGENTS.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-only profile。
  • 可选地建立 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 私有记录。

Read the full file on GitHub · 99 lines

Files

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.

Changes

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.

  1. 22d ago Changed · +1 lines b286c84d4bc5
  2. 1mo ago Changed · +1 lines 55f6695480dd
  3. 2mo ago Changed · +1 lines 2fb341f00d1e
  4. 3mo ago First seen · 96 lines · 117 tokens per session scan A e1de23daf13e

Subscribe to this mod's changes

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.

Related

laohan-chushicodex compared with skills from other repositories

laohan-chushicodex next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
laohan-chushicodexhanzhcn/laohan-skillsSkill172d agoMITA117Codex
baijiahao-uploaddreammis/social-auto-uploadSkill17k4d agoMITA49Claude Code, Codex
hupu-uploaddreammis/social-auto-uploadSkill17k4d agoMITA42Claude Code, Codex
xiaohongshu-uploaddreammis/social-auto-uploadSkill17k4d agoMITA95Claude Code, Codex
Email Marketing Command CenterLeoYeAI/openclaw-master-skillsSkill2.2k9d agoMITA29Claude Code, Codex
Freelance EmpireLeoYeAI/openclaw-master-skillsSkill2.2k9d agoMITA71Claude Code, Codex
Vibe Coding MasteryLeoYeAI/openclaw-master-skillsSkill2.2k9d agoMITA61Claude Code, Codex