smithery.ai

approve-action

Detect and handle permission prompts in a Claude Code tmux session

First seen Apr 15, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

Declared agents claude-code

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,780 B
  • docs SUMMARY.md 88 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Approve Action

Detect permission prompts and approve or deny them.

Arguments

$ARGUMENTS: <session-name> [approve|deny]

Instructions

  1. Parse arguments:

- Session name (required) - Action: approve, deny, or none (interactive)

  1. Capture session output:

``bash "$PLUGINDIR/bin/capture-session" "<sessionname>" 30 ``

  1. Look for permission prompts:

- Bash command: followed by command - Allow ... to ... - Grant access - Use skill "..." - Permission dialog boxes

  1. If no permission prompt found:

`` No pending permission request in session '<session_name>'. ``

  1. 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 ```

  1. 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'.