Skip to content
Back to skills

Omnikit Mem

ASecurity

跨對話與跨模型結構化記憶管理純手動斜線技能(/omnikit-mem)。寫入帶 why 與 revisit_when 的雙時序定案、翻案取代、雙語 bigram FTS5 召回、索引層遺忘與 NOW.md 受管區重繪。日常對話透過 SessionStart 凍結熱頭自動銜接,僅於手動呼叫時啟用,零常駐描述預算消耗。

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added December 2, 2026
ai-agentsshellsqlgit

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 2, 2026

npx -y skills add b40609/OmniKit --skill omnikit-mem --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Omnikit Mem?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Omnikit Mem
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/b40609-omnikit-mem/badge)](https://www.skillsdirectory.com/skills/b40609-omnikit-mem)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: omnikit-mem
description: 跨對話與跨模型結構化記憶管理純手動斜線技能(/omnikit-mem)。寫入帶 why 與 revisit_when 的雙時序定案、翻案取代、雙語 bigram FTS5 召回、索引層遺忘與 NOW.md 受管區重繪。日常對話透過 SessionStart 凍結熱頭自動銜接,僅於手動呼叫時啟用,零常駐描述預算消耗。
argument-hint: "[recall <詞> | decide | retract <id> | rebuild | lint | doctor]"
disable-model-invocation: true
---

# OmniKit 跨對話 × 跨模型記憶操作手冊(`/omnikit-mem`)

本技能為純手動斜線入口(`disable-model-invocation: true`),用於管理單一真相源 `~/.omnikit/status/<專案>/decisions/YYYY/D-YYYYMMDD-NN-<slug>.md` 與本機衍生索引 `~/.omnikit/mem/<project_id>/index.sqlite`。

## 常用確定性指令

1. **檢索現役定案與歷史脈絡(雙語 bigram + unicode61,帶樹狀目錄脈絡頭)**:
   ```powershell
   uv run engine/scripts/mem.py recall "<關鍵詞>" --project <專案代號> --json
   ```
   - 歷史快照查詢(雙時序有效時間):加 `--as-of YYYY-MM-DD`。
   - 跨同 domain 專案檢索:加 `--cross-project`(不同 domain 如 `work/<org>` 與 `personal` 永遠硬隔離)。

2. **寫入新定案或翻案取代(必附 `--why` 與 `--revisit-when`)**:
   ```powershell
   uv run engine/scripts/mem.py decide --project <專案代號> --title "<一句話摘要>" --why "<決策理由>" --revisit-when "<改判條件>" [--supersedes <舊ID>] --json
   ```
   - 嚴禁寫入指令口吻(例如「以後一律…」應改寫規則檔 `AGENTS.md`)。
   - 含未錨定相對時間詞(明天/下週/最近)會自動降為 `status: proposed` 待審。

3. **撤回、索引層遺忘與重建**:
   ```powershell
   uv run engine/scripts/mem.py retract <D-ID> --project <專案代號> --reason "<理由>"
   uv run engine/scripts/mem.py forget <DOC-ID> --project <專案代號> --reason "<理由>"
   uv run engine/scripts/mem.py rebuild --project <專案代號>
   uv run engine/scripts/mem.py lint --project <專案代號>
   ```

## 驗證確認

執行寫入、取代或重建後,必須跑下列確定性檢查確認一致性:
- `uv run engine/scripts/mem.py lint --project <專案代號> --json` 回傳 `"ok": true` 且 `"errors": []`;
- `uv run engine/scripts/mem.py doctor --project <專案代號> --json` 確認 `index_present: true`、`index_stale: false`、`hot_bytes <= 1000`。

## 錯誤恢復

| 狀況 | 處置退路 |
|---|---|
| `index.sqlite` 損毀或與檔案不同步 | 直接執行 `uv run engine/scripts/mem.py rebuild --project <專案代號>` 原子重建(不影響 Git 真相源) |
| `NOW.md` 受管區標記缺失導致 `render` 拒絕寫入 | 於 `NOW.md` `## 目前結論` 下補上唯一一對 `<!-- omnikit-mem:decisions:begin -->` 與 `<!-- omnikit-mem:decisions:end -->` 後重跑 `mem.py render` |
| 處於盲審或暫存目錄導致輸出 0 筆 | 屬刻意防滲透保護(`mem_gate.py` G1–G7);切回已登記專案目錄且確認未設 `OMNIKIT_MEM=off` / `OMNIKIT_BLIND` |

Files in this skill

  • SKILL.md3 KB
  • agents/openai.yaml43 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.