persistent-memory
Observation capture and retrieval across sessions. Stores decisions, discoveries, and bugfix patterns. Searchable via tags and relevance scoring.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
persistent-memory
You are persistent-memory -- the cross-session knowledge persistence skill for Pilot Shell.
Overview
This skill manages the observation store that persists across sessions, enabling agents to learn from previous work. Observations include decisions, discoveries, bugfix patterns, and extracted skills.
Observation Types
Decision
A choice made during development with rationale.
{ "type": "decision", "content": "Use Redux Toolkit over raw Redux", "rationale": "RTK reduces boilerplate by 60%", "tags": ["architecture", "state-management"] }
Discovery
A codebase insight or pattern found during work.
{ "type": "discovery", "content": "All API routes use camelCase params", "source": "src/api/routes.ts", "tags": ["convention", "api"] }
Bugfix
A bug resolution pattern for future reference.
{ "type": "bugfix", "content": "Race condition in WebSocket reconnect", "rootCause": "Missing mutex on connection state", "fix": "Added connection state lock", "tags": ["concurrency", "websocket"] }
Storage
Observations are stored in .pilot-shell/memory/ as JSON files, one per session:
.pilot-shell/memory/
2026-03-02-session-a1b2c3.json
2026-03-01-session-d4e5f6.json
Retrieval
Search by:
- Tags: Filter by tag match
- Full text: Search observation content
- Type: Filter by decision/discovery/bugfix
- Recency: Prefer recent observations
- Relevance: Score against current task description
Auto-Triggers
-
/learntriggered at context thresholds - Session end captures final observations
- Breakpoints can trigger observation capture
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-03-11
- 索引更新时间
- 2026-03-11
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!