/dotfiles:agent-memory-repofrom dotfiles
Persists Claude Code's memory across sessions using a separate local git repo following the Agent Memory Repo spec. Invoke to save or recall information.
Ships in dotfiles. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Keep the user's memory in a git repo that follows the Agent Memory Repo spec. This skill does work only when it is invoked. It doesn't add hooks, scheduled jobs, or startup scripts, and it doesn't claim that memory loads on its own in later sessions.
AgentMemoryRepo/agentmemoryrepo spec repo.git -C <path> status --porcelain must print nothing: no staged, unstaged, or untracked changes. If it prints anything, you may still read memory, but don't start the update. Tell the user what is uncommitted and ask them to resolve it.git add <path>), never git add -A or git add .. Never force-push, rewrite history, or delete files you didn't create. Don't change the user's global git config.Use the path or repo the user gives you. If they don't give one, use ~/agent-memory. Resolve it to a full path.
Refuse a path that is the current project, inside the current project, or inside the AgentMemoryRepo/agentmemoryrepo spec repo. Ask the user for a different path.
Path doesn't exist, or is an empty directory: create the memory repo there.
mkdir -p ~/agent-memory
git -C ~/agent-memory init
printf '# Memory\n\n## Index\n' > ~/agent-memory/MEMORY.md
git -C ~/agent-memory add MEMORY.md
git -C ~/agent-memory commit -m "Create memory repo"
Path is already a memory repo: reuse it. It counts as a memory repo only if git -C <path> rev-parse --show-toplevel prints the path itself (not a parent directory) and MEMORY.md exists at the top. Check that the worktree is clean before writing (see Ground rules).
Anything else (a non-empty directory that isn't its own git repo with MEMORY.md): don't change or overwrite anything. Ask the user what to do.
User-owned private remote: if the user gives a repo URL they own, clone it to a path that doesn't exist yet or is empty (git clone <url> <path>). If it's already cloned, update it with git -C <path> pull --ff-only once the worktree is clean. If that fails, stop and tell the user. Don't merge or reset on your own.
If a commit fails because git has no user name or email, ask the user how they want it set. Don't set it globally.
MEMORY.md.grep -rni "<term>" <path>, or follow [[path]] links.Save things that will help in a later session: preferences, decisions, and facts the user would otherwise have to repeat. Skip anything that is cheap to rediscover or that matters only for the current task.
Follow the spec's format:
[key: value; key: value].source (a link to the session where you learned it, if you have one) and added (YYYY-MM-DD).MEMORY.md, above ## Index, only if every session needs it. Put everything else in a topic file and link it from the ## Index in MEMORY.md with [[path]]. Omit .md for Markdown files.Example:
- Prefers summaries as short bullet lists [added: 2026-10-04]
Before committing, check git -C <path> status --porcelain and git -C <path> diff and make sure they show only the changes you intended. If unrelated changes appeared in the meantime, stop without undoing them and tell the user.
git -C <path> add MEMORY.md <other changed files>
git -C <path> commit -m "Remember <short description>"
Push only if the user set up a private remote for this repo and asked you to sync it: git -C <path> push. Never use --force.
After saving, tell the user the full path of the memory repo and that they can invoke this skill in a later session with that path to reuse it.
Local memory is only there next time if the same filesystem persists between sessions. In a new cloud machine, a fresh container, or on another computer, the local repo won't exist. To use memory there, the user needs to connect a private remote repo they own.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub luvpame/dotfiles --plugin dotfiles12 skills in this plugin
/code-simplifierSimplifies and refines code for clarity, consistency, and maintainability while preserving all functionality. Focuses on recently modified code unless instructed otherwise./cognitive-rhythm-writing読み物として読ませる日本語の記事や章に緩急をつけるとき、平坦な文章を直すときに使う。短い作業報告や操作案内には使わない。/eli33図解で、前提知識のない成人に仕組みを説明する。ユーザーが /eli33 {topic} と入力したとき、または専門知識を仮定しない視覚的な説明を求めたときに使う。/empirical-prompt-tuningagent 向けテキスト指示(skill / slash command / task プロンプト / CLAUDE.md, AGENTS.md 節 / コード生成プロンプト)を、バイアスを排した実行者に動かしてもらい、両面(実行者の自己申告 + 指示側メトリクス)で評価して反復改善する手法。改善が頭打ちになるまで回す。プロンプトや skill を新規作成・大幅改訂した直後、またはエージェントの挙動が期待通りにならない原因を指示側の曖昧さに求めたいときに使う。Other plugins' skills for the same job