shared-memory
Skill39 starsChanged 3 months agoMITView on GitHub
Use when designing or migrating shared memory across bots and machines. Defines the 4-tier policy (T1 git-tracked shared / T2 machine-specific / T3 project-meetings / T4 per-bot WD) and Read-before-Edit + concurrent-write safety patterns derived from the vault SHARED-INDEX.md model.
- Reads credentials
2 other projects use a version of this.
Adopted by
Most recently taken up by
- Fei2-Labs/skill-genietheir own version, first seen Sep 24, 2026
- linggen/skillstheir own version, first seen Sep 24, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- Fei2-Labs/skill-genie★ 12same name
- linggen/skills★ 3same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository17 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- bootstrapSkill
- codex-exec-bridgeSkill
- create-botSkill
- create-discord-botSkill
- create-slack-botSkill
- helpSkill
- initSkill
- install-hooksSkill
- meetingsSkill
- promptSkill
- self-updateSkill
- setupSkill
- slack-bridgeSkill
- slack-configureSkill
- thiscode-agySkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 133
Use this skill to manage cross-machine, cross-bot shared memory.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill 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
shared-memory
사용 시점: 봇 2개 이상 운영 + 머신 1개 이상 + 회의 진행 시. 공유 메모리를 어디 두고 누가 쓰는지 결정해야 할 때.
4-tier 정책 (vault SHARED-INDEX.md 기반)
| Tier | 위치 (Obsidian vault 가정) | 위치 (plain markdown 가정) | 누가 쓰나 |
| T1 — git-tracked shared | <vault>/.claude-memory/shared/ | <repo>/shared-memory/ | 모든 봇·머신. cross-bot leak 인정 사실 |
| T2 — machine-specific | <vault>/.claude-memory/machine-mac/ 또는 machine-wsl/ | <repo>/machine-<host>/ | 해당 머신만. 경로·하드웨어 의존 |
| T3 — project-meetings | <vault>/.claude-meetings/<YYYY-MM-DD>-<topic>/ | <repo>/meetings/<YYYY-MM-DD>-<topic>/ | 회의 audience 봇들 (in-flight, 영구 기록) |
| T4 — per-bot WD | ~/.claude/projects/<encoded-WD>/memory/ | 동일 | 그 봇만 (개성·실수 복기, git untracked) |
T1 — 공유 메모리
구조
shared/
├── SHARED-INDEX.md # 인덱스 (한 줄씩 link)
├── feedback_<topic>.md # 봇 간 합의된 운영 규율
├── project_<name>.md # 현재 진행 프로젝트 상태
├── reference_<topic>.md # 외부 시스템 reference
└── design_<topic>.md # 시스템 토폴로지·설계SHARED-INDEX.md 형식
# Cross-Bot Memory Index
## Feedback (운영 규율)
- [<짧은 설명>](feedback_xxx.md) — 한 줄 요약
## Project (진행 상태)
- [<프로젝트>](project_xxx.md) — 현재 상태
## Reference (외부 시스템)
- [<reference>](reference_xxx.md) — 한 줄 요약세션 시작 시 본 인덱스를 로드 → 필요한 항목만 fetch (full file 읽기).
Read-before-Edit 규칙
같은 파일을 두 봇이 동시 edit 시 충돌. 안전 패턴:
- Read 먼저 (always)
- Edit 시 base SHA 확인 (git pull --rebase 후 작업)
- Append-only 우선 (한 줄 추가는 충돌 risk 최소)
- Lock 필요 시 (
.lock파일 또는flock)
T2 — 머신 특화
machine-mac/
├── MAC-INDEX.md
├── env-paths.md # /opt/homebrew/... 같은 머신 path
└── hardware-spec.mdcross-machine sync 시 본 폴더는 제외 (rsync exclude pattern).
T3 — 회의실 (project-meetings)
meetings skill 의 4-file 표준 적용. 자세히는 그 skill 참조.
T4 — per-bot WD memory
~/.claude/projects/<encoded-WD>/memory/
├── MEMORY.md # WD memory 인덱스
├── feedback_<topic>.md
└── ...<encoded-WD> 는 Claude Code 가 자동 encoding (예: <vault> → <encoded-WD>).
SessionStart hook 으로 본 인덱스 자동 주입.
분기 기준 — 어디에 쓸 지
사실 / 결정 사항
├─ 모든 봇 + 모든 머신 공유? ──→ T1 shared/
├─ 본 머신만 의존? ─────────→ T2 machine-<host>/
├─ 회의 in-flight? ───────────→ T3 meetings/<topic>/
└─ 봇 자기 개성·실수 복기? ──→ T4 per-bot WD memory사용자 vault 없는 경우 — plain folder fallback
본 plugin 의 wizard 가 사용자에게 묻기:
공유 메모리 위치:
(A) Obsidian vault 안 (`.claude-memory/shared/`)
(B) 별도 git 레포 폴더 (`shared-memory/`)
(C) 사용 안 함 (per-bot WD 만)(A) 가 default — 사용자 vault 가 있다면. (B) 가 fallback — 사용자가 Obsidian 안 쓰는 경우.
트러블슈팅
| 증상 | 원인 | 대응 |
| 같은 fact 가 두 봇에서 충돌 작성 | T1 동시 edit | git pull --rebase + append-only 우선 |
| WD memory 안 보임 | SessionStart hook 미설정 | ~/.claude/settings.json hooks 등록 확인 |
| 머신 sync 시 secrets 노출 | T2 에 .env 들어감 | .gitignore 에 .env 등록 + 신규 발급 권장 |
관련 자원
- 한국어 가이드: ../../docs/03-shared-memory.md
- vault SHARED-INDEX 실 예시:
<vault>/.claude-memory/shared/SHARED-INDEX.md - 회의실 skill: ../meetings/SKILL.md
How to Use This Skill
Use this skill to manage cross-machine, cross-bot shared memory. Handles memory index management, bot-specific vs. shared memory separation, and memory synchronization across multiple machines (Mac/WSL).
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.

