skills/coding-global-memory/SKILL.md
Read, write, and sync project memory stored as Markdown under `~/.agents/memories/{project-name}/`. Use when starting work and needing project context, when the user asks to read or update memory, or when ending a session and preserving stable learnings. Triggers: "read memory", "load memory", "write memory", "save memory", "update memory", "sync memory", "refresh memory", "读取记忆", "加载记忆", "写入记忆", "保存记忆", "更新记忆", "同步记忆".
npx skillsauth add samzong/samzong coding-global-memoryInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Derive project-name (first match wins):
git remote get-url origin → extract owner/repo
(strip .git suffix, take last two path segments). Replace / with -.
Example: [email protected]:samzong/my-app.git → samzong-my-appbasename $(git rev-parse --show-toplevel).
Example: /Users/x/projects/my-app → my-app/ in CWD with -.Set MEMORY_DIR = ~/.agents/memories/{project-name}/.
This ensures all worktrees, clones, and checkouts of the same repo share one memory.
All workflows below assume setup is done.
~/.agents/memories/{project-name}/
├── MEMORY.md # Main file (frontmatter: updated, project, description)
└── {topic}.md # Optional sub-files, split by project's actual modules
Sub-file topics should be derived from the project's real structure — not from a fixed list. Analyze the codebase to determine what modules warrant separate memory files.
MEMORY.md sections: Index (only if sub-files exist), Architecture, Key Decisions, Conventions, Known Issues. Sections are flexible.
MEMORY.md does not exist → report "No memory found." and stop.MEMORY.md. If updated is older than 30 days, warn about staleness.mkdir -p $MEMORY_DIR.MEMORY.md exists → read it first, then merge new stable learnings. Remove outdated statements.MEMORY.md does not exist → scan project structure, summarize stable learnings, create new file.updated date in frontmatter.MEMORY.md.If MEMORY.md exceeds ~150 lines:
MEMORY.md as summary and navigation.Write only what is actionable, stable, and non-obvious.
Do not store: full file contents, temporary branch state, scratch notes, generic language/framework knowledge.
documentation
撰写微信公众号技术文章的结构化工作流。使用场景:用户要写一篇公众号文章、需要创建文章目录、组织素材、迭代草稿。强制遵循 blogs/wechat/README.md 的命名规范和目录结构。
tools
Cross-tool vibe coding profiler. Scans AI coding tool data on the machine (Claude Code sessions, OpenCode DB, Codex sessions), combined with git history and project memory, to build a true user portrait, discover workflow automation opportunities, and update the target tool's instruction file (CLAUDE.md or AGENTS.md) accordingly. Use when: "calibrate", "vibe-calibrate", "分析我的习惯", "profile me", "update my CLAUDE.md based on my history", "我的效率怎么提升", "analyze my patterns", "优化我的配置", or at the start of a long-term engagement with a new user.
development
Ruthless code simplifier: flatten abstractions, inline wrappers, remove unnecessary layers, delete dead code — without changing behavior. Use when: user says "simplify", "simplify this", "flatten", "inline", "too complex", "over-engineered", "remove abstraction", "unwrap", "reduce complexity", "make it simpler", "this is too complicated", or points at code that has unnecessary indirection. Does NOT change behavior, break public APIs, or remove meaningful error handling.
testing
Ship staged changes through a narrow release flow: auto-clean staged files, block unexpected non-i18n CJK additions, create or keep a branch, commit staged work, push, and open a pull request — all without confirmation. Use mainly when the user explicitly invokes `/ship` or says "ship it", "push and PR", or "commit and PR". Do not use for commit-only, push-only, PR-only, or existing-PR editing requests. All generated git and GitHub text must be in English.