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.

Install it, pinned
mdr add lizhiyao/oh-my-knowledge/src/cli/AGENTS.md@git:20260903.08c59f3

Pins 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

The exact contents, by fingerprint
mdr add lizhiyao/oh-my-knowledge/src/cli/AGENTS.md@sha256:54dd64d8478faeb1

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

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_rkbvmmhgq22okypp.svg)](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.

versioncommittedcommitsizeaudit
git:20260903.08c59f3 latest2026-09-03 08c59f3 1,424 BA view

Audit of the latest version

A  14 of 14 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • 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

GitHub

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

omk SKILL.md skill
lizhiyao/oh-my-knowledge · .agents/skills/omk/SKILL.md · OMK(Observe. Measure. Know.)让 AI 应用的知识改动有据可依。观测真实表现,受控测量 prompt / RAG / skill / agent / workflow…
git:20261015.c1b712b · audit A · 23 stars
AGENTS.md AGENTS.md file
lizhiyao/oh-my-knowledge · AGENTS.md
git:20261013.3658fc9 · audit A · 23 stars
CLAUDE.md CLAUDE.md file
lizhiyao/oh-my-knowledge · CLAUDE.md
git:20260516.8539e80 · audit A · 23 stars
DESIGN.md DESIGN.md file
lizhiyao/oh-my-knowledge · DESIGN.md · Studio 当前实现的设计基线;品牌紫与专注阅读贯通外壳、观测列表、知识工作台和有明确证据边界的评测报告。
git:20261014.fed88aa · audit B · 23 stars
repo-answerer SKILL.md skill
lizhiyao/oh-my-knowledge · examples/agent-runtime/skills/repo-answerer/SKILL.md · Minimal repository answerer used as the control variant.
git:20260902.c0ab3ed · audit A · 23 stars
repo-navigator SKILL.md skill
lizhiyao/oh-my-knowledge · examples/agent-runtime/skills/repo-navigator/SKILL.md · Repository navigation skill for project-level runtime context.
git:20260619.dd3bb69 · audit A · 23 stars
echo-assistant SKILL.md skill
lizhiyao/oh-my-knowledge · examples/custom-executor/skills/echo-assistant/SKILL.md · Minimal skill used to demonstrate the custom executor protocol.
git:20260619.dd3bb69 · audit B · 23 stars
context-answerer SKILL.md skill
lizhiyao/oh-my-knowledge · examples/rag-eval/skills/context-answerer/SKILL.md · Minimal context answerer used as the control variant.
git:20260902.c0ab3ed · audit B · 23 stars
rag-answerer SKILL.md skill
lizhiyao/oh-my-knowledge · examples/rag-eval/skills/rag-answerer/SKILL.md · RAG answerer that only answers from supplied context.
git:20260619.dd3bb69 · audit A · 23 stars
release-checklist SKILL.md skill
lizhiyao/oh-my-knowledge · examples/skill-map-showcase/skills/release-checklist/SKILL.md · Minimal release checklist used as the control variant.
git:20260902.c0ab3ed · audit A · 23 stars
release-readiness SKILL.md skill
lizhiyao/oh-my-knowledge · examples/skill-map-showcase/skills/release-readiness/SKILL.md · Release readiness reviewer that turns a skill folder into a visible Skill Map.
git:20260619.dd3bb69 · audit A · 23 stars
AGENTS.md@src/eval-core AGENTS.md file
lizhiyao/oh-my-knowledge · src/eval-core/AGENTS.md
git:20260903.08c59f3 · audit A · 23 stars

Every file in lizhiyao/oh-my-knowledge

Other files named AGENTS.md@src/cli

AGENTS.md@src/cli AGENTS.md file
letta-ai/letta-code · src/cli/AGENTS.md
git:20260822.f4580e4 · audit A · 3,675 stars

Browse by kind, by grade A, or by owner.