mcpbeat Sign in

Script Exec Blocked Agent Skill

Sandbox approval policy blocks execute_code and python3 -c; use read_file/write_file + manual transforms instead of retrying both runners.

280 tokens
context cost
the whole folder, loaded on every use
1
files
instructions only
0
copies elsewhere
how many repositories repackaged it
107
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/ashutoshsinghpr7/wikiskill --skill script-exec-blocked

What it tells the agent to use

found in the instruction text
Read reads your files

The instruction itself

4 sections, as written by the author

Script Execution Blocked in Sandbox

Problem

execute_code and python3 -c fail with "BLOCKED … single-query mode (-q)

runs without a user present to approve it". Plain terminal commands (grep,

ls, file, xxd) and file tools (read_file, write_file) still work.

Fix

  • Do NOT retry both runners back-to-back: a real task burned two turns on

python3 -c then execute_code before falling back.

  • Compute small transforms manually from the files you read; write the

deliverable with write_file; verify by re-reading it.

  • Keep parsing/sorting simple enough to verify by hand.

Evidence

  • Hit in 3/4 analyzed traces; all three recovered this way; the one failure

was a spec-interpretation bug, not a tooling problem.

How to use it

Copy the folder

Take ashutoshsinghpr7/script-exec-blocked from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.