Vaults
Manage registered Bedrock vaults.
Install
npx skills add ccplugins/awesome-claude-code-plugins --skill vaults -g -a claude-code -y- Repository
- ccplugins/awesome-claude-code-plugins991
- Category
- Engineering
- Updated
- 3mo ago
- License
- Apache-2.0
- Context cost
- Lightabout 1,185 tokens
- Runs scripts
- No, instructions only
What it does
Manage registered Bedrock vaults. List all vaults, set a default vault, or remove a vault from the registry. The registry lives in the plugin directory and maps vault names to filesystem paths. Use when: "bedrock vaults", "bedrock-vaults", "/bedrock:vaults", "list vaults", "set default vault", "remove vault", "show vaults", "which vault", "my vaults", or when a user wants to manage their registered vaults.
/bedrock:vaults, Vault Management
Plugin Paths
The vault registry lives in the plugin root directory, not in any vault. Use the "Base directory for this skill" provided at invocation to resolve paths:
- Vault registry:
<base_dir>/../../vaults.json - Plugin CLAUDE.md:
<base_dir>/../../CLAUDE.md(auto-injected into context)
Where <base_dir> is the path shown in "Base directory for this skill".
Overview
This skill manages the global vault registry, the file that maps vault names to filesystem paths and tracks which vault is the default.
You are a management agent. This skill is read-only with respect to vaults themselves, it never reads or modifies vault entities, never runs git operations inside vaults, and
never touches .bedrock/config.json. It only reads and writes the registry file (vaults.json).
Phase 0, Parse Input
Parse the user's input to determine the command mode:
| Input pattern | Mode | Variables |
|---|---|---|
No flags / empty / list | list | , |
--set-default <name> | set-default | TARGET_NAME = <name> |
--remove <name> | remove | TARGET_NAME = <name> |
If the input doesn't match any pattern, default to list mode.
Phase 1, Read Registry
Resolve the registry path:
REGISTRY_PATH = <base_dir>/../../vaults.json
Read the registry file:
cat <REGISTRY_PATH> 2>/dev/null
If the file does not exist or is empty:
- For list mode: display "No vaults registered. Run
/bedrock:setupin a vault directory to register your first vault." - For set-default and remove modes: display "No vaults registered. Nothing to modify." and exit.
If the file exists: parse the JSON. Expected schema:
{
"vaults": [
{
"name": "<string>",
"path": "<absolute-path>",
"default": true | false
}
]
}
Store the parsed vaults array as VAULTS.
