AGENTS.md@src/cliA
AGENTS.md@src/cli from lizhiyao/oh-my-knowledge is an AGENTS.md file: the standing instructions coding agents read in that repo.
mdr add lizhiyao/oh-my-knowledge/src/cli/AGENTS.md@git:20260903.08c59f3Pins git:20260903.08c59f3 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 14 of 14 checks passed
- Kind
- AGENTS.md file
- Repository
- lizhiyao/oh-my-knowledge
- Path
src/cli/AGENTS.md- Versions recorded
- 1
- Latest version
- git:20260903.08c59f3, committed Sep 3, 2026
- Size
- 1,424 bytes
- Repository stars
- 23
- License
- MIT
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# CLI 领域规则 本文件补充仓库根 `AGENTS.md`,适用于 `src/cli/`。CLI 是 oclif 交付入口,参数解析、帮助文档、退出码和业务调用应保持单一接线路径。 ## 领域约束 - 每个命令只通过 `await this.parse(Command)` 做一次 typed parse,不保留 legacy parser 或再次透传原始 argv。 - help 语言由 `resolveLang(process.argv)` 解析;`oclif/i18n.ts` 服务静态 help,`lib/i18n.ts` 服务运行期文案,两者不要合并。 - oclif 的 description/flags/args/examples 是 CLI 文档单一来源。修改后运行 `yarn build && yarn build:docs`。 - 业务测试优先使用 `test/helpers/run-command.ts`;只有真实 dispatcher、模块加载或独立进程边界才使用 `execFile`。 ## Code Review Rules - 必须拦截二次参数解析、公共退出码漂移或 stdout/stderr 契约混乱。安全路径:沿 oclif 单一路径实现,并保持成功为 `0`、业务失败为 `1`、参数校验失败为 `2`。 - 必须拦截把用户输入拼进 oclif description/flag/arg 文案,因为 help 会经 EJS 渲染。安全路径:静态 description 使用 `bilingual`,模板表达式只用于受控的 `examples[].command`。 - 必须拦截命令行为、双语 help 和生成文档之间的漂移。安全路径:补命令级接线测试,重建文档,并在行为依赖真实进程时运行隔离的生产入口验收。
Read the whole file at its exact version.
How to install
mdr add lizhiyao/oh-my-knowledge/src/cli/AGENTS.md@sha256:54dd64d8478faeb1The line at the top of this page pins the label git:20260903.08c59f3, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_rkbvmmhgq22okypp)
4 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on Sep 3, 2026.
Audit of the latest version
- pass: Size between 200 bytes and 200 KB (1424 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
lizhiyao/oh-my-knowledge · 23 stars · license MIT · pushed 2026-10-19 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_rkbvmmhgq22okypp GET https://markdownregistry.com/api/v1/resolve?ref=lizhiyao/oh-my-knowledge/src/cli/AGENTS.md GET https://markdownregistry.com/api/v1/blob/54dd64d8478faeb132733867d1394dd6218b338f025c99a00bf9acae1c1cf4f1
Your AI assistant 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.
Guides: how to write a good AGENTS.md · AGENTS.md vs CLAUDE.md · which agent file does what.
More from lizhiyao/oh-my-knowledge
Every file in lizhiyao/oh-my-knowledge