hai-audit
OfficialUnified audit logs for secure, traceable events
Authorhai-series
Version1.0.0
Installs0
System Documentation
What problem does it solve?
审计日志的记录、查询、清理与统计是确保系统操作可追溯、合规审计的关键。本 Skill 提供基于 @h-ai/reldb 的统一审计日志模块,简化日志生成、检索、清理和统计分析的整合。
Core Features & Use Cases
- 记录审计日志:集中记录用户行为、安全事件等关键操作,确保可追溯性。
- 分页查询与统计:提供分页列表、按时间/用户筛选与统计分析,支持报表生成。
- 便捷助手与集成:提供 audit.helper 便捷方法,集成到应用的身份认证与权限体系中。
- 兼容性与初始化:依赖已初始化的 reldb 实例,统一的生命周期管理,提高稳定性。
常见场景包括登录/登出审计、CRUD 操作审计、合规报表等。
Quick Start
在应用中先初始化依赖的 reldb,然后初始化 audit 模块并开始记录日志。
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: hai-audit Download link: https://github.com/hai-series/hai-framework/archive/main.zip#hai-audit Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.