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
In this repository54 other files it gives its agents.
- alibabacloud-cliSkill
- ansible-cliSkill
- appdynamics-cliSkill
- argocd-cliSkill
- aws-cliSkill
- aws-cloudwatch-cliSkill
- azure-cliSkill
- bash-lintingSkill
- betterstack-cliSkill
- bitbucket-cliSkill
- chef-cliSkill
- code-reviewSkill
- commit-codeSkill
- create-dockerfileSkill
- create-terraform-helm-upgrade-planSkill
- datadog-cliSkill
- digitalocean-cliSkill
- dockerfile-lintingSkill
- dynatrace-cliSkill
- elasticsearch-cliSkill
- gcp-cliSkill
- github-cliSkill
- gitlab-cliSkill
- go-lintingSkill
- grafana-cliSkill
- grafana-loki-cliSkill
- graylog-cliSkill
- helm-cliSkill
- hetzner-cliSkill
- huaweicloud-cliSkill
- jaeger-cliSkill
- jenkins-cliSkill
- jira-and-confluence-cliSkill
- kibana-cliSkill
- kubernetes-cliSkill
- loggly-cliSkill
- maintenance-check-aws-eksSkill
- maintenance-create-ticket-on-jiraSkill
- ms-teams-cliSkill
- mysql-cliSkill
- newrelic-cliSkill
- oci-cliSkill
- packer-cliSkill
- papertrail-cliSkill
- postgresql-cliSkill
- prometheus-cliSkill
- python-lintingSkill
- rollbar-cliSkill
- salesforce-cliSkill
- sentry-cliSkill
- slack-cliSkill
- splunk-cliSkill
- terraform-cliSkill
- terraform-lintingSkill
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
- Very specific: line 8
Use the address table and rules below when constructing all vault commands.
- Distinctive: line 12
Update the table below with your Vault cluster addresses before using this skill:
- Distinctive: line 19
If the target environment is unclear, ask the user before running any command.
- Very specific: line 23
If vault is not installed or not authenticated, inform the user that setup is required and ask them to complete the following steps …
- Very specific: line 34
Always set VAULT_ADDR and VAULT_TOKEN explicitly per command — never rely on shell-exported environment variables that could leak into …
- Distinctive: line 76
NEVER target a Vault address not listed in the configuration table above.
- Very specific: line 77
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 …
- Very specific: line 78
NEVER print, display, log, or store the contents of any token file or VAULT_TOKEN value.
- Very specific: line 79
NEVER run vault kv delete, destroy, operator seal/unseal, or token revoke without explicit user instruction — these are destructive or …
- Very specific: line 80
Always pass VAULT_ADDR explicitly on every command — never rely on a pre-exported environment variable, which may point to the wrong …
- Very specific: line 81
If a secret path or policy name is unfamiliar, use vault list/vault kv metadata get to explore structure without exposing values.
≈ “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.
Files
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:
| Environment | VAULT_ADDR | Token File |
| Production | https://<your-vault-prod-addr>:8200 | ~/.vault/prod.token |
| Staging / Non-Prod | https://<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)
| Command | Description |
vault status | Show seal/HA status |
vault secrets list | List 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 list | List enabled auth methods |
vault token lookup | Show info about the current token (not other tokens) |
Mutating operations (confirm with user before running)
| Command | Description |
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
| Command | Reason |
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/unseal | Alters cluster availability instance-wide |
vault token revoke/revoke-orphan | Invalidates 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 readon 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_TOKENvalue. - NEVER run
vault kv delete,destroy,operator seal/unseal, ortoken revokewithout explicit user instruction — these are destructive or availability-impacting. - Always pass
VAULT_ADDRexplicitly 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 getto explore structure without exposing values.
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
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.

