Shifty-Eye-Games/claude-mods/tree/main/plugins/memory-guards
memory-guards
Claude의 메모 노트에서 위험한 명령으로 표시한 도구 호출을 가로채 거부하고, 이유와 안전한 대안을 설명하는 Claude Code 플러그인입니다.
이 mod 소개
memory-guards는 Shifty-Eye-Games/claude-mods 비공개 marketplace의 일부입니다. tool.call 훅(plugins/memory-guards/hooks/register.ts)을 등록해 Claude의 메모 노트가 경고하는 명령을 가로챕니다. 예를 들면 impeccable update --help, cloudflared를 통해 shiftyeyegames.com DNS를 라우팅하는 작업, cswap add 전에 실행하는 /logout이 있으며, 이를 차단하고 이유와 안전한 대안을 함께 제시합니다. claude plugin marketplace add Shifty-Eye-Games/claude-mods 다음에 claude plugin install memory-guards@claude-mods를 실행해 설치하고, /plugin 또는 ~/.claude/settings.json의 extraKnownMarketplaces로 자동 업데이트를 활성화합니다. 저장소는 비공개이므로 각 컴퓨터에 비대화형 GitHub 자격 증명(SSH 키 또는 저장된 HTTPS 자격 증명)이 필요합니다.
설치
먼저 작성자의 README에서 marketplace와 플러그인 이름을 확인하세요. 저장소 구조에 따라 명령어가 달라질 수 있습니다.
claude plugin marketplace add Shifty-Eye-Games/claude-mods claude plugin install memory-guards
원문 / README
claude-mods
Private Claude Code marketplace for Tuncer's mods: function-hook plugins that run inside every Claude Code session on his machines (MacBook Pro, MacBook Air, therig, the 5090 PC).
| Plugin | What it does |
| --- | --- |
| memory-guards | Refuses the footgun commands Claude's memory notes warn about (for example impeccable update --help, routing shiftyeyegames.com DNS through cloudflared, /logout before cswap add) and says why, with the safe alternative. |
| kb-health | Shows KB health in the status line on the machine that runs the KB. It stays quiet on machines without the KB snapshot job. |
| machine-tag | Prefixes session titles with the machine's emoji tag (💻 MBP, 🪶 Air, 🎮 Rig, 🔥 5090), so pinned sessions show which computer they run on. /machine-tag <emoji> <word> overrides it per machine. |
Install on a machine
claude plugin marketplace add Shifty-Eye-Games/claude-mods
claude plugin install memory-guards@claude-mods
claude plugin install kb-health@claude-mods
claude plugin install machine-tag@claude-mods
Then turn on auto-update: in /plugin, open Marketplaces, pick claude-mods and enable auto-update, or set it in ~/.claude/settings.json:
"extraKnownMarketplaces": {
"claude-mods": {
"source": { "source": "github", "repo": "Shifty-Eye-Games/claude-mods" },
"autoUpdate": true
}
}
Each session start then pulls main. No versions are set, so every commit is an update.
The repo is private, so each machine needs GitHub access without a prompt: an SSH key GitHub knows (Claude Code tries ssh -T [email protected] first), or stored HTTPS credentials (gh auth login then gh auth setup-git, or Git Credential Manager on Windows). Without them the clone and the updates fail silently and the machine keeps its last copy.
Machines that loaded these mods from local folders before must drop those folders from CLAUDE_CODE_PLUGIN_DIRS in ~/.claude/settings.json, or each mod loads twice.
Change a mod
- Edit it under
plugins/<name>/. - Check it:
claude plugin validate plugins/<name>andclaude plugin test plugins/<name>. - Push to
main. Versions are left unset on purpose, so each commit reaches every machine at its next session start.
How mods work, and the engine rules that bite, are in Claude's memory note on Claude Code mods.
Security
Auto-update is on, so whatever lands on main runs in every session on all four machines. Only org admins can push here (the org's default member permission is read). Keep it that way: never give anyone else write access.
