Remember

作者 parcadeid07ff4b06b62无许可证3.9K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库8个月前更新

Store a learning, pattern, or decision in the memory system for future recall

仅含说明AI & Agents
AI 生成的概览

把经验、模式或决策存入智能体记忆系统,供日后检索。

功能
把一条经验、模式或决策记录到记忆系统中,以便日后检索。它会将内容连同 BGE 嵌入存入 PostgreSQL,在未指定类型时自动判断学习类型,从内容中提取标签,并返回带 ID 的确认信息。支持的类型包括有效解决方案、架构决策、代码库模式、失败做法和错误修复。
适用场景
当工作中获得的经验需要留存以便日后检索时使用,例如有效的修复方法、设计决策、反复出现的代码库模式或失败的做法。通过手动输入一段简短描述来调用。
运行要求
需要带 BGE 嵌入的 PostgreSQL 数据库、CLAUDE_OPC_DIR 环境变量、uv 运行时,以及所引用仓库中的 store_learning.py 脚本。该技能本身不附带脚本,只提供说明。

Remember - Store Learning in Memory

Store a learning, pattern, or decision in the memory system for future recall.

Usage

/remember <what you learned>

Or with explicit type:

/remember --type WORKING_SOLUTION <what you learned>

Examples

/remember TypeScript hooks require npm install before they work/remember --type ARCHITECTURAL_DECISION Session affinity uses terminal PID/remember --type FAILED_APPROACH Don't use subshell for store_learning command

What It Does

  1. Stores the learning in PostgreSQL with BGE embeddings
  2. Auto-detects learning type if not specified
  3. Extracts tags from content
  4. Returns confirmation with ID

Learning Types

TypeUse For
WORKING_SOLUTIONFixes, solutions that worked (default)
ARCHITECTURAL_DECISIONDesign choices, system structure
CODEBASE_PATTERNPatterns discovered in code
FAILED_APPROACHWhat didn't work
ERROR_FIXSpecific error resolutions

Execution

When this skill is invoked, run:

bash
cd $CLAUDE_OPC_DIR && PYTHONPATH=. uv run python scripts/core/store_learning.py \  --session-id "manual-$(date +%Y%m%d-%H%M)" \  --type <TYPE or WORKING_SOLUTION> \  --content "<ARGS>" \  --context "manual entry via /remember" \  --confidence medium

Auto-Type Detection

If no --type specified, infer from content:

  • Contains "error", "fix", "bug" → ERROR_FIX
  • Contains "decided", "chose", "architecture" → ARCHITECTURAL_DECISION
  • Contains "pattern", "always", "convention" → CODEBASE_PATTERN
  • Contains "failed", "didn't work", "don't" → FAILED_APPROACH
  • Default → WORKING_SOLUTION

来源与署名

来源:parcadei/continuous-claude-v3位于.claude/skills/remember提交d07ff4b

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架