Skills chitin-moat
install
source · Clone the upstream repo
git clone https://github.com/openclaw/skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/adroidian/chitin-moat" ~/.claude/skills/clawdbot-skills-chitin-moat && rm -rf "$T"
manifest:
skills/adroidian/chitin-moat/SKILL.mdsource content
Chitin Moat
Enforce contextual agent permissions based on where a conversation happens.
Trust Levels
| Level | Name | Capabilities |
|---|---|---|
| 0 | | Full autonomy (1:1 with verified owner) |
| 1 | | Read/write, scoped tools, no secrets (private known group) |
| 2 | | Respond on @mention only, no tools (semi-public) |
| 3 | | React only (public channels) |
| 4 | | No interaction (blocked surfaces) |
Configuration
Create
chitin-trust-channels.yaml in the agent workspace root:
version: "0.1" owner: telegram: "<owner_user_id>" channels: - id: "telegram:<owner_user_id>" level: sovereign - id: "discord:<server_id>" level: guarded overrides: - channel: "owners-lounge" level: trusted - channel: "pro-*" level: trusted - id: "telegram:group:*" level: observer defaults: unknown_channel: observer unknown_dm: guarded
Setup
- Copy the example config:
cp references/example-config.yaml chitin-trust-channels.yaml - Edit with your channel IDs and owner identity
- Run the validator:
python3 scripts/validate_config.py chitin-trust-channels.yaml - Run the audit:
python3 scripts/audit_channels.py chitin-trust-channels.yaml
Permission Matrix
See
references/permission-matrix.md for the full capability × trust-level matrix.
Scripts
— Validate a trust channels config filescripts/validate_config.py <config>
— Audit current channel bindings against the config and report mismatchesscripts/audit_channels.py <config>
— Resolve the trust level for a specific channel IDscripts/resolve_channel.py <config> <channel_id>
Integration with AGENTS.md
Add to the agent's workspace instructions:
## Chitin Moat Before responding in any channel, resolve the trust level using `chitin-trust-channels.yaml`. Constrain capabilities to the resolved level. Never escalate beyond the channel ceiling.