hashimiche/hal/audit
Claude Code and agent skill by hashimiche/hal
- community
Checking that the SKILL.md file is still in the repository.
Enable, disable, verify, and explain Vault audit devices in the local hal lab. Use this skill when the user asks to enable audit logging, stream Vault logs to Loki/Grafana, find where audit logs are stored, reset audit devices, or troubleshoot why Vault is blocking on audit writes. Triggers include "enable audit", "vault logging", "stream to loki", "where are the audit logs", "hal vault audit", and "reset audit device".
Install
npx vskill@latest install hashimiche/hal/auditSKILL.md
The same SKILL.md was published earlier as hashimiche/hal/audit.
Hal Vault Audit Configurator
Use this skill to manage Vault audit devices in the local HAL lab.
Lab Assumptions
- Vault runs locally at
http://vault.localhost:8200 - The default root token is
root - Prefer
halcommands for lifecycle actions - For day-2 inspection after deployment, provide exact
vault readordocker execcommands rather than telling the user to edit Go code
What This Skill Covers
- Enabling or disabling Vault audit logging
- Explaining the Loki/Promtail shared-volume pattern used by the lab
- Verifying mounted audit devices and their target paths
- Showing the user how to inspect or tail the logs safely
- Troubleshooting blocked Vault behavior caused by audit device write failures
- Confirming the observability URLs when the obs stack is present
Workflow
Step 1: Choose the correct lifecycle action
Use the smart status mode first if the user is unsure what is already configured:
hal vault audit
Then run the appropriate lifecycle command:
hal vault audit enable hal vault audit enable --loki hal vault audit --update --loki hal vault audit disable
If the user specifically asks for Loki/Grafana integration, prefer --loki because the code mounts /vault/logs/audit.log inside the Vault container and lets Promtail read the file passively.
Step 2: Verify the resulting state
If Vault MCP is available, inspect:
sys/audit
If MCP is not available, use CLI verification commands:
export VAULT_ADDR='http://vault.localhost:8200' export VAULT_TOKEN='root'
vault read sys/audit docker exec -it hal-vault ls -l /vault/logs docker exec -it hal-vault tail -n 20 /vault/logs/audit.log
If observability is enabled, also verify:
hal obs status
Step 3: Explain the architecture clearly
State that the HAL lab favors the file audit device pointed at /vault/logs/audit.log.
Why this matters:
- Vault writes locally to disk inside the container
- Promtail reads the shared Docker volume passively
- If Loki or Promtail is unavailable, Vault does not block on a remote network hop
- If local disk is full and Vault cannot write the file, Vault can block operations until the device is disabled or storage is cleaned up
Step 4: Present structured results
Tier 1 — Success Summary Provide a brief confirmation of the enabled audit device and whether Loki integration is in use.
Tier 2 — Configuration Details Table Include the real mounted path and file target when available:
| Device Path | Type | Target | Purpose | |
|---|---|---|---|---|
file/ | file | /vault/logs/audit.log | Primary local log / Loki source |
Tier 3 — Actionable Insights & Testing Provide at least one of these commands:
export VAULT_ADDR='http://vault.localhost:8200' export VAULT_TOKEN='root'
vault read sys/audit docker exec -it hal-vault tail -f /vault/logs/audit.log
If the user also has observability deployed, mention these surfaces explicitly:
- Grafana:
http://grafana.localhost:3000 - Loki:
http://loki.localhost:3100/ready - Prometheus:
http://prometheus.localhost:9090
Expected Lab State
- Audit path defaults to
file/ - File target defaults to
/vault/logs/audit.log --updatedisables the device first, then re-enables it- Disabling the file device also purges the old log file inside the container
Handling Edge Cases
- Vault is offline: Instruct the user to run
hal vault createfirst. - Blocked Vault due to audit write failure: Explain that Vault can block operations if it cannot write to the audit sink. Check disk space and the log file target.
- Stale audit configuration: Use
hal vault audit --update --lokito reset the device cleanly. - User wants raw log analysis rather than configuration: Switch to the
audit-analysisskill.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinginternal/skills/data/vault/audit/SKILL.md
Popularity
- Repository stars
- 30
- Repository forks
- 9
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hashimiche/hal/audit)