Skip to main content
Run any Skill in Manus
with one click

audit-wire

Stars2
Forks0
UpdatedJune 6, 2026 at 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.

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

SKILL.md
readonly