Skip to main content
skill CX Codex

vault-user — Claude Code skill: what it does, how to install

Connects coding agents to a local HashiCorp Vault instance in OpenRig to check health, inspect paths, and manage secrets.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add mvschwarz/openrig --skill vault-user -a claude-code
Open on GitHub

What vault-user does

The skill provides operational instructions for interacting with a local HashiCorp Vault instance at http://127.0.0.1:8200. It configures requests with the default token openrig-dev-token in the X-Vault-Token header. Before sending raw API queries, it verifies service availability using the rig env status command.

Interactions rely on curl and jq against the KV secrets engine mounted at secret/. The agent checks initialization and unseal flags through /v1/sys/health, extracts values from .data.data, deletes paths, and recursively navigates /v1/secret/metadata/ to map existing keys.

This setup targets Vault dev mode. Because storage resides entirely in memory, restarting the instance wipes every stored secret immediately.

What it helps with

  • inspect Vault health and seal status
  • store key-value pairs at secret/data/<path>
  • retrieve secret data from .data.data
  • map out keys under secret/metadata/
  • wipe secret records at target endpoints

Example prompts for the agent

  • Check Vault health and report if it is unsealed.
  • Store a new secret with key api_key under secret/data/services.
  • List all metadata paths in Vault and explain their layout.

How to install vault-user

1Skills CLI (Vercel)

npx skills add mvschwarz/openrig --skill vault-user -a claude-code

2Manually: put the files in place

~/.claude/skills/vault-user/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/vault-user/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about vault-user

How do I install vault-user in Claude Code?

Run npx skills add mvschwarz/openrig --skill vault-user -a claude-code in your terminal. This creates ~/.claude/skills/vault-user/SKILL.md.

What does vault-user do?

It guides the assistant through curl commands to manage a local HashiCorp Vault instance. The agent can check health, inspect structure, read payloads, and delete keys.

Does this skill support persistent secret storage?

No. The target environment runs Vault in dev mode, so all data remains in-memory and disappears whenever the server restarts.

Source text

SKILL.md · Apache-2.0
---
name: vault-user
description: Use when checking the health of this rig's HashiCorp Vault or writing, reading, listing, deleting or explaining its secrets.
---

# Vault User

You have access to a HashiCorp Vault instance managed by this rig's environment.

## Connection

- **Address:** `http://127.0.0.1:8200`
- **Token:** `openrig-dev-token`
- **Auth header:** `X-Vault-Token: openrig-dev-token`

Always set the token before making API calls. For curl, use `-H "X-Vault-Token: openrig-dev-token"`.

## Health Check

```bash
curl -s http://127.0.0.1:8200/v1/sys/health | jq .
```

A healthy response has `"initialized": true` and `"sealed": false`.

## Secret Operations

### Write a secret

```bash
curl -s -X POST http://127.0.0.1:8200/v1/secret/data/<path> \
  -H "X-Vault-Token: openrig-dev-token" \
  -d '{"data": {"key": "value"}}' | jq .
```

### Read a secret

```bash
curl -s http://127.0.0.1:8200/v1/secret/data/<path> \
  -H "X-Vault-Token: openrig-dev-token" | jq .
```

The secret value is in `.data.data`.

### List secrets

```bash
curl -s -X LIST http://127.0.0.1:8200/v1/secret/metadata/ \
  -H "X-Vault-Token: openrig-dev-token" | jq .
```

List a subdirectory by appending the path: `.../secret/metadata/<prefix>/`.

### Delete a secret

```bash
curl -s -X DELETE http://127.0.0.1:8200/v1/secret/data/<path> \
  -H "X-Vault-Token: openrig-dev-token"
```

## Explaining Secrets

When asked to explain the current secret structure, list all paths and summarize what each contains. Use the list endpoint recursively if needed.

## Important Notes

- This is Vault dev mode — all data is in-memory and lost on restart
- The KV secrets engine is mounted at `secret/` by default in dev mode
- Use the `rig env status` command to verify Vault health through OpenRig before direct probing

© mvschwarz · Apache-2.0 · mvschwarz/openrig

Similar skills

All skills for Security →

From the same set49

software-for-agents This deprecated skill routes older OpenRig instructions to agent-operated-software. It helps projects that still refer to the former skill name. CX Codex +1 ★ 8,227repo stars session-compaction-and-restore A skill for anyone who assumes a seat survives compaction, restart or a refresh: it keeps working state and product intent from slipping away. CX Codex +1 ★ 8,227repo stars seat-continuity-and-handover Manages agent occupant replacement in OpenRig seats without mutating live topology addresses. Useful for orchestrating clean rebuilds, forks, and provenance tracking across agent transitions. CX Codex +1 ★ 8,227repo stars retiring-and-inheriting-a-seat This skill manages a planned seat change when an agent is nearing its context limit. It prepares a handover packet and guides the successor through takeover. CX Codex +1 ★ 8,227repo stars refocusing A skill for long agent sessions: it re-grounds the agent in current intent and context without throwing away what it learned. CX Codex +1 ★ 8,227repo stars queue-handoff Enforces durable work handoffs through OpenRig queue items, preventing tasks from stalling across context compactions, interruptions, or human escalations. CX Codex +1 ★ 8,227repo stars orienting-to-an-inherited-seat This skill guides an agent taking over an existing seat after a planned handover. It covers what to carry forward and what to verify first. CX Codex +1 ★ 8,227repo stars openrig-user A reference skill for the rig CLI: exact command syntax, JSON shape, defaults and error meanings once you already know which command to run. CX Codex +1 ★ 8,227repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor