Mythos-Skills
AGENTS.md4 starsChanged 7 months agoMITView on GitHub
红线 G19;完整手册:docs/_shared/CODEX_PERMISSION_APPROVAL_RUNBOOK.md §10。 当内嵌补丁在读取首个目标前以 helper_unknown_error: setup refresh had errors 失败时: 1. MUST 读取 .codex/.sandbox/setup_error.json 与当日 sandbox 日志并分类;不得把 helper 初始化失败归因于仓库或补丁。 2. 若日志含 write ACE grant failed / SetNamedSecurityInfoW failed: 5,MUST 先使用专用 patch-only 模式完成当前精确变更:codex.ps1 --codex-run-as-apply-patch <complete-utf8-patch>。 3. MUST 在每个补丁后执行目标 diff 与 diff check。 4. MUST NOT 使用任意 shell 写文件、关闭 sandbox、扩大 writable root,或把退出、重启、重开任务作为默认恢复方案。 5. 持久 ACL 修改 MUST 获得用户对精确根目录的显式批准;SID 必须从当前已知良好 writable root 动态识别,禁止硬编码。 6. patch-only 成功只代表当前落盘恢复;只有 Desktop 内嵌补丁复验成功,才可宣称 helper 永久恢复。 # Project Rules (auto-synced from codex_standard) 激活标志:本项目 .ai/PROJECT_ROUTING.yaml;权威规范:`X:\workspace\A
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,774 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repositoryOne other file it gives its agents.
- plan-forgeSkill
The file
We split this AGENTS.md into the rules it gives an agent
11 rules. About 0 are common, 10 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 5
MUST 读取 .codex/.sandbox/setup_error.json 与当日 sandbox 日志并分类;不得把 helper 初始化失败归因于仓库或补丁。
- Distinctive: line 7
MUST 在每个补丁后执行目标 diff 与 diff check。
- Distinctive: line 8
MUST NOT 使用任意 shell 写文件、关闭 sandbox、扩大 writable root,或把退出、重启、重开任务作为默认恢复方案。
- Distinctive: line 21
Every non-trivial verification MUST follow this order:
- Distinctive: line 25
If no mapping exists, create or update the project test-scenario index first.
- Distinctive: line 27
Run the smallest static proof first.
- Distinctive: line 29
If static evidence already disproves correctness, stop and fix before broader tests.
- Distinctive: line 31
Run only the smallest sufficient tests in this order:
- Distinctive: line 45
If any of the four are missing, the verification is incomplete.
- Distinctive: line 67
test file -> business path
- Distinctive: line 69
when to run -> failure mode Without this index, test selection becomes improvisation.
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Project Rules (auto-synced from codex_standard)
红线 G19;完整手册:
docs/_shared/CODEX_PERMISSION_APPROVAL_RUNBOOK.md§10。 当内嵌补丁在读取首个目标前以helper_unknown_error: setup refresh had errors失败时:
- MUST 读取
.codex/.sandbox/setup_error.json与当日 sandbox 日志并分类;不得把 helper 初始化失败归因于仓库或补丁。 - 若日志含
write ACE grant failed/SetNamedSecurityInfoW failed: 5,MUST 先使用专用 patch-only 模式完成当前精确变更:codex.ps1 --codex-run-as-apply-patch <complete-utf8-patch>。 - MUST 在每个补丁后执行目标 diff 与 diff check。
- MUST NOT 使用任意 shell 写文件、关闭 sandbox、扩大 writable root,或把退出、重启、重开任务作为默认恢复方案。
- 持久 ACL 修改 MUST 获得用户对精确根目录的显式批准;SID 必须从当前已知良好 writable root 动态识别,禁止硬编码。
- patch-only 成功只代表当前落盘恢复;只有 Desktop 内嵌补丁复验成功,才可宣称 helper 永久恢复。
Project Rules (auto-synced from codex_standard)
verification
Fixed Test Execution Protocol
Universal protocol for turning "we tested it" into a repeatable, reviewable method.
Iron Law
Do not invent the test method mid-task. Map the change to a fixed path, then execute that path.
Required Order
Every non-trivial verification MUST follow this order:
- MAP
- Identify the affected module, contract, and user path.
- Map them to the concrete test files or validation commands.
- If no mapping exists, create or update the project test-scenario index first.
- STATIC
- Run the smallest static proof first.
- Examples: import check, lint, source assertion, route/config assertion, schema/contract check.
- If static evidence already disproves correctness, stop and fix before broader tests.
- LAYERED
- Run only the smallest sufficient tests in this order:
- Unit / logic
- Integration / API / orchestration
- E2E / page / browser
- Expand scope only when the previous layer passes but does not yet cover the risk.
- Run only the smallest sufficient tests in this order:
- RUNTIME
- Collect runtime evidence tied to the real failure mode.
- Health checks, page entry checks, or smoke endpoints are supporting evidence only, not final proof by themselves.
Acceptance Record
A verification is valid only if it records all four:
- Change path — what changed
- Test path — which test file or command covers it
- Risk alignment — what failure mode it proves or disproves
- Result — pass/fail with key output summary If any of the four are missing, the verification is incomplete.
Forbidden Moves
- Treating
HTTP 200as full verification - Running broad suites before mapping the affected path
- Mixing unrelated full-suite results into a focused conclusion
- Using a single giant command when a smaller layered proof exists
- Verifying frontend-only changes with backend-only evidence, or the reverse
Frontend Rule
For frontend-affecting work, prefer:
- lint / type / route assertion
- targeted browser test file or grep subset
- concrete page entry proof
- backend contract proof only if the UI depends on it
Backend Rule
For backend logic or orchestration work, prefer:
- import / source assertion
- targeted unit subset
- targeted integration or API subset
- health/debug/runtime proof
- browser proof only if user-visible behavior changed
Project Index
Each project SHOULD keep a TEST_SCENARIOS.md (or equivalent) that maps:
- test file -> business path
- command -> scope
- when to run -> failure mode Without this index, test selection becomes improvisation.
§6 Test Agent Isolation
红线 G17 (见 RED_LINES_CATALOG.md) Full rules: see .codex/protocols/ directory
Grand Orchestrator Self-Check
- Sync Source: X:\workspace\AIStandard\codex_standard
- Check Command:
pwsh X:\workspace\AIStandard\codex_standard\generators\sync-engine.ps1 -ProjectPath . -Status - Sync Command:
pwsh X:\workspace\AIStandard\codex_standard\generators\sync-engine.ps1 -ProjectPath . -Write -AutoApply - Rule: Before starting any task, run -Status to check if sync is needed. If out-of-date, suggest user run sync.
<!-- AI-ROUTING-V1 -->AI 模型路由治理(workspace 统一 v1)
激活标志:本项目
.ai/PROJECT_ROUTING.yaml;权威规范:X:\workspace\AIStandard\codex_standard\universal\ai_model_routing.md(数据:同目录routing\*.yaml)。本节为执行要点,完整矩阵/评分/降级链见权威规范。
每次任务第一个动作:输出 ROUTE 行,并追加一条 JSON 到 .codex/runs/routing/<YYYYMMDD>.ndjson(目录不存在则先创建):
ROUTE: model=<别名> reasoning=<low|medium|high> risk=R<n> complexity=C<n> context=X<n> parallel=P<n> agents=<k> gate=<-|rev|MMPI>角色别名(物理模型见 model-aliases.yaml,换代只改数据不改规则):MODEL_EXPLORER(luna/low,搜索提取时间线)/ MODEL_ANALYST(terra/low,多文件阅读小改)/ MODEL_ENGINEER(sol/medium,开发重构)/ MODEL_REVIEWER(sol/high,审查与 R3 独立 gate)/ MODEL_ARCHITECT(astra,架构与 R4 最终 gate)。
执行铁律:
- Risk Floor 优先于 Complexity;R4(本项目高危项见 overlay)最终结论/动作必须
MODEL_ARCHITECT(Astra)或人工,缺位挂起不降级。 - ROUTE_MISMATCH 拦截:当前会话模型低于矩阵要求 → 只许取证(读码/搜索/整理),禁止宣布最终结论或执行最终动作,必须提示切换模型或人工裁决。
- R3/R4 触发 MMPI(暂停 AI 生成 → 跨模型独立审查 → 人工解锁);R2+ 结论必须附可回放证据(
path:line/cmd#hash),证据不足不得宣布完成。 - 升级纪律:同级 2 次无新证据 → 升一级并把 prompt 重构为 Task Packet;连续 2 次升级无进展 → 熔断停止转人工,禁止烧额度原样重试。
- 大上下文先压缩(定位 → 精确 read → diff → packet)再给强模型;禁止全量日志/全量测试输出进上下文。
- 用户 override 服从,但第 1/2/3 条安全规则不可被成本偏好覆盖。
<!-- /AI-ROUTING-V1 -->Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

