Better Route Audit Enrichment

Configures Better Route's audit-log middleware so idempotency keys get hashed and logger failures never break the API response.

Tested · Works

Test report

Verdict
Tested · Works
Score
10.0/10
Tested
Jul 15, 2026
Environment
Claude Code 2.x (agent harness)
Upstream re-checked
Jul 18, 2026 · e75d4ab

Ran real request objects through the actual better-route PHP classes cloned from Lonsdale201/better-route: a naive baseline audit-logger logged the raw bearer token and raw Idempotency-Key and let a logger outage 500 the whole account-update request, while the skill-guided AuditEnricherMiddleware/AuditMiddleware setup produced a clean SHA-1'd idempotency hash, no token exposure, and swallowed the same logger failure so the request still returned 200 — every claim in the SKILL.md checked out against the live source.

Scored on four weighted criteria — install, triggering, output vs. baseline, docs. How scoring works

  • Installs cleanly 5/5
  • Triggers reliably 5/5
  • Output vs. baseline 10/10
  • Docs & honesty 5/5

What Better Route Audit Enrichment does

Documents how to wire `AuditEnricherMiddleware` and `AuditMiddleware` from the better-route PHP REST library so route audit events carry normalized auth identity, a SHA-1-hashed Idempotency-Key, and trusted-proxy-resolved client IP, while explicitly banning bearer tokens, cookies, and raw request bodies from the log. Triggers when adding audit logging, enrichment context fields, or reviewing sensitive REST write routes in a WordPress project that uses better-route 1.1+.

How to install Better Route Audit Enrichment

git clone https://github.com/Lonsdale201/wp-agent-skills.git
mkdir -p ~/.claude/skills
cp -r wp-agent-skills/better-route/br-audit-enrichment ~/.claude/skills/br-audit-enrichment

Skills live in ~/.claude/skills/ (global) or .claude/skills/ (per-project). Restart Claude Code after installing.

Commands — how to trigger Better Route Audit Enrichment

  • /br-audit-enrichment Configures Better Route's audit-log middleware so idempotency keys get hashed and logger failures never break the API response.

It also activates on plain-language prompts like these:

  • Set up audit logging middleware for this account-update REST route
  • Make sure our Idempotency-Key header gets hashed before it's logged
  • Wire up audit enrichment so bearer tokens never hit the logs

Frequently asked questions

Is the Better Route Audit Enrichment skill free?
Yes. The skill itself is free from Lonsdale201/wp-agent-skills. SkillProof publishes the install command and an independent test verdict at no cost.
Does Better Route Audit Enrichment work with Claude Code?
We tested it with Claude Code 2.x (agent harness) on Jul 15, 2026. Verdict: Tested · Works. Ran real request objects through the actual better-route PHP classes cloned from Lonsdale201/better-route: a naive baseline audit-logger logged the raw bearer token and raw Idempotency-Key and let a logger outage 500 the whole account-update request, while the skill-guided AuditEnricherMiddleware/AuditMiddleware setup produced a clean SHA-1'd idempotency hash, no token exposure, and swallowed the same logger failure so the request still returned 200 — every claim in the SKILL.md checked out against the live source.
What is the Better Route Audit Enrichment SkillProof Score?
10.0/10 — installs cleanly 5/5, triggers reliably 5/5, output vs. baseline 10/10, docs & honesty 5/5.
How do I install Better Route Audit Enrichment?
Copy the install command from this page, run it in your terminal, and restart Claude Code. Skills live in ~/.claude/skills/ (global) or .claude/skills/ inside a project.
Can I use Better Route Audit Enrichment with Cursor, Copilot, Gemini CLI, Codex or other AI tools?
The SKILL.md format is native to Claude (Claude Code, Desktop, claude.ai). The instructions inside adapt to other assistants: Cursor rules, GitHub Copilot instructions, Windsurf rules, Custom GPTs, AGENTS.md for OpenAI Codex, and GEMINI.md for Google Gemini CLI — our conversion guides cover each, and the free converter on the tools page does the wrapping for you.