/engineering-advanced-skills:secrets-vault-managerfrom engineering-advanced-skills
Generates HashiCorp Vault configs, plans secret rotation from an inventory, and flags suspicious access in Vault audit logs. Use when setting up Vault, scheduling rotation, or investigating secret access.
Ships in engineering-advanced-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
The agent generates reviewed HashiCorp Vault configuration, turns a secrets inventory into a rotation schedule, and screens Vault audit logs for root-token use, off-hours access, bulk reads, failed authentication and sensitive paths. Nothing here talks to a live Vault: the tools read local files and print or write files.
Before generating configs or plans, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.
--env, --secrets-engines; shapes the generated HCL).Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.
# Generate Vault configuration
python3 scripts/vault_config_generator.py --env production --secrets-engines kv,database,transit
# Plan secret rotation schedule (the sample's dates are relative to today, so the plan always mixes states)
INV="$(mktemp -d)/inventory.json"
python3 scripts/rotation_planner.py --generate-sample > "$INV"
python3 scripts/rotation_planner.py --inventory "$INV" # exit 1: two secrets overdue
# Analyze vault audit logs
python3 scripts/audit_log_analyzer.py --log-file assets/sample_audit_sound.log # exit 0: no alerts
python3 scripts/audit_log_analyzer.py --log-file assets/sample_audit_flawed.log # exit 1: root token at 03:00, policy change
| Tool | Purpose | Key Flags |
|---|---|---|
vault_config_generator.py | Generate HashiCorp Vault configurations | --env, --secrets-engines, --auth-methods |
rotation_planner.py | Plan and schedule secret rotation cycles | --inventory, --generate-sample, --policy, --filter-priority, --filter-owner, --format |
audit_log_analyzer.py | Analyze vault audit logs for anomalies | --log-file, --bulk-threshold, --auth-threshold, --format |
Exit codes: vault_config_generator.py 0 written, 2 bad option. rotation_planner.py 0 nothing overdue, 1 overdue secrets, 2 unreadable or malformed inventory. audit_log_analyzer.py 0 no alerts, 1 alerts (critical ones are marked in the report), 2 missing file or no parseable audit entries. A log with nothing parseable is an error, not a clean result; skipped lines are counted on stderr.
vault_config_generator.py to generate HCL configsrotation_planner.py to generate scheduleaudit_log_analyzer.py; read the skipped-line count on stderr, because skipped lines are events nobody screened.In Scope:
vault_config_generator.py: server config, secrets engines (kv, database, transit, pki, aws, ssh), auth methods (approle, kubernetes, oidc, token, userpass) and a policy, per environment, with optional HA.rotation_planner.py, including custom policies, priority and owner filters, and a sample inventory generator.audit_log_analyzer.py: off-hours access, bulk reads, failed authentication, root token use and unusual paths.references/secrets-management-guide.md.Out of Scope:
.env scaffolding, leaked-secret scanning and other secret stores (see engineering/env-secrets-manager/).engineering/cloud-security/).engineering/terraform-patterns/).Important Caveats:
--no-tls is for development only.--bulk-threshold, --auth-threshold, a 22:00-06:00 off-hours window applied to the logged timestamps). Alerts need investigation, and a quiet report does not show that no misuse took place.Mistake: Treating a quiet analyzer report as proof nothing happened. Why it matters: The rules are fixed thresholds; misuse below them, or in lines the parser skipped, does not raise an alert. Instead: Check the skipped-line count and the event totals, and sample the raw log for the paths that matter.
Mistake: Using the root token for routine work. Why it matters: Root bypasses every policy and its use cannot be scoped or easily attributed. Instead: Generate a root token only for break-glass tasks, revoke it straight after, and alert on any root-policy event.
Mistake: Applying generated HCL as is.
Why it matters: Storage, TLS, network and policy paths are placeholders for your environment; --no-tls configs leak secrets in transit.
Instead: Review every block against the deployed Vault version's documentation and apply through code review.
| File | Purpose |
|---|---|
scripts/vault_config_generator.py | Vault server, engine, auth and policy HCL per environment |
scripts/rotation_planner.py | Rotation schedule from a JSON inventory |
scripts/audit_log_analyzer.py | Rule-based screening of Vault audit logs |
assets/sample_audit_sound.log | Ten business-hours reads by a service token; no alerts |
assets/sample_audit_flawed.log | Root-token reads at 03:00, failed logins, a policy change; exits 1 |
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub borghei/claude-skills --plugin engineering-advanced-skills100 skills in this plugin
/a11y-auditStatic WCAG scan of HTML files (alt text, headings, labels, ARIA, lang, landmarks) and colour contrast checks for colour pairs or CSS. Use when auditing templates for accessibility, checking contrast, or adding an a11y gate to CI.
/agent-designerDesigns multi-agent system architectures with orchestration patterns, tool schemas, and performance evaluation. Use when building AI agent systems, designing agent workflows, creating tool schemas, or evaluating agent performance.
/agent-harnessTest and evaluation harness for AI agents — scenario suites, deterministic replay, regression diffing, cost and latency budgets. Use when agent quality is vibe-checked, before shipping a prompt or model change, or when evals drift.
Other plugins' skills for the same job