The skill package that connects your AI agent to Agent Constitution. Constitution checks, secure vault, health sync, and drift testing — all in bash scripts.
| Requirement | Details |
|---|---|
| OpenClaw | AI agent framework — openclaw.ai |
| iOS App | Agent Constitution for iPhone |
| jq | brew install jq (macOS) or apt install jq (Linux) |
| bash | Version 4+ recommended |
cd $WORKSPACE/skills
git clone https://github.com/arunrlverma/agent-constitution.git
bash agent-constitution/scripts/setup.sh
Open the iOS app → tap "Pair Agent" → get a code like CLAW-A1B2C3D4
bash skills/agent-constitution/scripts/pair.sh CLAW-A1B2C3D4
The setup script patches your agent's AGENTS.md and HEARTBEAT.md to automatically check directives before restricted actions.
Request approval before a restricted action:
bash skills/agent-constitution/scripts/check-constitution.sh \
--rule "Ask before sending work emails" \
--action "Send email to team@company.com" \
--reason "User requested weekly update"
# Exit 0 = approved, Exit 1 = denied/timeout
Request sensitive data protected by Face ID:
# Types: identity, payment, ssn, bank_account, otp, custom
bash skills/agent-constitution/scripts/request-vault.sh payment "Complete checkout"
Read synced Apple Health metrics:
bash skills/agent-constitution/scripts/fetch-health.sh latest # Latest metrics
bash skills/agent-constitution/scripts/fetch-health.sh history # 14-day history
The skill connects your agent to the Agent Constitution relay server, which communicates with your iPhone app:
active-rules.jsoncheck-constitution.shAll sensitive data (vault, health, constitution checks) is encrypted end-to-end with AES-256-GCM. The relay can't read your data.
The skill includes tamper protection. 13 critical files are hash-verified on every heartbeat. If your agent modifies its own directives or scripts, the app detects it immediately.