plugins/memory/skills/memory/SKILL.md
Cross-session memory management: read, create, update, search memories. Trigger: 'remember this', 'recall memory', 'save context', 'search memories', 'memory index'.
npx skillsauth add lazygophers/ccplugin plugins/memory/skills/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.
This plugin automatically manages memories through hooks:
| Hook | Action | |------|--------| | SessionStart | Load core memories (priority ≤ 2) | | PreToolUse | Preload relevant context for file operations | | PostToolUse | Record file modifications automatically | | Stop | Check for pending memories, prompt to save | | SessionEnd | Save session summary |
Access stored memories by URI path.
/memory read <uri>
Examples:
/memory read project://structure
/memory read workflow://commands
/memory read user://preferences
/memory read system://boot
Store new information with URI path and priority.
/memory create <parent_uri> <content> [--priority N] [--title TITLE] [--disclosure TEXT]
Examples:
/memory create project:// "Main dependencies: React 18, TypeScript 5" --priority 1
/memory create workflow://commands "Build: npm run build" --priority 2
/memory create user://preferences "Prefer functional components" --priority 1
Modify existing memories.
/memory update <uri> [--old TEXT --new TEXT] [--append TEXT]
Examples:
/memory update project://structure --old "src/components" --new "src/ui/components"
/memory update task://todos --append "\n- Review PR #123"
Find memories by keyword.
/memory search <query> [--domain DOMAIN] [--limit N]
Examples:
/memory search "dependencies"
/memory search "review" --domain workflow
Manually save current session as memory.
/memory save [--title TITLE]
| Domain | Purpose | Examples |
|--------|---------|----------|
| project:// | Project-level memories | structure, dependencies, patterns |
| workflow:// | Workflow memories | commands, snippets, review |
| user:// | User-level memories | preferences, standards, context |
| task:// | Task-level memories | todos, progress, blockers |
| system:// | System operations | boot, index, recent |
| Priority | Meaning | Auto-load | |----------|---------|-----------| | 0-2 | Core memories | Always loaded | | 3-5 | Important memories | On-demand | | 6-8 | Reference memories | On-demand | | 9-10 | Archive memories | Manual only |
The disclosure field describes when to recall this memory:
--disclosure "When starting a new feature"
--disclosure "When reviewing code"
--disclosure "When working with TypeScript files"
Hooks use this field for intelligent preloading.
{domain}://{path} where domain ∈ {project, workflow, user, task, system}development
Go 数据库规范——GORM Model 命名 ModelXxx、表名单数、枚举 uint8 + 常量、索引 idx_ 前缀 + deleted_at leading column、禁 time.Time 统一 int64 unix、禁指针/nullable 字段、TEXT/BLOB/JSON 禁 default、AutoMigrate 禁改主键。设计 DB model、写 GORM tag、建索引、做 migration 审查时触发。
development
Go HTTP API 规范——响应始终 200 + body code 字段、路由 /api/* 全 POST 单段 <Action><Model>、中间件逐路由注册禁 Group(prefix,mw...)、handler 仅返回 (rsp,error)、认证走 header。设计 HTTP API、写路由/handler/中间件时触发。
development
Go 项目结构规范——三层架构(API → Impl → State)、全局状态模式、internal/ 私有包、cmd/ 仅 main.go、go.work 多模块、禁止 Repository 接口和 DI 容器、struct 公共字段开头全 omitempty、handler var rsp 顶声明、禁 legacy migration。设计项目骨架、新建目录、组织包、做架构评审时触发。
development
Go 命名规范——Id/Uid 字段(非 ID)、IsActive/HasMFA 布尔前缀、CreatedAt 时间字段、接收者统一用 p、包名全小写无下划线、泛型类型参数描述性命名、集合字段 xxx_list 禁 xxxs 复数、Enum 0 值 XxxNil 禁 Unknown、禁 Status 统一 State、Set/Update 语义区分。定义结构体字段、函数、变量、包、接收者名、泛型、枚举时触发。