Summary
工作记忆持久化,在关键节点自动存档、跨 session 恢复上下文。自动触发条件——AI行为信号(最高优先级):刚完成一批文件修改、执行完一个完整命令序列、输出了方案/设计/结论性长回复、本轮工具调用超过5次。用户确认信号:用户说"好"、"完成"、"done"、"行"、"下一步"、"接下来"后对话收尾;一个功能/模块被…
qiao-925/qiao-skills
工作记忆持?
npx skills add qiao-925/qiao-skills --skill working-memory-boost
工作记忆持久化,在关键节点自动存档、跨 session 恢复上下文。自动触发条件——AI行为信号(最高优先级):刚完成一批文件修改、执行完一个完整命令序列、输出了方案/设计/结论性长回复、本轮工具调用超过5次。用户确认信号:用户说"好"、"完成"、"done"、"行"、"下一步"、"接下来"后对话收尾;一个功能/模块被…
Related neighbors and high-traction skills in the same topics — useful to compare before installing.
Manages local data persistence using SQLite or other database solutions. Use when a Flutter app…
8.6K installsRoutes AWS networking requests to the correct service skill for implementation. Covers Route 53…
3.9K installsUse when changing a dbt model in a way that could break its consumers — renaming, removing, or …
641 installsConfigure secure, high-performance connectivity between on-premises infrastructure and cloud pl…
9.4K installsInvestigates Google Cloud networking issues by analyzing logs, metrics, and diagnostics. Use wh…
9.1K installsPlans, configures, and manages core GKE cluster networking. Covers private clusters, VPC-native…
4.1K installsOther skills from qiao-925/qiao-skills · top by installs.
npx skills add qiao-925/qiao-skills
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
main
Parsed from SKILL.md frontmatter.
Files included with this skill beyond the listing page.
SKILL.md
6,127 B
SUMMARY.md
764 B
增强型工作记忆:双层备份架构,看板优先入口,自动完整性检查。跨 session 不丢失上下文。
工作记忆双层架构:本地 .working-memory/ + 远程 GitHub Issue。
.working-memory/
├── board.md # 全局看板(唯一入口)
├── ongoing/ # 进行中任务
├── archive/ # 按月归档
├── analysis/ # 数据分析(链接)
├── aha-moments/ # 顿悟记录(链接)
└── .checkpoint # 机器状态
所有操作必须先读取 .working-memory/board.md,向用户展示:
| 触发词 | 动作 |
|---|---|
| 存档、记录、同步 | checkpoint |
| 读档、恢复、继续 | resume |
默认 checkpoint。
L1:board ↔ 文件自动同步
ongoing/*.md 是否存在⚠️ 待重建,尝试从 Issue 恢复L2:本地文件 vs .checkpoint
.working-memory/.checkpointL3:Git 状态
HEAD 是否与 .checkpoint.git_ref 一致发现问题,询问用户后继续或修复。
流程:
ongoing/任务名.md.checkpoint:``json { "issue": 42, "phase": "implementation", "completed": ["CP-1", "CP-2"], "next": "CP-3: 实现 core logic", "git_ref": "a1b2c3d", "timestamp": "2026-04-08T14:30:00Z" } ``
board.md:更新该任务的「状态」「下一动作」「更新」列远程层极简:
`` 优化 Embedding 缓存,减少 50% API 调用 Status: 🔄 implementation Next: 实现 batchget() Local: .working-memory/ongoing/2026-04-08-01【plan】... Git: a1b2c3d ``
判断模式:
| 条件 | 模式 | 操作 |
|---|---|---|
| 本地文件存在且 mtime > 远程 | 热恢复 | 读取本地,验证 L3 |
| 本地文件缺失或 mtime < 远程 | 温恢复 | 从 Issue 重建本地 |
用户显式指定 #issue |
强制重建 | 从指定 Issue 重建 |
温恢复流程:
gh issue view <id> --commentsongoing/任务名.md(精简三区块格式).checkpointboard.md(如该任务未列出则添加).checkpoint 变化board.md(全局看板):
# 工作记忆看板
## 进行中
| 任务 | 阶段 | 状态 | 下一动作 | 更新 |
|------|------|------|----------|------|
| [#42] 优化 Embedding | implementation | 🔄 | batch_get() | 04-08 |
| [#45] 重构 query | planning | ⬜ | 技术方案 | 04-08 |
## 最近归档
| 任务 | 结果 | 日期 |
|------|------|------|
| [#38] 配置模块 | ✅ | 04-07 |
## 数据分析
- [Bug 健康度](./analysis/README.md)
## Aha Moments
- [模型选择](../aha-moments/2026-01-22_模型选择的重要性.md)
**ongoing/*.md(单个任务):**
# 【plan】优化 Embedding 缓存
> 一句话目标:减少 50% API 调用
## Checkpoint
| CP | 内容 | 状态 |
|----|------|------|
| 1 | 策略设计 | ✅ |
| 2 | core 实现 | 🔄 |
| 3 | 单元测试 | ⬜ |
## 当前上下文
- 决策:LRU + Redis 混合
- 阻塞:无
- 下一动作:实现 `batch_get()`
---
*Issue: #42 | Updated: 2026-04-08 14:30 | Git: a1b2c3d*
存档:
已存档 #42 | implementation 🔄 | Next: batch_get()
本地: .working-memory/ongoing/...md ✅ | Git: a1b2c3d ✅
读档(热):
已恢复 #42 | 来源:本地 | implementation 🔄 | Next: batch_get()
读档(温):
已恢复 #42 | 来源:远程 | implementation 🔄 | Next: batch_get()
重建: .working-memory/ongoing/...md | Git: 一致
| 问题 | 策略 |
|---|---|
gh 未登录 |
提示 gh auth login,停止 |
| L1 发现 board 与文件不一致 | 自动同步,无需询问 |
| L2 timestamp 冲突 | 询问用户选择方向 |
| L3 Git 偏离 | 警告并显示差异 |
| 跨设备恢复时本地已有文件 | 比较 timestamp,新者胜,旧者备份 .bak |
| Issue 正文过长 | 压缩为 5 行内 |
references/github-persistence-schema.md - 远程层模板references/working-memory-schema.md - 本地层完整规范