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.
npx skills add agentproto/ts --skill authgit clone --depth 1 https://github.com/agentproto/tsWrote 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.
[](https://agentmods.dev/skills/agentproto/ts/auth)<a href="https://agentmods.dev/skills/agentproto/ts/auth"><img src="https://agentmods.dev/badge/skills/agentproto/ts/auth/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.
<a href="https://agentmods.dev/skills/agentproto/ts/auth"><img src="https://agentmods.dev/badge/skills/agentproto/ts/auth.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00092 | $0.01711 |
| Opus 5.5 | $0.00037 | $0.00684 |
| Sonnet 5.5 | $0.00018 | $0.00342 |
| Haiku 4.5 | $0.00009 | $0.00171 |
Grade A, and why
auth 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 1mo ago.
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.
How it starts
The opening of the file, as written. The whole thing — 140 lines — stays where its author put it; the contents beside it link to each section on GitHub.
When to use
Reach for this whenever an agent (or a child MCP it mounts) must present a
credential to a remote service and you don't want that secret sprayed into the
daemon's global env or hardcoded in a config file. The hallmark: "how do I give
this agent access to <service> without leaking the key to every other agent?"
- A tool/agent calls a Bearer API (agentpush, Stripe, an internal API).
- A hosted/remote MCP server needs an
Authorizationheader. - You want ONE place to store a key, scoped per service, resolved fresh (with refresh) at use-time instead of a long-lived env var.
Do NOT use for the daemon's own tunnel login (that's agentproto auth login, a
device-code flow already wired) — though it uses the same substrate underneath.
The model — one source of truth, resolved on demand
auth provider (declares WHERE/HOW) ──┐
CredentialStore (holds the secret) ──┤─▶ CredentialBroker.resolveHeaders({ path, audience })
│ → { Authorization: "Bearer …" } (fresh, per call)
- Provider — a manifest declaring a service's
id,apiBase, andauthflow. Config only, never the secret. Registered once (registerAuthProvider). - CredentialStore — where the secret lives:
KeychainStore(macOS CLI),FileStore(AES-256-GCM, headless — key fromAGENTPROTO_STORE_KEY),MemoryStore(tests). Swap the backend, same interface. - Broker —
resolveHeaders({ path, audience?, signal? })turns a providerpathinto ready-to-use headers: serves a fresh stored bearer, else runs the flow.audience(api/mcp/tunnel) scopes the credential so it can't be reused cross-plane. - Flows — pick one per service:
pat(static token you store/paste),service-auth(auth.md claim ceremony → short oat + durable assertion),device-code(RFC 8628 → durable daemon token + refresh).
Recipe
1. Declare + register the provider
TS literal (builtin/tests):
import { defineAuthProvider, registerAuthProvider } from "@agentproto/auth"
registerAuthProvider(defineAuthProvider({
id: "agentpush",
description: "AgentPush API — paste a personal API key.",
apiBase: "https://api.agentpush.example",
audience: "mcp", // or "api"
auth: { flow: "pat", tokenStore: { keychain: "agentpush", account: "{server}" } },
}))
Or ship a vendor *.auth.md and parseAuthProviderManifest(...) → registerAuthProvider(...) — a host adds providers without editing this package.
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.
- 1mo ago First seen · 140 lines · 92 tokens per session scan A 025a9bedf774
auth is a skill published in the GitHub repository agentproto/ts (10 stars, last pushed today), licensed Apache-2.0. It adds 92 tokens to every session and 1,711 once invoked, about $0.0004 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-08-31.
Other skills, from other repositories
skill-creator-primer
You MUST load this skill before the skill-creator skill AND before making ANY change to, or conducting a review of ANY Agent Skill. Triggers include creating, editing, reviewing, or contributing to any part of an Agent Skill (description, frontmatter, body, references, scripts, trigger evals, conflicts, etc).
extract-wisdom
Extract wisdom, insights, and actionable takeaways from YouTube videos, blog posts, articles, or text files. Use when asked to extract wisdom or key insights from a given content source.
llm-wiki
Use when building or maintaining a self-contained personal knowledge base (an LLM wiki) in plain markdown. Triggers: ingesting sources into a wiki, querying wiki knowledge, linting wiki health, auditing article claims against their sources, critiquing a wiki source's reasoning, superseding stale knowledge, 'add to…
apply-mantel-styles
Provides guidelines for applying Mantel's brand styles to diagrams and frontend components. Use when asked to create visuals that need to align with Mantel's branding.
home-assistant
This skill should be used when helping with Home Assistant setup, including creating automations, modifying dashboards, checking entity states, debugging automations, and managing the smart home configuration. Use this for queries about HA entities, YAML automation/dashboard generation, or troubleshooting HA issues.
aws-strands-agents-agentcore
Use when working with AWS Strands Agents SDK or Amazon Bedrock AgentCore platform for building AI agents. Provides architecture guidance, implementation patterns, deployment strategies, observability, quality evaluations, multi-agent orchestration, and MCP server integration.