ap-approvals

ap-approvals is a skill for Claude Code, Codex from agentproto/ts. It costs 84 tokens per session (1,022 once invoked), scanned A, original, Apache-2.0.

Ask a human to approve an irreversible action through the agentproto daemon: approvalrequest pins the exact payload, approvalwait blocks for the answer, approvalconsume proves it before you act, approvalcancel withdraws a pending request. Trigger before sending, spending, publishing or deleting anything a human must…

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Install with agentmods
npx agentmods add skills/agentproto/ts/ap-approvals
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add agentproto/ts --skill ap-approvals
Clone the repo
git clone --depth 1 https://github.com/agentproto/ts

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ap-approvals

README.md
[![agentmods](https://agentmods.dev/badge/skills/agentproto/ts/ap-approvals/github.svg)](https://agentmods.dev/skills/agentproto/ts/ap-approvals)
Your own site
<a href="https://agentmods.dev/skills/agentproto/ts/ap-approvals"><img src="https://agentmods.dev/badge/skills/agentproto/ts/ap-approvals/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ap-approvals

Your own site · 80×15
<a href="https://agentmods.dev/skills/agentproto/ts/ap-approvals"><img src="https://agentmods.dev/badge/skills/agentproto/ts/ap-approvals.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,022 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00084 $0.01022
Opus 5.5 $0.00034 $0.00409
Sonnet 5.5 $0.00017 $0.00204
Haiku 4.5 $0.00008 $0.00102

Measured today against content hash 5a488daa7f1f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ap-approvals scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/skill-pack-agentproto/src/skills/ap-approvals/SKILL.md · 82 lines

How it starts

The opening of the file, as written. The whole thing — 82 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ap-approvals

MCP profile: full only

approval_request, approval_get, approval_wait, approval_consume and approval_cancel exist only on the daemon's full MCP profile. In a session narrowed to core, orchestrator, apps or admin they are not in tools/list, so a call fails before reaching the daemon. If an approval tool is "missing", check the profile of the connection that is asking.

The human gesture is the decision

No tool here can approve or deny. The decision is made by a human, through a channel the daemon declared on the request: a click on the approval card (Approve or Deny) in an MCP Apps host, a messaging adapter the operator enabled, or an approval link opened by a listed human. You raise the request, wait, and act only on what the human decided. Never try to decide it yourself or route around the gate.

Tools

Task: gate an irreversible action

  1. Build the final payload first: everything the action will run with (recipient, amount, body). The payload is frozen by its digest (sha256 of its canonical JSON); a later change to any value is a different payload.
  2. approval_request with that payload, a one-line title and a preview a human can read. Keep the id. Add wake: true if the daemon should re-prompt this session on the decision instead of you polling.
  3. Loop on approval_wait with the id. Each call blocks at most 45 seconds and returns the record either way: read status. Keep looping while it is pending.
  4. approved: call approval_consume with the same id and the same payload, then run the action only if it succeeded. denied, expired or cancelled: stop, tell the user, and do not retry the action. Raise a new request only if the user asks.

Task: replace a pending request

Raise the new request first, then approval_cancel the old one with supersedeBy set to the new id. Do this when the payload has to change: an approved request cannot be edited, and a changed payload fails to consume.

Read the full file on GitHub · 82 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 82 lines · 84 tokens per session scan A 5a488daa7f1f

Subscribe to this mod's changes

ap-approvals is a skill published in the GitHub repository agentproto/ts (11 stars, last pushed today), licensed Apache-2.0. It adds 84 tokens to every session and 1,022 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-02.

Related

ap-approvals compared with skills from other repositories

ap-approvals next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ap-approvalsagentproto/tsSkill11todayApache-2.0A84Claude Code, Codex
skill-creator-primersammcj/agentic-codingSkill175todayApache-2.0A74Claude Code
extract-wisdomsammcj/agentic-codingSkill175todayApache-2.0A43Claude Code
llm-wikisammcj/agentic-codingSkill175todayApache-2.0A82Claude Code
apply-mantel-stylessammcj/agentic-codingSkill175todayApache-2.0A37Claude Code, Codex
authoring-claude-mdsammcj/agentic-codingSkill175todayApache-2.0A33Claude Code, Codex
home-assistantsammcj/agentic-codingSkill175todayApache-2.0A57Claude Code