shared-memory SKILL.md skillA
shared-memory from jimyag/dotfiles is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add jimyag/dotfiles/shared-memory@git:20261018.2baf6d4Pins git:20261018.2baf6d4 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- jimyag/dotfiles
- Path
skills/shared-memory/SKILL.md- Versions recorded
- 1
- Latest version
- git:20261018.2baf6d4, committed Oct 18, 2026
- Size
- 13,929 bytes
- Repository stars
- 11
- License
- MIT
在新增、更新、更正、删除、同步或检索持久记忆时使用;包括用户要求记住或忘记、Agent 保存原生记忆及跨 Agent 复用,统一维护本地共享目录和格式。.
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
# 共享记忆
把可复用的结论保存为独立 Markdown 文件,供 Codex、Claude Code 和其他 Agent 检索。Skill 和脚本由 Chezmoi 管理;运行时记忆单独保存,不写进 dotfiles 仓库。
脚本为本 skill 下的 `scripts/memory.py`,使用 Python 3.10+ 标准库,支持 macOS、Linux;传入项目路径时还需要 Git 来识别仓库和 worktree。下方命令使用默认安装路径;skill 安装在其他位置时,使用实际路径。
## 检查待同步来源
每个会话首次处理非平凡任务时执行一次 `pending`,在项目中工作时传入 `--project`。它检查已登记来源的变化,同时发现 Codex、Claude 原生目录中尚未登记的来源,不导入内容。
```bash
python3 "$HOME/.agents/skills/shared-memory/scripts/memory.py" pending \
--project /absolute/path/to/project
```
`untracked` 表示发现了未登记来源,先 `track` 再审阅;Codex 跨项目来源登记为全局,Claude 新项目的 `scope` 为 `null`,核实实际项目后登记,不根据编码目录名猜路径。已登记的结果包含来源 `id`、`source`、`scope`、`content_hash`:`pending` 表示尚未审阅,`changed` 表示上次确认后有变化,`missing` 表示来源已消失。读取变化来源,检索共享库中相同事实,再按下文提炼、更新或删除;全部处理成功后,使用本次 `pending` 返回的 hash 确认:
```bash
python3 "$HOME/.agents/skills/shared-memory/scripts/memory.py" ack SOURCE_ID \
--expect-hash CONTENT_HASH
```
来源在审阅期间再次变化时,`ack` 拒绝确认,重新检查并审阅。`missing` 不等于用户要求忘记;来源文件消失可能只是迁移,确认影响后再决定是否删除共享事实。没有可复用变化也可以在审阅后确认;处理失败或尚未完成时不要 `ack`。
首次启用、发现 `untracked` 或遇到客户端提供的原生记忆路径时,用 `track` 登记 Markdown 文件、目录或 Codex SQLite 记忆数据库。登记范围只决定哪些项目的 `pending` 能看到来源,不决定提炼后事实的保存范围;重复登记不会清除上次确认的状态。
```bash
…Read the whole file at its exact version.
How to install
mdr add jimyag/dotfiles/shared-memory@sha256:f26994818cafd2a0The line at the top of this page pins the label git:20261018.2baf6d4, 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_qj6vynmnbd2jyqmh)
1 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on Oct 18, 2026.
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (13929 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
jimyag/dotfiles · 11 stars · license MIT · pushed 2026-10-20 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_qj6vynmnbd2jyqmh GET https://markdownregistry.com/api/v1/resolve?ref=jimyag/dotfiles/shared-memory GET https://markdownregistry.com/api/v1/blob/f26994818cafd2a0258c80eba8ab013ebd6081927695221aab024d7ca2c636a4
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: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.