ap-accounts

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

Manage which subscription accounts agentproto sessions bill: read provider quota (quotastatus), see which accounts are exhausted (accounthealthlist), swap or reorder account slots (accountslotsswap/prefer/list) and reopen an account (accounthealthclear). Trigger when a subscription hit its limit, before a large job to…

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-accounts
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-accounts
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-accounts

README.md
[![agentmods](https://agentmods.dev/badge/skills/agentproto/ts/ap-accounts/github.svg)](https://agentmods.dev/skills/agentproto/ts/ap-accounts)
Your own site
<a href="https://agentmods.dev/skills/agentproto/ts/ap-accounts"><img src="https://agentmods.dev/badge/skills/agentproto/ts/ap-accounts/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-accounts

Your own site · 80×15
<a href="https://agentmods.dev/skills/agentproto/ts/ap-accounts"><img src="https://agentmods.dev/badge/skills/agentproto/ts/ap-accounts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 936 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.00079 $0.00936
Opus 5.5 $0.00032 $0.00374
Sonnet 5.5 $0.00016 $0.00187
Haiku 4.5 $0.00008 $0.00094

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

Security

Grade A, and why

ap-accounts 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-accounts/SKILL.md · 80 lines

How it starts

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

ap-accounts

MCP profile: admin for slots and health, full only for quota

account_slots_* and account_health_* belong to the daemon's admin MCP profile (and full). quota_status is full only: an admin session does not see it, and in a session narrowed to core, orchestrator or apps none of these tools are in tools/list. A "missing" tool is a profile question.

Tools

Task: read the quota before a big job

  1. Find the profile id with auth_profile_list, then call quota_status with it (a real id, not a slot: ref; or with no profileRef for this session's own account).
  2. Compare windows[].remainingPct with the size of the job. A window near 0 with a resetsAt soon is worth waiting for; one far away is not.
  3. An error such as no_reader or reader_returned_nothing means unknown, not empty: do not treat it as zero or as plenty.

Task: an account is exhausted, move to the other one

  1. account_health_list: find the account with state: "exhausted" and its until. Nothing starts on it until then, and a slot skips it.
  2. account_slots_list: see which slot points at it and which alive sessions bill it.
  3. For a team-primary / team-secondary pair, run account_slots_swap with dryRun: true and read moved, then run it for real. Add moveAlive only if the running sessions must change account now; each is restarted with its context under a new session id.
  4. For a slot that lists several accounts, use account_slots_prefer instead. A multi-account slot already skips exhausted accounts on its own at spawn, so reorder only to express a preference.
  5. If every account of a slot is spent, a spawn on slot:<name> fails with account_slot_exhausted, whose details.retryAfter is the nearest return time.

Task: reopen an account that was topped up

An exhausted account returns by itself once until has passed (state probing, the next real turn is the trial). When it was recharged earlier, call account_health_clear with its real profile id. If it is still empty the next failed turn closes it again with a longer backoff, so check quota_status first when unsure.

Read the full file on GitHub · 80 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 · 80 lines · 79 tokens per session scan A 92b8f823d381

Subscribe to this mod's changes

ap-accounts is a skill published in the GitHub repository agentproto/ts (11 stars, last pushed today), licensed Apache-2.0. It adds 79 tokens to every session and 936 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-accounts compared with skills from other repositories

ap-accounts next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ap-accountsagentproto/tsSkill11todayApache-2.0A79Claude 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