Consent
/install consent
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 \x3Cinput> |
Generate a new entry and log it |
consent check-strength \x3Cinput> |
Check strength of a given input and record the result |
consent rotate \x3Cinput> |
Rotate a credential or token and log the change |
consent audit \x3Cinput> |
Record an audit entry for compliance tracking |
consent store \x3Cinput> |
Store a value securely in the local data log |
consent retrieve \x3Cinput> |
Retrieve a previously stored value |
consent expire \x3Cinput> |
Mark an entry as expired |
consent policy \x3Cinput> |
Record or update a policy entry |
consent report \x3Cinput> |
Generate a report entry for review |
consent hash \x3Cinput> |
Hash a value and store the result |
consent verify \x3Cinput> |
Verify a value against stored records |
consent revoke \x3Cinput> |
Revoke a previously granted consent or credential |
consent stats |
Show summary statistics: entry counts, data size, first activity date |
consent export \x3Cfmt> |
Export all data in json, csv, or txt format |
consent search \x3Cterm> |
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
- With arguments: Each command logs the input with a timestamp to its own dedicated log file (e.g.,
generate.log,audit.log) - Without arguments: Each command displays the 20 most recent entries from its log file
Data Storage
- Default data directory:
~/.local/share/consent/ - Per-command logs:
$DATA_DIR/\x3Ccommand>.log(e.g.,generate.log,audit.log,store.log) - History log:
$DATA_DIR/history.log— master timeline of all activity - Export files:
$DATA_DIR/export.\x3Cfmt>— generated by theexportcommand - All data is local plain-text. No network calls, no cloud sync.
Requirements
- Bash 4+ (uses
set -euo pipefail) - No external dependencies or API keys required
- Works entirely offline — your data stays on your machine
When to Use
- Tracking consent and compliance — Record who consented to what and when with
store,audit, andpolicyfor a simple compliance trail - Credential rotation logging — Use
rotateandexpireto log when credentials were changed or invalidated - Security auditing — Run
auditentries and pullreportdata to review security posture over time - Exporting compliance data — Use
export jsonorexport csvto produce machine-readable records for external auditing tools - Quick lookups and verification — Search across all logs with
searchor verify specific entries withverifyandhash
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 json
# Search across all logs
consent search "alice"
# View summary statistics
consent stats
# Health check
consent status
# Show 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
- Run any command without arguments to see its recent entries — great for quick review
- Use
consent recentto see a timeline of all activity across all commands - Pipe exports to other tools:
consent export csv && cat ~/.local/share/consent/export.csv | head - Combine
searchwith grep for complex queries:consent search "2025" | grep "policy" - Run
consent helpat any time for the full command reference
Powered by BytesAgain | bytesagain.com | [email protected]
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install consent - 安装完成后,直接呼叫该 Skill 的名称或使用
/consent触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Consent 是什么?
Build cookie consent banners and track opt-in compliance status. Use when implementing GDPR consent, auditing cookies, generating privacy banners. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 330 次。
如何安装 Consent?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install consent」即可一键安装,无需额外配置。
Consent 是免费的吗?
是的,Consent 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Consent 支持哪些平台?
Consent 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Consent?
由 bytesagain1(@bytesagain1)开发并维护,当前版本 v2.0.1。