Consent
by @bytesagain1
Build cookie consent banners and track opt-in compliance status. Use when implementing GDPR consent, auditing cookies, generating privacy banners.
clawhub install consentπ About This Skill
name: consent version: "2.0.0" author: BytesAgain homepage: https://bytesagain.com source: https://github.com/bytesagain/ai-skills license: MIT-0 tags: [consent, tool, utility] description: "Build cookie consent banners and track opt-in compliance status. Use when implementing GDPR consent, auditing cookies, generating privacy banners."
Consent
Security toolkit for managing consent records β generate tokens, check strength, rotate credentials, audit logs, store and retrieve entries, manage policies, and produce compliance reports. All data stays local.
Commands
| Command | Description |
|---------|-------------|
| consent generate | Generate a new entry and log it |
| consent check-strength | Check strength of a given input and record the result |
| consent rotate | Rotate a credential or token and log the change |
| consent audit | Record an audit entry for compliance tracking |
| consent store | Store a value securely in the local data log |
| consent retrieve | Retrieve a previously stored value |
| consent expire | Mark an entry as expired |
| consent policy | Record or update a policy entry |
| consent report | Generate a report entry for review |
| consent hash | Hash a value and store the result |
| consent verify | Verify a value against stored records |
| consent revoke | Revoke a previously granted consent or credential |
| consent stats | Show summary statistics: entry counts, data size, first activity date |
| consent export | Export all data in json, csv, or txt format |
| consent search | Search across all logs for a keyword |
| consent recent | Show the 20 most recent activity entries |
| consent status | Health check: version, data dir, entry count, disk usage, last activity |
| consent help | Show help with all available commands |
| consent version | Show current version |
Command Behavior
generate.log, audit.log)Data Storage
~/.local/share/consent/$DATA_DIR/.log (e.g., generate.log, audit.log, store.log)$DATA_DIR/history.log β master timeline of all activity$DATA_DIR/export. β generated by the export commandRequirements
set -euo pipefail)When to Use
1. Tracking consent and compliance β Record who consented to what and when with store, audit, and policy for a simple compliance trail
2. Credential rotation logging β Use rotate and expire to log when credentials were changed or invalidated
3. Security auditing β Run audit entries and pull report data to review security posture over time
4. Exporting compliance data β Use export json or export csv to produce machine-readable records for external auditing tools
5. Quick lookups and verification β Search across all logs with search or verify specific entries with verify and hash
Examples
# Store a consent record
consent store "user:alice accepted terms-of-service v2.1"Audit a policy change
consent audit "updated data retention policy to 90 days"Generate a new token entry
consent generate "api-key-prod-2025"Rotate a credential and log it
consent rotate "db-password-main rotated"Check strength of a passphrase
consent check-strength "my-complex-passphrase-2025!"Export all data as JSON
consent export jsonSearch across all logs
consent search "alice"View summary statistics
consent statsHealth check
consent statusShow recent activity
consent recent
How It Works
Each domain command (generate, audit, store, etc.) maintains its own log file in the data directory. Entries are stored as timestamp|value lines. The stats command aggregates counts across all log files. The export command merges all logs into a single file in your chosen format. Every action is also recorded in history.log as a master audit trail.
Tips
consent recent to see a timeline of all activity across all commandsconsent export csv && cat ~/.local/share/consent/export.csv | headsearch with grep for complex queries: consent search "2025" | grep "policy"consent help at any time for the full command referencePowered by BytesAgain | bytesagain.com | hello@bytesagain.com
β‘ When to Use
π‘ Examples
# Store a consent record
consent store "user:alice accepted terms-of-service v2.1"Audit a policy change
consent audit "updated data retention policy to 90 days"Generate a new token entry
consent generate "api-key-prod-2025"Rotate a credential and log it
consent rotate "db-password-main rotated"Check strength of a passphrase
consent check-strength "my-complex-passphrase-2025!"Export all data as JSON
consent export jsonSearch across all logs
consent search "alice"View summary statistics
consent statsHealth check
consent statusShow recent activity
consent recent
π Tips & Best Practices
consent recent to see a timeline of all activity across all commandsconsent export csv && cat ~/.local/share/consent/export.csv | headsearch with grep for complex queries: consent search "2025" | grep "policy"consent help at any time for the full command referencePowered by BytesAgain | bytesagain.com | hello@bytesagain.com