laohan-chushicodex skillA
laohan-chushicodex is agent-read markdown (skill) from hanzhcn/laohan-skills: 为新安装或待整顿的 Codex 做轻量初始化:体检版本与配置、建立最小权限边界、整理分层 AGENTS.md、确认项目验证命令,并留下可重复的任务闭环。Use when 用户说"初始化 Codex"、"新装 Codex 怎么配置"、"Codex 配置体检"、"建立 AGENTS.md"、"给项目接入 Codex",或要把 Codex 的配置做成可分享的最小基线。.
Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.
What the file says
# 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` 时只写项目事实,不复制 [全局模板](references/global-agents-template.md)。 ## 通用 global `AGENTS.md` - `GLOBAL_SETUP` 中,若用户要求新建或替换通用 global `AGENTS.md`,读取 [global-agents-template.md](references/global-agents-template.md)。 - 模板仅适合无既有全局规则的用户;它不包含人名、模型、MCP、插件、路径、项目命令或私人工作方式。 - 目标文件已经存在时,先比较并给出最小 diff;除非用户明确要求,不覆盖原文件。 ## 六项最小基线 ### 1. 先体检,再决定是否升级 - 运行 `codex --version`、`codex doctor` 与 `codex --strict-config --help`;记录 CLI 与 Desktop App 分别是什么版本,不能混称。 - 若版本落后,只报告版本和官方更新路径 `codex update`;不自动升级。先确认安装来源、更新影响与回滚条件。 - 用 `codex doctor` 的运行时输出确认 approval/sandbox;配置文件文本只是补充快照,不能替代运行时证据。 …
Read the whole file at its exact version.
How to install
mdr add hanzhcn/laohan-skills/laohan-chushicodex@git:20260812.84bd329mdr add hanzhcn/laohan-skills/laohan-chushicodex@sha256:e1de23daf13eb99fPin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.
[](https://markdownregistry.com/a/art_sfvz6mdrpi2iqben)
1 badge views in 30 days
Versions
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260812.84bd329 latest | 2026-08-12 | 84bd329 | 6,390 B | A | view · diff |
| git:20260812.224c50c | 2026-08-12 | 224c50c | 5,462 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (6390 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
hanzhcn/laohan-skills · 11 stars · license MIT · pushed 2026-09-20 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_sfvz6mdrpi2iqben GET https://markdownregistry.com/api/v1/resolve?ref=hanzhcn/laohan-skills/laohan-chushicodex GET https://markdownregistry.com/api/v1/blob/e1de23daf13eb99fbb489f9fc3aca163deb9a19ca6225005dac6298c630e1c66
Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.