Skip to main content
Execute qualquer Skill no Manus
com um clique

audit-wire

Estrelas2
Forks0
Atualizado6 de junho de 2026 às 19:28

Wire correct compliance logging into a Kinroster API route that touches PHI: an actor-centric audit event via logAudit() (extending the AuditEventType / AuditObjectType unions when the event/object is new) and, for any disclosure of PHI to a recipient, an append-only disclosure_events insert with the right recipient_type / legal_basis / categories_shared / source_note_ids / delivery_method. Use this skill when the user says any of: "add audit logging to this route", "wire up the audit event", "log this disclosure", "add a disclosure event", "/audit-wire". IMPORTANT: audit_events is written via the logAudit() helper (service-role, fire-and-forget, never blocks the request); disclosure_events is an awaited insert via the AUTHENTICATED client (it has an RLS INSERT policy). Never log PHI into metadata. Never double-log notes / notes_sensitive_access — DB triggers already cover those.

Instalação

Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.

SKILL.md
readonly