AGENTS.md@src/knowledgeA

AGENTS.md@src/knowledge 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/knowledge/AGENTS.md@git:20261108.d1437cc

Pins git:20261108.d1437cc 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/knowledge/AGENTS.md
Versions recorded
8
Latest version
git:20261108.d1437cc, committed Nov 8, 2026
First version recorded
Oct 17, 2026
Size
3,844 bytes
Repository stars
24
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

# Knowledge 领域规则

本文件补充仓库根 `AGENTS.md`,适用于 `src/knowledge/`。本域是知识建设与维护的伞形域:根目录通用 TypeScript 模块、`sources/`、`reviews/`、`relations/`、`entities/` 和 `entity-library/` 构成纯核心;`extraction/` 负责选定窗口、模型协议和输出接纳,`entity-linking/` 负责跨窗关联的摘要、prompt 与质量投影,`application/` 负责共用用例、关联执行与本地装配,`adapters/` 实现模型传输、来源读取与持久化,`artifacts/` 拥有知识载体生命周期。纯核心约束不扩展到这些执行子域;载体规则由最近的 `artifacts/AGENTS.md` 补充。

## 领域不变量

- 纯核心零宿主副作用:根目录通用 TypeScript 模块、`sources/`、`reviews/`、`relations/`、`entities/` 和 `entity-library/` 不读文件系统、网络、环境变量、时钟或进程状态,只依赖核心自身与 `zod`,不得反向依赖伞内执行子域。需要外部能力时只声明窄端口(如 `KnowledgeStore`、`EntityAnalysisStore`),由适配器实现。`test/architecture/import-boundaries.test.ts` 冻结这条边界。
- 执行子域保持单向依赖:应用流程消费适配器、提炼与关联机制;适配器消费提炼与关联的协议叶子。提炼与关联不得反向依赖应用或适配器,包括仅类型导入;关联执行与来源检查归应用用例,会话来源读取归适配器。运行时与仅类型依赖分别审计,不通过新增聚合入口或合并依赖图节点隐藏环。领域实现不得反向依赖 CLI 或 Studio。
- 修订不可变:知识条目、实体分析、组织库一律以 append-only 修订演进,写入携带 `expectedGeneration`/`expectedHeadRevisionId` 乐观并发与幂等 `requestId`;任何路径不得改写或丢弃历史修订。
- 身份红线:名称、路径、类型或字符串/向量相似度都不证明同一对象;跨窗口实体关联只经显式人工确认(`entities/links.ts` 的人审事件流),不做自动合并、不按时间先后裁决矛盾。
- 不确定性用显式字段表达(`identityStatus`、`uncertainties`、`context.unknowns`),观测信号不冒充已核实事实。
…

Read the whole file at its exact version.

How to install

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

The line at the top of this page pins the label git:20261108.d1437cc, 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_xnh3ir4c3bjuuhz6.svg)](https://markdownregistry.com/a/art_xnh3ir4c3bjuuhz6)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 8 versions of this file, between Oct 17, 2026 and Nov 8, 2026, about one every 3 days.

versioncommittedcommitsizeaudit
git:20261108.d1437cc latest2026-11-08 d1437cc 3,844 BA view · diff
git:20261106.81cdc742026-11-06 81cdc74 3,750 BA view · diff
git:20261104.fceb1822026-11-04 fceb182 3,677 BA view · diff
git:20261103.d757f3b2026-11-03 d757f3b 3,508 BA view · diff
git:20261030.a5aa8cf2026-10-30 a5aa8cf 3,514 BA view · diff
git:20261018.6765cd32026-10-18 6765cd3 3,313 BA view · diff
git:20261018.394db092026-10-18 394db09 3,292 BA view · diff
git:20261017.2de10862026-10-17 2de1086 2,401 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 (3844 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 · 24 stars · license MIT · pushed 2026-11-08 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_xnh3ir4c3bjuuhz6
GET https://markdownregistry.com/api/v1/resolve?ref=lizhiyao/oh-my-knowledge/src/knowledge/AGENTS.md
GET https://markdownregistry.com/api/v1/blob/72854ced25ed22a155d3e9fd211d497f9f927d81c86a0c4eb2245eb526c86c56

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…
git:20261107.0dedca2 · audit A · 24 stars
AGENTS.md AGENTS.md file
lizhiyao/oh-my-knowledge · AGENTS.md
git:20261107.d65336f · audit A · 24 stars
CLAUDE.md CLAUDE.md file
lizhiyao/oh-my-knowledge · CLAUDE.md
git:20260516.8539e80 · audit A · 24 stars
DESIGN.md DESIGN.md file
lizhiyao/oh-my-knowledge · DESIGN.md · Studio 当前实现的设计基线;品牌紫与专注阅读贯通外壳、观测列表、知识工作台和有明确证据边界的评测报告。
git:20261101.305b362 · audit B · 24 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 · 24 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 · 24 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 · 24 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 · 24 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 · 24 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 · 24 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 · 24 stars
AGENTS.md@src/cli AGENTS.md file
lizhiyao/oh-my-knowledge · src/cli/AGENTS.md
git:20260903.08c59f3 · audit A · 24 stars

Every file in lizhiyao/oh-my-knowledge

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