audit-log-schema

Define an immutable, tenant-scoped audit log schema for the Myelin platform.

1|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/Seth-arc/myelin-platform --skill audit-log-schema
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: audit-log-schema
Source: https://github.com/Seth-arc/myelin-platform/tree/main/primary_build_source/docs/skills/4/mnt/user-data/outputs/audit-log-schema
Command: npx skills add https://github.com/Seth-arc/myelin-platform --skill audit-log-schema

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill ensures that all critical actions performed on the Myelin platform are immutably recorded, providing a ground truth for compliance, security investigations, and operational auditing.

Core Features & Use Cases

  • Immutable Audit Trail: Every action is logged once and cannot be altered or deleted.
  • Comprehensive Schema: Defines a detailed structure for audit entries, including actor, action, resource, and outcome.
  • Trigger List: Provides a standardized set of action codes for consistent logging across the platform.
  • Query API: Enables administrators and regulators to retrieve audit data based on various filters.
  • Use Case: When a user's role is changed, this Skill logs the ROLE_ASSIGNMENT_REVOKED or ROLE_ASSIGNMENT_CREATED event, capturing who made the change, when, and for which user and role.

Quick Start

Use the audit-log-schema skill to write an audit entry for a successful user login.

Frequently Asked Questions about audit-log-schema

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is an immutable audit log schema and when do I need it for compliance?

An immutable audit log schema records actions permanently without allowing alterations. You need it for compliance and security investigations when maintaining a verifiable ground truth for privileged actions, policy changes, role assignments, and data exports across your platform.

How do I log privileged user actions and security events with an audit trail?

You log privileged actions by writing entries to a tenant-scoped audit trail using standardized action codes. The schema captures the actor, action, resource, and outcome, supporting both synchronous and buffered writes to ensure security events are consistently recorded.

Can I use synchronous and buffered writes for audit logging on my platform?

Yes, the audit log schema supports both synchronous and buffered writes. Synchronous writes capture critical security events immediately, while buffered writes handle high-volume logging efficiently, ensuring your platform maintains comprehensive audit trails without performance bottlenecks.

What metadata should a compliance audit log entry capture for regulators?

A compliance audit log entry should capture the actor, action, resource, and outcome. This detailed metadata allows administrators and regulators to retrieve specific audit data using query APIs based on various filters for thorough security investigations and operational auditing.

What is the best way to structure a tenant-scoped audit trail for security events?

The best way to structure a tenant-scoped audit trail is using a comprehensive schema with standardized trigger lists for action codes. This ensures consistent logging of role assignments and security events, providing a reliable query API for administrators and regulators.

Are there limitations to what can be altered in an immutable audit log?

Yes, the primary limitation of an immutable audit log is that once an action is logged, it cannot be altered or deleted. This ensures data integrity for compliance but requires accurate initial entry capture, as corrections cannot be made retroactively.