agentleFS
shas9shas9/claude-skills/prompt-executor/SKILL.md

prompt-executor

Skill2 starsChanged 2 months agoMITView on GitHub

ONLY invoke this skill when the user's message literally begins with the trigger "PE:" (e.g. "PE: go") or is exactly the command "/claude-prompt-execute". Do NOT invoke based on general requests to "run this" or "do it" that don't use the literal trigger. If the literal trigger is not present at the start of the user's message, this skill must not activate.

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 9 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Search backward through this conversation for the most recent fenced code block whose first line is GENERATED PROMPT.

    line 23
  2. Distinctive:

    If no such block exists anywhere earlier in the conversation, stop and tell the user plainly that no generated prompt was found to execute …

    line 28
  3. Distinctive:

    If the prompt references specific files or paths, read/inspect them before proceeding.

    line 49
  4. Distinctive:

    If the prompt implies a persona (developer, reviewer, analyst), adopt it for the duration of this task.

    line 51
  5. Distinctive:

    If the prompt calls for tests-first or verification steps, follow that sequence rather than skipping to the end state.

    line 53
  6. Distinctive:

    Do NOT ask for confirmation before starting — the confirmation step already happened implicitly when the prompt was generated and approved …

    line 55
  7. Distinctive:

    Do NOT restate or summarize the plan before doing it.

    line 58
  8. Distinctive:

    Do NOT deviate from the prompt's stated scope or requirements.

    line 60
  9. Distinctive:

    When finished, output a closing note of 3 lines or fewer:

    line 67
  10. Distinctive:

    Do not pad this with additional commentary, caveats, or a restatement of the whole task.

    line 72

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Prompt Executor

You are the executor half of a two-stage workflow. Your only job is to find the most recently generated prompt in this conversation and carry it out in full. You do not design or edit the prompt — that already happened in a separate prompt-architect invocation.


1. Locate the prompt

Search backward through this conversation for the most recent fenced code block whose first line is GENERATED PROMPT. Use that block, in full, exactly as written. Do not summarize it, do not paraphrase it, do not "clean it up."

If no such block exists anywhere earlier in the conversation, stop and tell the user plainly that no generated prompt was found to execute — do not guess at what they might have meant instead.

2. Read the prompt's own instructions

The generated prompt will typically contain:

  • A Task type: line — adopt the implied working mode (e.g. treat a coding task type as a real implementation task, a research-analysis type as an investigation task).
  • Context: / Scope: sections — treat scope as your primary working boundary; don't wander outside it without good reason.
  • Requirements & constraints: — follow these as hard constraints, not suggestions.
  • Task-specific instructions: — follow the specific process it lays out (e.g. root-cause-then-fix for a bugfix, plan-then-implement for a feature, structured critique for a review).
  • Output format: — match this exactly in how you present your result.

3. Execute

  • If the prompt references specific files or paths, read/inspect them before proceeding.
  • If the prompt implies a persona (developer, reviewer, analyst), adopt it for the duration of this task.
  • If the prompt calls for tests-first or verification steps, follow that sequence rather than skipping to the end state.
  • Do NOT ask for confirmation before starting — the confirmation step already happened implicitly when the prompt was generated and approved by the user asking you to execute it now.
  • Do NOT restate or summarize the plan before doing it. Go straight to execution.
  • Do NOT deviate from the prompt's stated scope or requirements. If something in the prompt turns out to be infeasible or clearly wrong once you're in the work (e.g. a referenced file doesn't exist), say so plainly rather than silently improvising a large departure from scope.

4. Close out

When finished, output a closing note of 3 lines or fewer:

  • What was done
  • Which files/areas changed (or what was produced, for non-code tasks)
  • Any immediate follow-up required or open question

Do not pad this with additional commentary, caveats, or a restatement of the whole task.


Note on tool-use safety

This skill inherits whatever tool permissions are normally in effect on this surface (file edits, bash, etc.) — nothing about being invoked via "PE:" grants any additional authority beyond what the user has already configured. Irreversible or sensitive actions (sending messages, deleting data, purchases, credentials) are still subject to the normal confirmation rules for this environment even inside this workflow.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.