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
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)
1# /bedrock:compress — Vault Alignment Engine23## Plugin Paths45Entity 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:78- 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)1112Where `<base_dir>` is the path provided in "Base directory for this skill".1314---1516## Vault Resolution1718Resolve which vault to compress. This skill can be invoked from any directory.1920**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`.2223**Step 2 — Resolve vault path:**24251. **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`.29302. **If no `--vault` flag — CWD detection:**31 Read `<base_dir>/../../vaults.json`. Check if the current working directory is inside any registered vault path32 (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.
