Process use when you need to track database changes for compliance and security monitoring. This skill implements audit logging using triggers, application-level logging, CDC, or native logs. Trigger with phrases like "implement database audit logging", "add audit trails", "track database changes", or "monitor database activity for compliance".
SkillScore68Maintained
Automatic
◆Data Engineer packdatabasesecuritymonitoring
Last verified 8/30/2026
What it changes
Passed 15 of 22 test cases with the skill, and 9 of 22 without it.
Model gemini-3.6-flashMeasured 8/30/2026v115 of 22 cases passed with skill
Tokens, turns and time describe resource use, not a dollar price.
See it in action
One of 6 test cases the skill fixed. Same model, same prompt, with and without the skill.
1 of 6
Prompt
An auditor asks for a report of all database modifications initiated by employee '[email protected]'. Write the SQL query against audit_log ordered so the most recent changes appear first.
case-17 · gemini-3.6-flash · 8/30/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md128 lines8 filesincludes scripts
Database Audit Logger
Overview
Implement database audit logging to track all data modifications (INSERT, UPDATE, DELETE) with full before/after values, user identity, timestamps, and application context. This skill supports trigger-based auditing for PostgreSQL and MySQL, change data capture (CDC) patterns, and application-level audit logging.
Prerequisites
Database credentials with CREATE TABLE, CREATE FUNCTION, and CREATE TRIGGER permissions
psql or mysql CLI for executing audit setup DDL
Understanding of applicable compliance requirements (which tables, which operations, retention period)
Estimated storage for audit logs: plan for 10-30% of the audited table's data volume per year
Separate tablespace or storage volume for audit data to prevent audit growth from affecting application performance
Instructions
Identify tables requiring audit logging based on compliance and business needs: