Skills

Vaults

Manage registered Bedrock vaults.

Install

npx skills add ccplugins/awesome-claude-code-plugins --skill vaults -g -a claude-code -y
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 patternModeVariables
No flags / empty / listlist,
--set-default <name>set-defaultTARGET_NAME = <name>
--remove <name>removeTARGET_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:setup in 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.


Phase 2, Execute Command

2.1 List Mode

Read the whole SKILL.md on GitHub

More in Engineering