laohan-chushicodex

laohan-chushicodex is a skill for Codex from hanzhcn/laohan-skills. It costs 117 tokens per session (1,733 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; mentions AGENTS.md; mentions Codex.

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 1,733 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.01733
Opus 5 $0.00059 $0.00866
Sonnet 5 $0.00023 $0.00347
Haiku 4.5 $0.00012 $0.00173

Measured 12d ago against content hash e1de23daf13e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, 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 12d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/audit-codex-init.sh), 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 · 96 lines

How it starts

The opening of the file, as written. The whole thing — 96 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 doctor(运行时权限/健康信息)并另列配置文本;不联网、不写入、不读取配置中的密钥字段或转储完整环境。输出含本机路径、Doctor 摘要和 Git 状态,分享前先审阅。
  • 变更前说明将修改的文件和理由;涉及更新 CLI、安装插件/MCP、认证、联网、提交、发布或放宽权限时,等待用户明确确认。
  • 保留用户已有的有效配置;不因初始化删除 MCP、插件、AGENTS.md、项目 trust 或历史偏好。

PROJECT_ONBOARDING:每个项目首次接入时执行一次轻量检查

  • 不重做全局配置,也不复制全局 AGENTS.md
  • 只确认项目的运行时、包管理器/锁文件、最小验证命令、目录边界和验收条件;先实测,再把真实结果写入项目 AGENTS.md
  • 需要新建项目 AGENTS.md 时只写项目事实,不复制 全局模板

通用 global AGENTS.md

  • GLOBAL_SETUP 中,若用户要求新建或替换通用 global AGENTS.md,读取 global-agents-template.md
  • 模板仅适合无既有全局规则的用户;它不包含人名、模型、MCP、插件、路径、项目命令或私人工作方式。
  • 目标文件已经存在时,先比较并给出最小 diff;除非用户明确要求,不覆盖原文件。

六项最小基线

1. 先体检,再决定是否升级

  • 运行 codex --versioncodex doctorcodex --strict-config --help;记录 CLI 与 Desktop App 分别是什么版本,不能混称。
  • 若版本落后,只报告版本和官方更新路径 codex update;不自动升级。先确认安装来源、更新影响与回滚条件。
  • codex doctor 的运行时输出确认 approval/sandbox;配置文件文本只是补充快照,不能替代运行时证据。
  • doctor 或严格配置检查失败,先修复该问题,再添加任何优化。

2. 默认最小权限,不默认“全自动”

  • 交互式开发的推荐基线是 approval_policy = "on-request"sandbox_mode = "workspace-write";审查使用 read-only profile。
  • 可选地建立 reviewdevdeep 三个 profile:只为权限边界和推理强度服务,不改模型、不塞环境变量。
  • 不把 neverdanger-full-access--dangerously-bypass-approvals-and-sandbox、自动安装插件或 MCP 当作初始化默认值。
  • 仅对用户已检查且信任的项目设置 trust_level = "trusted";未知仓库先保持未信任。

3. 让 AGENTS.md 分层且短

  • 全局 ~/.codex/AGENTS.md 只保存跨项目、长期有效的协作偏好、安全边界和工具路由。
  • 项目根 AGENTS.md 只保存项目事实:启动/测试/格式化命令、目录边界、验收条件和不可违反的约束。
  • 把长教程、历史记录和偶发排障移到项目文档;AGENTS.md 只保留执行时需要的内容。不要复制粘贴同一规则到全局和项目两处。
  • 如果用户同时使用 Claude Code,先确认其既有同步规范;不能仅写 Codex 私有记录。

4. 让项目可复现地启动

  • 发现项目语言、包管理器、锁文件、版本声明和现有 CI;先读取,再执行安装。
  • 记录一个已在本机跑通的最小验证命令(例如 testlinttypecheck 或项目自己的合同检查),并说明所需运行时版本。
  • 不在初始化阶段替换包管理器、重写锁文件或安装“全家桶”依赖;缺失依赖时报告精确命令,获授权后执行。

Read the full file on GitHub · 96 lines

Files

What ships with it

4 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. 12d 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 (11 stars, last pushed 2d ago), licensed MIT. It adds 117 tokens to every session and 1,733 once invoked, about $0.0006 per session on Opus 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

Other skills, from other repositories

officecli-word-form

Use this skill to create fillable Word forms (.docx) with real Content Controls (SDT) + legacy FormField checkboxes + MERGEFIELD mail-merge placeholders + document protection. Trigger on: 'fillable form', 'form fields', 'content controls', 'SDT', 'word form', 'fill in', 'only editable fields', 'protect document'…

iOfficeAI/OfficeCLI · 224 tokens

officecli-data-dashboard

Use this skill to build a multi-element Excel dashboard — Dashboard sheet on open, multiple formula-driven KPI cards, multiple charts, sparklines, and conditional formatting — from CSV or tabular input. Trigger on: 'dashboard', 'KPI dashboard', 'analytics dashboard', 'executive dashboard', 'metrics dashboard', 'CSV to…

iOfficeAI/OfficeCLI · 157 tokens

douyin-upload

A workflow for using the sau command-line tool to log in to Douyin, the Chinese short-video platform, check account cookies, and publish videos or image-and-text posts.

dreammis/social-auto-upload · 93 tokens

kuaishou-upload

A workflow for using the sau command-line tool to log in to Kuaishou, a Chinese social media platform, check account cookies, and publish videos or image-and-text posts.

dreammis/social-auto-upload · 92 tokens

xiaohongshu-upload

A workflow for using the sau command-line tool to log in to Xiaohongshu, a Chinese social media platform, check account cookies, and publish videos or image-and-text posts.

dreammis/social-auto-upload · 95 tokens

skill-authoring

Author SKILL.md skills: frontmatter, validator limits, structure.

mateaix/mateclaw · 18 tokens