agent-access-control
by bowen31337
Coding Agents & IDEsBrief
Tiered stranger access control for AI agents.
Description
What This Skill Does
Tiered contact management for AI agents on messaging platforms. Strangers get a configurable deflection message and trigger an owner notification. The owner approves, restricts, or blocks the contact by replying to the notification.
It handles the complete stranger-to-approved pipeline, including deflection, owner notification, and per-tier enforcement, without writing custom platform-specific code.
When to Use It
- Filtering cold messages sent to a personal WhatsApp bot
- Approving a new contact on a Telegram agent without editing config manually
- Granting family members limited chat access without full agent privileges
- Blocking repeat spam accounts on a Discord assistant
- Auditing which unknown senders have contacted your agent
Example Workflow
User asks: An unknown number messages my WhatsApp agent
- 1
Extract and normalize the sender's phone number
- 2
Check ownerIds, blockedIds, and approvedContacts, finding no match
- 3
Send the configured strangerMessage to the sender
- 4
Notify the owner with the sender ID and first 100 characters of the message
- 5
Store the contact in pendingApprovals and respond with NO_REPLY
Stranger receives the deflection message, owner gets a notification with approve/chat/block reply options
Installation
clawhub install bowen31337/agent-access-controlRun the CLI command, or paste the prompt into Claude Code, Cursor, Codex or whichever coding agent you use.