Tooluck logoTooluck
SKILL.md

preserve

Agent skill fromccplugins/awesome-claude-code-plugins

Single write point for the vault. Centralizes entity detection, textual matching, entity creation/update, and bidirectional linking. Accepts structured input (list of entities), free-form input (text, meeting notes, session context), or graphify output (graph.json + obsidian markdown from /graphify pipeline). Use when: "bedrock preserve", "bedrock-preserve", "save to vault", "record in vault", "/bedrock:preserve", or when another skill (e.g., /bedrock:teach) needs to persist entities in the vault.

How to install preserve

install preserve
# install the awesome-claude-code-plugins pack with the skills CLI
npx skills add ccplugins/awesome-claude-code-plugins

# or add only this skill to Claude Code: copy the folder

plugins/bedrock/skills/preserve/

# into

~/.claude/skills/preserve/ (all projects)

.claude/skills/preserve/ (one project)

plugins/bedrock/skills/preserve/SKILL.md

Apache-2.0Full file
1# /bedrock:preserve — Single Write Point for the Vault
2
3## Plugin Paths
4
5Entity definitions and templates are in the plugin directory, not in the vault root.
6Use the "Base directory for this skill" provided at invocation to resolve paths:
7
8- Entity definitions: `<base_dir>/../../entities/`
9- Templates: `<base_dir>/../../templates/{type}/_template.md`
10- Plugin CLAUDE.md: `<base_dir>/../../CLAUDE.md` (already injected automatically into context)
11
12Where `<base_dir>` is the path provided in "Base directory for this skill".
13
14---
15
16## Vault Resolution
17
18Resolve which vault to operate on. This skill can be invoked from any directory.
19
20**Step 1 — Parse `--vault` flag:**
21Check if the input arguments include `--vault <name>`. If found, extract the vault name and remove it from the arguments before further parsing.
22
23**Step 2 — Resolve vault path:**
24
251. **If `--vault <name>` was provided:**
26 Read the vault registry at `<base_dir>/../../vaults.json`. Find the entry matching the name.
27 If not found: error — "Vault `<name>` is not registered. Run `/bedrock:vaults` to see available vaults."
28 If found: set `VAULT_PATH` to the entry's `path` value.
29
302. **If no `--vault` flag — CWD detection:**
31 Read `<base_dir>/../../vaults.json`. Check if the current working directory is inside any registered vault path
32 (CWD starts with a registered vault's absolute path). If multiple match, use the longest path (most specific).
33 If found: set `VAULT_PATH` to the matching vault's `path`.
34…

Excerpt shown under the repository's Apache-2.0 license.

More skills in awesome-claude-code-plugins

Keep exploring

Similar skill repositories

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates