agentleFS
abdullahkhawerabdullahkhawer/devops-skills/skills/vault-cli/SKILL.md

vault-cli

Skill8 starsChanged 7 months agoApache-2.0View on GitHub

Perform HashiCorp Vault operations using the vault CLI. Use for reading secret metadata, checking policies, and inspecting auth methods across environments.

  • Installs packages

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 3 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use the address table and rules below when constructing all vault commands.

    line 8
  2. Distinctive:

    Update the table below with your Vault cluster addresses before using this skill:

    line 12
  3. Distinctive:

    If the target environment is unclear, ask the user before running any command.

    line 19
  4. Very specific:

    If vault is not installed or not authenticated, inform the user that setup is required and ask them to complete the following steps …

    line 23
  5. Very specific:

    Always set VAULT_ADDR and VAULT_TOKEN explicitly per command — never rely on shell-exported environment variables that could leak into …

    line 34
  6. Distinctive:

    NEVER target a Vault address not listed in the configuration table above.

    line 76
  7. Very specific:

    NEVER run vault kv get, vault read on a secret path, or any command that would print a secret value — this skill is for metadata/structure …

    line 77
  8. Very specific:

    NEVER print, display, log, or store the contents of any token file or VAULT_TOKEN value.

    line 78
  9. Very specific:

    NEVER run vault kv delete, destroy, operator seal/unseal, or token revoke without explicit user instruction — these are destructive or …

    line 79
  10. Very specific:

    Always pass VAULT_ADDR explicitly on every command — never rely on a pre-exported environment variable, which may point to the wrong …

    line 80
  11. Very specific:

    If a secret path or policy name is unfamiliar, use vault list/vault kv metadata get to explore structure without exposing values.

    line 81

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

HashiCorp Vault CLI Skill

Use the address table and rules below when constructing all vault commands.

Configuration

Update the table below with your Vault cluster addresses before using this skill:

EnvironmentVAULT_ADDRToken File
Productionhttps://<your-vault-prod-addr>:8200~/.vault/prod.token
Staging / Non-Prodhttps://<your-vault-staging-addr>:8200~/.vault/staging.token

If the target environment is unclear, ask the user before running any command.

Prerequisites (one-time setup by user)

If vault is not installed or not authenticated, inform the user that setup is required and ask them to complete the following steps manually. Do not perform these steps yourself.

brew install vault
vault login -address=<VAULT_ADDR>

Save the resulting token to the corresponding token file (see table above), chmod 600. Never share credential file contents with the assistant.

Command Format

Always set VAULT_ADDR and VAULT_TOKEN explicitly per command — never rely on shell-exported environment variables that could leak into other sessions:

VAULT_ADDR=<vault-addr> VAULT_TOKEN=$(cat <TOKEN_FILE>) vault <command>

Available Commands

Read-only (safe, no confirmation needed)

CommandDescription
vault statusShow seal/HA status
vault secrets listList enabled secrets engines
vault list <path>List keys at a path (not the secret values)
vault kv metadata get <path>Show a KV secret's metadata (versions, timestamps) — not its value
vault policy list / vault policy read <name>List or show policies
vault auth listList enabled auth methods
vault token lookupShow info about the current token (not other tokens)

Mutating operations (confirm with user before running)

CommandDescription
vault kv put <path> <data>Write/update a secret value
vault policy write <name> <file>Create or update a policy
vault secrets enable <type>Enable a new secrets engine

Never run — requires explicit human approval

CommandReason
vault kv get <path>Reads a secret's actual value — a credential
vault kv delete/destroy <path>Irreversible secret deletion
vault delete <path>Irreversible deletion of stored data
vault operator seal/unsealAlters cluster availability instance-wide
vault token revoke/revoke-orphanInvalidates tokens, potentially breaking other sessions
vault policy delete <name>Removes access control, security-sensitive
vault auth disable <path>Disables an authentication method cluster-wide

Rules

  • NEVER target a Vault address not listed in the configuration table above. If a command references an unfamiliar address, stop and ask the user to confirm.
  • NEVER run vault kv get, vault read on a secret path, or any command that would print a secret value — this skill is for metadata/structure inspection only, not for retrieving credential contents.
  • NEVER print, display, log, or store the contents of any token file or VAULT_TOKEN value.
  • NEVER run vault kv delete, destroy, operator seal/unseal, or token revoke without explicit user instruction — these are destructive or availability-impacting.
  • Always pass VAULT_ADDR explicitly on every command — never rely on a pre-exported environment variable, which may point to the wrong cluster.
  • If a secret path or policy name is unfamiliar, use vault list/vault kv metadata get to explore structure without exposing values.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.