Tooluck logoTooluck
SKILL.md

compress

Agent skill fromccplugins/awesome-claude-code-plugins

Vault alignment engine. Detects and fixes 5 types of structural misalignments: broken backlinks, concept fragmentation, entity miscategorization, duplicated entities, and misnamed entities. Delegates all writes to /bedrock:preserve. Supports interactive mode (user confirmation) and cron mode (autonomous mechanical fixes + queued semantic proposals). Use when: "bedrock compress", "bedrock-compress", "align vault", "fix backlinks", "fix misalignments", "/bedrock:compress".

How to install compress

install compress
# 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/compress/

# into

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

.claude/skills/compress/ (one project)

plugins/bedrock/skills/compress/SKILL.md

Apache-2.0Full file
1# /bedrock:compress — Vault Alignment Engine
2
3## Plugin Paths
4
5Entity definitions and templates are in the plugin directory, not 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 compress. 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 parsing `--mode`.
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. Store the resolved vault name as `VAULT_NAME`.
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…

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

More skills in awesome-claude-code-plugins

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates