codex-skills-agentmd-obsidian
AGENTS.md3 starsChanged 2 months agoMITView on GitHub
Use physically separate local Obsidian vaults: Never use Basic Memory MCP or save full chat logs, credentials, passwords, API keys, tokens, or other sensitive data. Work memory is the default. Access LifeVault only when the current request explicitly concerns private life, health, personal plans, journal, or personal ideas. General requests such as "读取记忆库", "继续上次", "每日总结", and "收工更新" refer to work memory unless private context is explicit. Do not create cross-vault wikilinks, embeds, Bases queries, or shared inboxes; use plain text…
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,439 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 repository11 other files it gives its agents.
- asr3601-cross-branch-portingSkill
- asr3601-lvgl-firmware-triageSkill
- asr3601-project-onboardSkill
- asr3601-protocol-branch-matrixSkill
- asr3602-local-build-flashSkill
- asr360x-bug-delivery-orchestratorSkill
- catstudio-log-extractorSkill
- obsidian-fix-pattern-memorySkill
- skill-usage-trackerSkill
- zentao-bug-resolverSkill
- zentao-bug-triageSkill
The file
We split this AGENTS.md into the rules it gives an agent
10 rules. About 1 is common, 6 are distinctive, and 3 are very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Use physically separate local Obsidian vaults:
- Common: line 16
Never use Basic Memory MCP or save full chat logs, credentials, passwords, API keys, tokens, or other sensitive data.
- Very specific: line 34
Search priority: fix-patterns/, projects/, learning/topics/, notes/, people/, then agent/.
- Distinctive: line 42
Read-only lookup: use current context and live source.
- Very specific: line 49
If a required active skill is not exposed, read %USERPROFILE%\.codex\skills\<skill-name>\SKILL.md.
- Distinctive: line 55
Run the controller once directly, with no external preflight or post-success verification, and reply concisely.
- Distinctive: line 57
If the controller stops or fails, report the failed stage, exact error, known side effects, and required user decision, then wait.
- Distinctive: line 81
After changes to global Skills, routing indexes, project-context generators, Vault schemas, or other control/knowledge architecture, and …
- Very specific: line 94
Create new temporary scripts, fixtures, generated C files, executables, and logs under .codex-project/validation/<task-or-bug>/.
- Distinctive: line 95
Before committing, inspect the staged paths and exclude task-local validation artifacts.
≈ “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
Codex Global Instructions
Working Agreements
- Respond in Simplified Chinese unless the user requests another language. Keep code, commands, paths, logs, and technical terms in their original language as needed.
- Complete authorized work through the relevant verification. Resolve routine implementation choices from context; ask only when missing information materially changes the target, result, or permitted action. Reuse authorization already given for the same action and scope.
- State the outcome, supporting evidence, and remaining limitations concisely. Scale verification to the change; repeat or broaden passing checks only after a change, failure, or unresolved concern.
Privacy And Memory Access
Use physically separate local Obsidian vaults:
- Work:
%USERPROFILE%\Documents\Obsidian\CodexVault; memory root:Codex/. - Private life:
%USERPROFILE%\Documents\Obsidian\LifeVault.
Never use Basic Memory MCP or save full chat logs, credentials, passwords, API keys, tokens, or other sensitive data.
Work memory is the default. Access LifeVault only when the current request explicitly concerns private life, health, personal plans, journal, or personal ideas. General requests such as "读取记忆库", "继续上次", "每日总结", and "收工更新" refer to work memory unless private context is explicit. Do not create cross-vault wikilinks, embeds, Bases queries, or shared inboxes; use plain text references only when unavoidable. Record health observations and named sources without treating AI inference as medical fact.
For both vaults, access permission and evidence status are independent:
| Field | Meaning |
codex_access: read | Read/summarize only; editing requires explicit file-level authorization. |
codex_access: propose | Draft suggestions; changing an existing note requires explicit approval. |
codex_access: manage | Create and maintain notes within the request's scope. |
trust: canonical | User-controlled source of truth. |
trust: verified | Checked against evidence. |
trust: derived | Synthesized from named sources. |
trust: working | Unverified draft or observation. |
Prefer conversation and workspace evidence. Do not scan the whole vault or consult memory for ordinary fixes. Automatic lookup is limited to Codex/fix-patterns/ for cross-branch/version, similar/regression, or clearly identified log/error cases: search 1-3 terms and stop on no match. Broader work-memory lookup requires an explicit request or necessary cross-session context.
Search priority: fix-patterns/, projects/, learning/topics/, notes/, people/, then agent/. Read at most three relevant notes unless a broader review is requested. For "根据记忆" or "读取记忆", rank matches and read the top three when available, without unrelated filler. These phrases authorize lookup only.
Project And Skill Routing
Use current-task skill descriptions. For ASR360x, project AGENTS.md records special routes; branch profiles and live source provide configuration and identity. Other projects may keep their own .codex-project/index.md routing. Follow the matching route without repeating a domain classifier. Consult %USERPROFILE%\.codex\skills-index\index.md only if local routing is missing or unclear. Keep specialist procedures in their owning skill.
- ASR stable rules/navigation: minimal
AGENTS.mdand optional project-owned.codex-project/local.md. Preserve specialized documents containing project-specific content. - ASR identity: live Git and source; build parameters: confirmed branch profile; external mappings: existing private project map.
.codex-project/variant.mdis a generated view. After a branch switch, prepare the recorded configuration once; build/release controllers do this internally. - Read-only lookup: use current context and live source; refresh full identity or check tool health only when evidence is missing or a tool fails.
- Local source edits: check branch, HEAD, and dirty state once; preserve unrelated changes and follow the implementation skill's Fast Fix procedure.
- Cross-branch, protocol, build, flash, release, device, or external-system work: use the owner and let it refresh the stale identity it needs. Reuse its verification and result receipt; do not repeat controller-owned checks outside the controller. Route bug-system access and remote writes to their owners.
- Fix plus formal/FOTA-test delivery: perform narrow source checks before the focused commit, then hand directly to
asr3602-fota-pair-release. Its sequential T/F builds supply full build evidence; do not add a third standalone build.
Local snapshots and memory operations do not authorize changes in other branches/projects, branch switches, Git commits/pushes, device actions, releases, or external writes. Skills guide execution within the user's authorized scope; they do not expand it.
If a required active skill is not exposed, read %USERPROFILE%\.codex\skills\<skill-name>\SKILL.md. Use %USERPROFILE%\.codex\active-projects.json for cross-project audit targets. Keep active personal skills flat under %USERPROFILE%\.codex\skills and inactive skills under %USERPROFILE%\.codex\skills.disabled.
Quick Release Mode
For ASR3601/ASR3602/360x, the exact phrase 快速出版本 selects Quick Release Mode, including the release stage of a composite request. Use the formal-release owner/controller confirmed by project AGENTS or applicable project routing; for akq-firmware-release, use its Quick Release Mode. If no owner/controller is confirmed, ask instead of borrowing another project's script.
Run the controller once directly, with no external preflight or post-success verification, and reply concisely. Preserve its built-in gates. The modifier grants no additional authorization for commits, staging, stashing, discards, flashing, Zentao writes, overwrites, gate bypasses, or recovery.
If the controller stops or fails, report the failed stage, exact error, known side effects, and required user decision, then wait. Do not automatically diagnose, retry, resume, change parameters, clean up, or continue.
Memory Recording
After a completed behavior-changing code, configuration, or resource fix, use obsidian-fix-pattern-memory to maintain one canonical note under the work root's fix-patterns/. Include keywords, target project/version, symptoms/log signatures, root cause, key files/functions, fix approach, verification, and cautions. Static/build-only results remain working evidence, never device/platform/QA verification.
Merge high-confidence repeats into one root-cause note with per-target records; keep ambiguous matches separate or ask before merging. Do not auto-record explanations, formatting/comments, reverted experiments, temporary diagnostics, environment cleanup, or changes the user says not to record. A lookup that leads to an actual fix follows the normal recording rule.
Work routes, relative to the work memory root:
| Content | Destination |
| Daily/weekly technical review | reviews/daily/YYYY-MM-DD.md / reviews/weekly/YYYY-Www.md |
| New material / reusable knowledge | learning/inbox/ / learning/topics/ |
| Technical ideas / project state and stable pointers | ideas/ / projects/ |
| Work people context / reusable workflows | people/ / notes/ |
| Pending work / unresolved issues | agent/TODO.md / agent/open-loops.md |
For explicitly requested private records, use LifeVault's journal/, health/, plans/ (including career, quarterly, yearly), ideas/, decisions/ (including purchases), and reviews/weekly/.
Capture new material first, consolidate during review, and promote only reusable knowledge to learning/topics/. Reuse templates and routing before creating a daily/weekly-note Skill. At important-task closeout, briefly identify memory files changed, or why no fix-pattern was written; small one-off tasks need no memory update.
Architecture Maintenance
After changes to global Skills, routing indexes, project-context generators, Vault schemas, or other control/knowledge architecture, and for explicit architecture audits, run the read-only gate:
python -X utf8 "$env:USERPROFILE\.codex\scripts\architecture_audit.py" all --skip-life-vaultOrdinary firmware fixes/builds/releases use their owner gates. After broad architecture changes, create a self-verifying control/work-Vault/project-context snapshot using pwsh -File "$env:USERPROFILE\.codex\scripts\create_architecture_snapshot.ps1" with a -SourceSpec that excludes LifeVault.
Local Validation Scripts
Applies to all repositories, branches, and worktrees:
- Temporary Python tests, regression checks, and diagnostic scripts created for a task are local validation tools; do not stage or commit them unless the user explicitly requests those files.
- Create new temporary scripts, fixtures, generated C files, executables, and logs under
.codex-project/validation/<task-or-bug>/. Do not add temporary validation scripts totools/lv_utils/. - Before committing, inspect the staged paths and exclude task-local validation artifacts. Do not use force-add to bypass ignore rules without an explicit request to commit those files.
- Preserve tracked production tests and tools. Do not delete, untrack, or discard them automatically; existing tracked temporary tests require explicit cleanup authorization.
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.

