# Audit Query

> Generate audit-grade records for sensitive SQL operations including approvals, risk outcomes, and execution traces.

- Skill: `rweisssieker-xp/audit-query` (Agent Skill)
- Install (CLI): `npx skillmds@latest add rweisssieker-xp/audit-query`
- Raw SKILL.md: https://api.skillmd.com/api/skills/rweisssieker-xp/audit-query/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Data & Analytics
- Author: rweisssieker-xp (https://skillmd.com/u/rweisssieker-xp)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/rweisssieker-xp/audit-query

---


# Audit Query

## Use when
- User or policy requires immutable evidence trail for governance/compliance.

## Workflow
1. Capture request context, actor, environment, and policy context.
2. Attach parsed query fingerprint and risk decision.
3. Record outcomes, anomalies, and deviations.
4. Produce a signed audit artifact when applicable.

## Governance
- Ensure immutable append-only behavior.
- Redact secrets and raw sensitive literals in logs.

## Output
- `auditEntryId`, `requestFingerprint`, `decisionLog`, `approvalChain`, `trace`

