agentleFS
metratonmetraton/gaia/skills/orchestrator-present-approval/SKILL.md

orchestrator-present-approval

Skill4 starsChanged 5 months agoMITView on GitHub

Use when presenting a returned APPROVAL_REQUEST for informed user consent

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

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

    Run gaia approvals question <approval_id> [<approval_id> ...] with the pending ids -- up to 4 questions in all, one per command.

    line 28
  2. Distinctive:

    Call your question tool (AskUserQuestion in Claude Code, question in OpenCode) with that output unchanged, and print nothing about the …

    line 30
  3. Very specific:

    Read the decision with gaia approvals show <approval_id> (its State).

    line 46

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Present Approval — Orchestrator Branch

Gaia builds every signature, and each of its commands is one question on one line, marked [ GAIA-SECURITY ] so the user reads it as Gaia's check and not as your question: who asks and the exact command; Details adds what it does, its impact and the rollback. No model writes any of it. You never print, copy, summarise or translate any part of it; you only run gaia approvals question and open what it gives you, unchanged. You can run it again at any time for the approvals still pending -- for example when several specialists return signatures.

A signature is approved only when every one of its questions gets Approve; a Reject on any of them rejects the whole signature. One call asks at most 4 questions, so a signature carries at most 4 commands.

Presenting

The flow is the same in Claude Code and OpenCode. Only you open the question: a specialist that asks for a signature, or is blocked on a command, asks the user nothing. It ends its turn and returns APPROVAL_REQUEST with the approval id in its contract. You decide when to ask.

  1. Run gaia approvals question <approval_id> [<approval_id> ...] with the pending ids -- up to 4 questions in all, one per command.
  2. Call your question tool (AskUserQuestion in Claude Code, question in OpenCode) with that output unchanged, and print nothing about the signature. Gaia checks the call before the questions open -- the hook in Claude Code, the plugin in OpenCode, which fills the call with every signature's questions -- and ties each answer to its own signature. Only approvals your own specialists requested are accepted. In OpenCode, ask two signatures of the same specialist in separate calls: that specialist runs one approval at a time.
  3. Details: Gaia names the command to run -- the hook's message in Claude Code, your call's result in OpenCode -- gaia approvals question --details <approval_id> .... Pass its output to the question tool the same way. If Gaia refuses a question, run gaia approvals question again for the ids it names.

After the answer

Read the decision with gaia approvals show <approval_id> (its State). Approved: resume the specialist that requested it -- the same agent, not a new one -- with execution; the signature is bound to that agent and session. Rejected: nothing runs; tell the requester if its work depends on it. A typed answer is not a decision. You may withdraw a pending approval (pending-approvals), but the decision to approve is the user's alone.

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.