remember by alirezarezvani/claude-skills
npx skills add https://github.com/alirezarezvani/claude-skills --skill remember当某些信息足够重要,您不希望依赖 Claude 自动发现时,将显式条目写入自动记忆。
/si:remember <what to remember>
/si:remember "This project's CI requires Node 20 LTS — v22 breaks the build"
/si:remember "The /api/auth endpoint uses a custom JWT library, not passport"
/si:remember "Reza prefers explicit error handling over try-catch-all patterns"
| 场景 | 示例 |
|---|---|
| 来之不易的调试心得 | "/api/upload 的 CORS 错误是由 CDN 引起的,而非后端" |
| 项目约定(不在 CLAUDE.md 中) | "我们在 src/components/ 中使用桶式导出" |
| 特定工具的注意事项 | "Jest 需要 --forceExit 标志,否则在数据库测试时会挂起" |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 架构决策 | "我们选择 Drizzle 而非 Prisma 以实现类型安全的 SQL" |
| 希望 Claude 学习的偏好 | "不要为显而易见的代码添加注释" |
从用户输入中提取:
MEMORY_DIR="$HOME/.claude/projects/$(pwd | sed 's|/|%2F|g; s|%2F|/|; s|^/||')/memory"
grep -ni "<keywords>" "$MEMORY_DIR/MEMORY.md" 2>/dev/null
如果存在类似条目:
追加到 MEMORY.md 末尾:
- {{concise fact or pattern}}
保持条目简洁——尽可能一行。自动记忆条目不需要时间戳、ID 或元数据。它们是笔记,不是数据库记录。
如果 MEMORY.md 超过 180 行,警告用户:
⚠️ MEMORY.md 已达到 {{n}}/200 行。考虑运行 /si:review 以释放空间。
如果该知识听起来像一条规则(命令式、总是/从不、约定):
💡 这听起来像是一条 CLAUDE.md 规则,而非记忆条目。
规则会以更高的优先级强制执行。是否想改用 /si:promote 将其升级?
✅ 已保存至自动记忆
"{{entry}}"
MEMORY.md: {{n}}/200 行
Claude 将在此项目的每次会话开始时看到此信息。
/si:promote 直接写入 CLAUDE.md~/.claude/CLAUDE.md 存放全局规则pnpm build 构建,使用 pnpm test:e2e 测试"每周安装量
66
代码仓库
GitHub 星标数
3.6K
首次出现
6 天前
安全审计
安装于
codex62
github-copilot61
gemini-cli61
kimi-cli61
cursor61
opencode61
Writes an explicit entry to auto-memory when something is important enough that you don't want to rely on Claude noticing it automatically.
/si:remember <what to remember>
/si:remember "This project's CI requires Node 20 LTS — v22 breaks the build"
/si:remember "The /api/auth endpoint uses a custom JWT library, not passport"
/si:remember "Reza prefers explicit error handling over try-catch-all patterns"
| Situation | Example |
|---|---|
| Hard-won debugging insight | "CORS errors on /api/upload are caused by the CDN, not the backend" |
| Project convention not in CLAUDE.md | "We use barrel exports in src/components/" |
| Tool-specific gotcha | "Jest needs --forceExit flag or it hangs on DB tests" |
| Architecture decision | "We chose Drizzle over Prisma for type-safe SQL" |
| Preference you want Claude to learn | "Don't add comments explaining obvious code" |
Extract from the user's input:
MEMORY_DIR="$HOME/.claude/projects/$(pwd | sed 's|/|%2F|g; s|%2F|/|; s|^/||')/memory"
grep -ni "<keywords>" "$MEMORY_DIR/MEMORY.md" 2>/dev/null
If a similar entry exists:
Append to the end of MEMORY.md:
- {{concise fact or pattern}}
Keep entries concise — one line when possible. Auto-memory entries don't need timestamps, IDs, or metadata. They're notes, not database records.
If MEMORY.md is over 180 lines, warn the user:
⚠️ MEMORY.md is at {{n}}/200 lines. Consider running /si:review to free space.
If the knowledge sounds like a rule (imperative, always/never, convention):
💡 This sounds like it could be a CLAUDE.md rule rather than a memory entry.
Rules are enforced with higher priority. Want to /si:promote it instead?
✅ Saved to auto-memory
"{{entry}}"
MEMORY.md: {{n}}/200 lines
Claude will see this at the start of every session in this project.
/si:promote to write directly to CLAUDE.md~/.claude/CLAUDE.md for global rulespnpm build, tests with pnpm test:e2e"Weekly Installs
66
Repository
GitHub Stars
3.6K
First Seen
6 days ago
Security Audits
Gen Agent Trust HubPassSocketPassSnykFail
Installed on
codex62
github-copilot61
gemini-cli61
kimi-cli61
cursor61
opencode61
头脑风暴技能:AI协作设计流程,将创意转化为完整规范与实施计划
79,800 周安装