SKILL.md
Approve Action
Detect permission prompts and approve or deny them.
Arguments
$ARGUMENTS: <session-name> [approve|deny]
Instructions
- Parse arguments:
- Session name (required) - Action: approve, deny, or none (interactive)
- Capture session output:
``bash "$PLUGINDIR/bin/capture-session" "<sessionname>" 30 ``
- Look for permission prompts:
- Bash command: followed by command - Allow ... to ... - Grant access - Use skill "..." - Permission dialog boxes
- If no permission prompt found:
`` No pending permission request in session '<session_name>'. ``
- If permission prompt found, show details:
``` ## Permission Request: <session_name>
Type: <Bash/Edit/Skill/etc> Details: <what is being requested>
Options: - approve: Allow this action - deny: Reject this action ```
- If action specified (approve/deny):
Send the appropriate response: ```bash # For approve: tmux send-keys -t "<session>" "y" && tmux send-keys -t "<session>" Enter
# For deny: tmux send-keys -t "<session>" "n" && tmux send-keys -t "<session>" Enter ```
Report: `` Sent '<action>' to session '<session_name>'. ``
Example
Interactive:
/session-tools:approve-action ai-worker-001
## Permission Request: ai-worker-001
**Type:** Bash
**Details:** npm install express
Options:
- /session-tools:approve-action ai-worker-001 approve
- /session-tools:approve-action ai-worker-001 deny
Direct:
/session-tools:approve-action ai-worker-001 approve
Sent 'approve' to session 'ai-worker-001'.