用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/ActiveMemory/ctx --skill ctx-pad命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Recall project context and present structured readback. Use when the user asks 'do you remember?', at session start, or when context seems lost.
End-of-session context persistence ceremony. Use when wrapping up a session to capture learnings, decisions, conventions, and tasks.
Recall project context and present structured readback. Use when the user asks 'do you remember?', at session start, or when context seems lost.
正在显示 SKILL.md
基于 SOC 职业分类
| name | ctx-pad |
| description | Manage encrypted scratchpad. Use for short, sensitive one-liners that travel with the project. |
| allowed-tools | Bash(ctx:*) |
Manage the encrypted scratchpad via ctx pad commands using
natural language. Translate what the user says into the right
command.
ctx task add instead)ctx decision add instead)ctx learning add instead)| User intent | Command |
|---|---|
| "show my scratchpad" / "what's on my pad" | ctx pad |
| "show me entry 3" / "what's in entry 3" | ctx pad show 3 |
| "add a note: check DNS" / "jot down: check DNS" | ctx pad add "check DNS" |
| "delete the third one" / "remove entry 3" | ctx pad rm 3 |
| "change entry 2 to ..." / "replace entry 2 with ..." | ctx pad edit 2 "new text" |
| "append '-- important' to entry 3" / "add to entry 3: ..." | ctx pad edit 3 --append "-- important" |
| "prepend 'URGENT:' to entry 1" | ctx pad edit 1 --prepend "URGENT:" |
| "move entry 4 to the top" / "prioritize entry 4" | ctx pad mv 4 1 |
| "move entry 1 to the bottom" | ctx pad mv 1 N (where N = last position) |
| "import my notes from notes.txt" | ctx pad import notes.txt |
| "import from stdin" / pipe into pad | cmd | ctx pad import - |
| "export all blobs" / "extract blobs to DIR" | ctx pad export [DIR] |
| "export blobs, overwrite existing" | ctx pad export --force [DIR] |
| "merge entries from another pad" | ctx pad merge FILE... |
| "merge with a different key" | ctx pad merge --key /path/to/key FILE |
| "show entries tagged later" / "filter by #later" | ctx pad --tag later |
| "show everything except #later" | ctx pad --tag ~later |
| "what tags do I have" / "list my tags" | ctx pad tags |
| "tag entry 5 as urgent" | ctx pad edit 5 --tag urgent |
| "undo" / "I deleted the wrong thing" / "bring it back" | ctx pad undo |
List entries:
ctx pad
Show a single entry (raw text, pipe-friendly):
ctx pad show 3
Add an entry:
ctx pad add "remember to check DNS config on staging"
Remove an entry:
ctx pad rm 2
Replace an entry:
ctx pad edit 1 "updated note text"
Append to an entry:
ctx pad edit 3 --append " - this is important"
Prepend to an entry:
ctx pad edit 1 --prepend "URGENT: "
Move an entry:
ctx pad mv 3 1 # move entry 3 to position 1
Compose entries (pipe show into edit):
ctx pad edit 1 --append "$(ctx pad show 3)"
Import lines from a file:
ctx pad import notes.txt
Import from stdin:
grep TODO *.go | ctx pad import -
Export blobs to a directory:
ctx pad export ./ideas
ctx pad export --dry-run # preview without writing
ctx pad export --force ./backup # overwrite existing files
Merge entries from another scratchpad:
ctx pad merge worktree/.context/scratchpad.enc
ctx pad merge --key /path/to/other.key foreign.enc
ctx pad merge --dry-run pad-a.enc pad-b.md
Filter by tag:
ctx pad --tag later # entries with #later
ctx pad --tag ~later # entries WITHOUT #later
ctx pad --tag later --tag ci # entries with both (AND)
List all tags:
ctx pad tags
ctx pad tags --json
Tag an entry:
ctx pad edit 5 --tag urgent
ctx pad edit 5 --append "checked" --tag done # combine with other ops
Undo the last destructive change:
ctx pad undo
Every destructive ctx pad op (add, edit, mv, rm, merge,
normalize, resolve, tag) writes a snapshot of the prior pad
to .context/scratchpad.history/ before overwriting. ctx pad undo restores the most recent snapshot. Running undo
twice in a row is a redo (the first undo itself snapshots
before promoting the older state). Empty history is not an
error: prints "No pad history to restore." and exits 0.
When the user's intent is ambiguous:
When the user says "add": check context:
ctx pad add (new entry)ctx pad edit 3 --append (modify existing)~/.ctx/.ctx.key) internal to
ctx pad commands: exposing it grants full decryption access
to all pad entriesctx pad to access entries: reading scratchpad.enc
directly yields unreadable ciphertext