Execute prompts from ./prompts/ directory with various AI models. Use when user asks to run a prompt, execute a task, delegate work to an AI model, run prompts in worktrees/tmux, or run prompts with verification loops.
View on GitHubSelect agents to install to:
npx add-skill https://github.com/cruzanstx/daplug/blob/main/skills/prompt-executor/SKILL.md -a claude-code --skill prompt-executorInstallation paths:
.claude/skills/prompt-executor/# Prompt Executor ## Auto-Approval Setup If the user has to manually confirm the executor bash command, suggest they add this rule to `~/.claude/settings.json` under `permissions.allow`: ```json "Bash(PLUGIN_ROOT=$(jq -r '.plugins.\"daplug@cruzanstx\"[0].installPath' ~/.claude/plugins/installed_plugins.json):*)" ``` **Quick command to add it:** ```bash # Add auto-approval rule for prompt executor jq '.permissions.allow += ["Bash(PLUGIN_ROOT=$(jq -r '"'"'.plugins.\"daplug@cruzanstx\"[0].installPath'"'"' ~/.claude/plugins/installed_plugins.json):*)"]' ~/.claude/settings.json > /tmp/settings.json && mv /tmp/settings.json ~/.claude/settings.json ``` --- Execute prompts from `./prompts/` (including subfolders) using various AI models (Claude, Codex, Gemini, ZAI, etc). ## When to Use This Skill - User says "run prompt 123" or "execute prompt 123" - User says "run that prompt with codex/gemini/zai" - User wants to "run a prompt in a worktree" - User wants to "run prompts in parallel" - User asks to "delegate this to codex/gemini" - User wants to "run with verification loop" or "keep retrying until complete" - User asks to "check loop status" for a running prompt ## Executor Script **IMPORTANT:** Get the executor path from Claude's installed plugins manifest: ```bash PLUGIN_ROOT=$(jq -r '.plugins."daplug@cruzanstx"[0].installPath' ~/.claude/plugins/installed_plugins.json) EXECUTOR="$PLUGIN_ROOT/skills/prompt-executor/scripts/executor.py" python3 "$EXECUTOR" [prompts...] [options] ``` **Options:** - `--model, -m`: claude, codex, codex-high, codex-xhigh, gpt52, gpt52-high, gpt52-xhigh, gemini, zai, opencode, local, qwen, devstral - `--cwd, -c`: Working directory for execution - `--run, -r`: Actually run the CLI (default: just return info) - `--info-only, -i`: Only return prompt info, no CLI details - `--worktree, -w`: Create isolated git worktree for execution - `--base-branch, -b`: Base branch for worktree (default: main) - `--on-conflict`: How to handle existing