AGENTS.md@src/studioA
AGENTS.md@src/studio 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/studio/AGENTS.md@git:20261013.c1ba004Pins git:20261013.c1ba004 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/studio/AGENTS.md- Versions recorded
- 11
- Latest version
- git:20261013.c1ba004, committed Oct 13, 2026
- First version recorded
- Sep 3, 2026
- Size
- 5,636 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
# Studio 领域规则 本文件补充仓库根 `AGENTS.md`,适用于 `src/studio/`。Studio 只消费稳定的领域投影,不应重新解释评测或观测语义。 ## 渲染与查询边界 - Studio 应用页面统一向 Next.js 收敛;手写 HTML 渲染层已删除,新页面不再增加它。API、SSE 按各自职责维护,不为迁移页面而复制领域查询。 - view-models 仅存放类型契约;泳道布局、证据引用与活动快照的运行时计算放在 application 中,HTTP 与 React 消费同一实现;application 不得依赖 http 或 web,view-models 不得反向依赖这些层或 application。 - 客户端组件(`'use client'`)按值 import 的模块会进浏览器 chunk,因此其运行时依赖闭包不得触达 Node 宿主能力;只是取类型就用 `import type`,该边会被 TS 擦除、不算闭包成员。口径由 `test/architecture/studio-client-runtime-closure.test.ts` 钉住;`next build` 里的报错只是同一件事的下游后果,不能当防线用。 - Studio 的具名导出必须有按名导入它的消费者:`export` 是对外承诺,没有消费者的承诺只是没人能兑现的表面积。口径由 `test/architecture/studio-export-consumers.test.ts` 钉住,消费者集合是 `src`/`test`/`scripts`/`examples` 全量(package exports 没有 Studio 子路径,仓内收窄不算破坏对外契约);只有 Next.js 在 `web/app/**` 按约定读取的导出(`metadata`、`dynamic` 等)按「名字+位置」豁免,同一个名字放在 `app` 外照样判红。`no-unused-vars` 在 `--max-warnings 0` 下确实拦得住未使用的局部,但它把 `export` 本身算作使用,所以零消费者的导出对 lint 与编译器都不可见(`noUnusedLocals` 还是 false,`tsc --noEmit` 又排除 `src/studio/web`),静态检查不会替你守这条;修法只有删声明和补真实调用方两种,不加豁免名单。 - Knowledge 页面与 API 共用 application 查询入口。缓存由服务实例持有,目录按请求解析,返回值不得暴露缓存内部的可变引用。 - 清理旧渲染器前检查实际调用者;仍服务于调试入口的实现不算死代码。具体迁移路由与剩余工作记录在 PR,不在本规则中维护易过期的路由清单。 ## 领域约束 …
Read the whole file at its exact version.
How to install
mdr add lizhiyao/oh-my-knowledge/src/studio/AGENTS.md@sha256:68848b5a3254480fThe line at the top of this page pins the label git:20261013.c1ba004, 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_7wbjyyszq6abs4zp)
5 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 11 versions of this file, between Sep 3, 2026 and Oct 13, 2026, about one every 4 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261013.c1ba004 latest | 2026-10-13 | c1ba004 | 5,636 B | A | view · diff |
| git:20260922.16cd1ad | 2026-09-22 | 16cd1ad | 5,737 B | A | view · diff |
| git:20260915.1662dbb | 2026-09-15 | 1662dbb | 5,265 B | A | view · diff |
| git:20260914.15fdb27 | 2026-09-14 | 15fdb27 | 4,682 B | A | view · diff |
| git:20260914.f43fdca | 2026-09-14 | f43fdca | 3,772 B | A | view · diff |
| git:20260913.af18c16 | 2026-09-13 | af18c16 | 3,381 B | A | view · diff |
| git:20260913.328766c | 2026-09-13 | 328766c | 3,333 B | A | view · diff |
| git:20260910.6f929e9 | 2026-09-10 | 6f929e9 | 3,324 B | A | view · diff |
| git:20260910.256ad8e | 2026-09-10 | 256ad8e | 3,217 B | A | view · diff |
| git:20260909.7a703fe | 2026-09-09 | 7a703fe | 1,153 B | A | view · diff |
| git:20260903.08c59f3 | 2026-09-03 | 08c59f3 | 1,101 B | A | view |
Audit of the latest version
- pass: Size between 200 bytes and 200 KB (5636 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 · 24 stars · license MIT · pushed 2026-11-08 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_7wbjyyszq6abs4zp GET https://markdownregistry.com/api/v1/resolve?ref=lizhiyao/oh-my-knowledge/src/studio/AGENTS.md GET https://markdownregistry.com/api/v1/blob/68848b5a3254480f77346dd305890faa4a371c42b6cd76b1badefa3c42a0404f
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