preserve
Scan the current conversation and silently save anything worth permanent memory to CLAUDE.md. Keeps the file compact — structured key:value, no prose.
- License 许可
- MIT
- 所属仓库
- sliamh11/Deus
- 最近更新
- 2026-11-13
- Stars
- ★ 51
- Forks
- 7
01 前言 Front Matter
- name
- preserve
- description
- Scan the current conversation and silently save anything worth permanent memory to CLAUDE.md. Keeps the file compact — structured key:value, no prose.
03 SKILL.md 正文
/preserve — Update Permanent Memory
Silently extract and save lasting knowledge from this conversation to the vault's CLAUDE.md.
The vault is mounted at /workspace/vault/. If it doesn't exist, check /workspace/extra/obsidian/Deus/ as a legacy fallback.
Steps
-
Read the current CLAUDE.md:
VAULT_DIR="${DEUS_VAULT_DIR:-/workspace/vault}" [ ! -d "$VAULT_DIR" ] && VAULT_DIR="/workspace/extra/obsidian/Deus" cat "$VAULT_DIR/CLAUDE.md" wc -l "$VAULT_DIR/CLAUDE.md" -
Review the conversation — identify what's genuinely worth permanent memory:
- User preferences or habits revealed
- Facts about the user (schedule, people, places, situations)
- Decisions with lasting effect
- Things the user corrected or clarified
- Recurring patterns worth anticipating
Do not preserve: one-off requests, temporary context, things already in CLAUDE.md.
-
Add findings to the appropriate section using the same compact format as the file:
- Use
key: valueshorthand, not prose bullets - One line per insight
- Write as data, not narrative
- Use
-
Auto-archive if file exceeds 200 lines:
- Move completed projects and old decisions to
$VAULT_DIR/CLAUDE-Archive.md - Keep core blocks: identity line, tools, projects, pending, decisions
- Move completed projects and old decisions to
-
Confirm briefly what was added, or "Nothing new worth preserving." if nothing qualified.
04 同仓库更多 Skills
status
Quick read-only health check — session context, workspace mounts, tool availability, and task snapshot. Use when the user asks for system status or runs /status.
resume
Load context from permanent memory and recent session logs. Tiered loading — CLAUDE.md full, session logs frontmatter-only by default.
compress
Save the current session to the vault. Writes a compact session log with a TL;DR frontmatter (always) and full details below (when useful).
capabilities
Show what this Deus instance can do — installed skills, available tools, and system info. Read-only. Use when the user asks what the bot can do, what's installed, or runs /capabilities.
agent-browser
Browse the web for any task — research topics, read articles, interact with web apps, fill forms, take screenshots, extract data, and test web pages. Use whenever a browser would be useful, not just when the user explicitly asks.
x-integration
X (Twitter) integration for Deus. Post tweets, like, reply, retweet, and quote. Use for setup, testing, or troubleshooting X functionality. Triggers on "setup x", "x integration", "twitter", "post tweet", "tweet".