Compliance
Security toolkit for logging, tracking, and exporting compliance-related activities. Each command records timestamped entries to its own log file. Call without arguments to view recent entries; call with arguments to record a new entry.
Commands
| Command |
What it does |
compliance generate <input> |
Record a generate entry (no args = show recent) |
compliance check-strength <input> |
Record a check-strength entry (no args = show recent) |
compliance rotate <input> |
Record a rotate entry (no args = show recent) |
compliance audit <input> |
Record an audit entry (no args = show recent) |
compliance store <input> |
Record a store entry (no args = show recent) |
compliance retrieve <input> |
Record a retrieve entry (no args = show recent) |
compliance expire <input> |
Record an expire entry (no args = show recent) |
compliance policy <input> |
Record a policy entry (no args = show recent) |
compliance report <input> |
Record a report entry (no args = show recent) |
compliance hash <input> |
Record a hash entry (no args = show recent) |
compliance verify <input> |
Record a verify entry (no args = show recent) |
compliance revoke <input> |
Record a revoke entry (no args = show recent) |
compliance stats |
Show summary statistics across all log files |
compliance export <fmt> |
Export all data to json, csv, or txt format |
compliance search <term> |
Search all log entries for a keyword |
compliance recent |
Show the 20 most recent history entries |
compliance status |
Health check — version, entry count, disk usage, last activity |
compliance help |
Show help message |
compliance version |
Show version (v2.0.0) |
Data Storage
All data is stored locally in ~/.local/share/compliance/. Each command writes to its own .log file (e.g., audit.log, policy.log). A unified history.log tracks all activity with timestamps.
Requirements
- Bash 4+
- Standard Unix utilities (
wc, du, tail, grep, date, sed)
When to Use
- Logging compliance audit findings, policy checks, and security events with timestamps
- Tracking credential rotations, revocations, and strength checks over time
- Recording data store/retrieve operations for audit trail purposes
- Searching historical compliance entries by keyword
- Exporting compliance records to JSON, CSV, or plain text for regulatory reporting
Examples
# Record an audit finding
compliance audit "reviewed access controls for prod database — 3 issues found"
# Log a credential rotation
compliance rotate "rotated API keys for payment gateway"
# Record a policy update
compliance policy "updated data retention policy to 90 days"
# Check password strength assessment
compliance check-strength "admin account meets complexity requirements"
# Search all logs for "database"
compliance search database
# Export compliance records to JSON
compliance export json
# View overall stats
compliance stats
Powered by BytesAgain | bytesagain.com | hello@bytesagain.com
1---
2name: compliance
3description: "Track compliance requirements and generate audit trail reports. Use when auditing controls, checking policies, generating audit trails."
4version: "1.0.0"
5author: "BytesAgain"
6homepage: https://bytesagain.com
7source: https://github.com/bytesagain/ai-skills
8tags: ["encryption", "protection", "compliance", "security", "privacy"]
9metadata:
10 source: https://skillmd.com/skills/bytesagain/compliance
11---
12
13# Compliance
14
15Security toolkit for logging, tracking, and exporting compliance-related activities. Each command records timestamped entries to its own log file. Call without arguments to view recent entries; call with arguments to record a new entry.
16
17## Commands
18
19| Command | What it does |
20|---------|-------------|
21| `compliance generate <input>` | Record a generate entry (no args = show recent) |
22| `compliance check-strength <input>` | Record a check-strength entry (no args = show recent) |
23| `compliance rotate <input>` | Record a rotate entry (no args = show recent) |
24| `compliance audit <input>` | Record an audit entry (no args = show recent) |
25| `compliance store <input>` | Record a store entry (no args = show recent) |
26| `compliance retrieve <input>` | Record a retrieve entry (no args = show recent) |
27| `compliance expire <input>` | Record an expire entry (no args = show recent) |
28| `compliance policy <input>` | Record a policy entry (no args = show recent) |
29| `compliance report <input>` | Record a report entry (no args = show recent) |
30| `compliance hash <input>` | Record a hash entry (no args = show recent) |
31| `compliance verify <input>` | Record a verify entry (no args = show recent) |
32| `compliance revoke <input>` | Record a revoke entry (no args = show recent) |
33| `compliance stats` | Show summary statistics across all log files |
34| `compliance export <fmt>` | Export all data to json, csv, or txt format |
35| `compliance search <term>` | Search all log entries for a keyword |
36| `compliance recent` | Show the 20 most recent history entries |
37| `compliance status` | Health check — version, entry count, disk usage, last activity |
38| `compliance help` | Show help message |
39| `compliance version` | Show version (v2.0.0) |
40
41## Data Storage
42
43All data is stored locally in `~/.local/share/compliance/`. Each command writes to its own `.log` file (e.g., `audit.log`, `policy.log`). A unified `history.log` tracks all activity with timestamps.
44
45## Requirements
46
47- Bash 4+
48- Standard Unix utilities (`wc`, `du`, `tail`, `grep`, `date`, `sed`)
49
50## When to Use
51
52- Logging compliance audit findings, policy checks, and security events with timestamps
53- Tracking credential rotations, revocations, and strength checks over time
54- Recording data store/retrieve operations for audit trail purposes
55- Searching historical compliance entries by keyword
56- Exporting compliance records to JSON, CSV, or plain text for regulatory reporting
57
58## Examples
59
60```bash
61# Record an audit finding
62compliance audit "reviewed access controls for prod database — 3 issues found"
63
64# Log a credential rotation
65compliance rotate "rotated API keys for payment gateway"
66
67# Record a policy update
68compliance policy "updated data retention policy to 90 days"
69
70# Check password strength assessment
71compliance check-strength "admin account meets complexity requirements"
72
73# Search all logs for "database"
74compliance search database
75
76# Export compliance records to JSON
77compliance export json
78
79# View overall stats
80compliance stats
81```
82
83---
84Powered by BytesAgain | bytesagain.com | hello@bytesagain.com