feat-audit
Use when the user wants to query the local pwdev audit trail — 'ver auditoria', 'relatório de auditoria', 'audit stats', 'exportar auditoria em PDF' — summary, events, decisions, artifacts, statistics
SKILL.mdplugins/pwdev-feat/skills/feat-audit/SKILL.md
GitHubAudit trail
Schema and recording model: references/audit-schema.md. The database is shared with other
PWDEV plugins; filter with --plugin pwdev-feat when the human wants only this plugin.
Procedure
Language — resolve
lang(references/language.md).Map the argument to one command and run it from the project root:
Argument Command (empty) / summarypython3 "<plugin-root>/scripts/audit.py" summaryevents [plugin]... events [--plugin <plugin>] [--limit N]decisions/artifacts/stats... decisions/... artifacts/... statsexport... export --pdf(Markdown always; PDF only when pandoc exists)query <SQL>... query "<SQL>"Exit 2 (
AUDIT_DISABLED/AUDIT_DB_MISSING) → tell the human to enable it withfeat-init. Exit 1 (REJECTED/SQL_ERROR) → show the message; only a single read-only SELECT is accepted and the database is opened read-only.Present the Markdown output as is, translating only the headings when
langispt-BR. Unknown argument → list the commands above.
Never write to the audit database from this skill.
Language: resolve lang per references/language.md before any human-facing output. Safety: never read or expose .env* (except .env.example/.template/.sample), keys, certificates or credentials — references/safety.md. Paths references/, scripts/, templates/, schemas/ are relative to the plugin root (references/runtime.md).