Borrowing it
Nothing to install: this file belongs to yaalalabs/agent-kernel. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/yaalalabs/agent-kernel/develop/.agents/skills/ak-dev-new-secret-provider/SKILL.mdgit clone --depth 1 https://github.com/yaalalabs/agent-kernelWrote 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/yaalalabs/agent-kernel/ak-dev-new-secret-provider)<a href="https://agentmods.dev/skills/yaalalabs/agent-kernel/ak-dev-new-secret-provider"><img src="https://agentmods.dev/badge/skills/yaalalabs/agent-kernel/ak-dev-new-secret-provider/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/yaalalabs/agent-kernel/ak-dev-new-secret-provider"><img src="https://agentmods.dev/badge/skills/yaalalabs/agent-kernel/ak-dev-new-secret-provider.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.00113 | $0.02669 |
| Opus 5.5 | $0.00045 | $0.01068 |
| Sonnet 5.5 | $0.00023 | $0.00534 |
| Haiku 4.5 | $0.00011 | $0.00267 |
Grade A, and why
ak-dev-new-secret-provider 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.
How it starts
The opening of the file, as written. The whole thing — 191 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Adding a New Secret Provider
This guide walks through adding a built-in provider to the secret-resolution capability
(ak-py/src/agentkernel/secret/). Use AWSSMSecretProvider
(ak-py/src/agentkernel/secret/providers/aws_ssm.py) as the reference implementation, since it is
the only built-in that talks to a remote store. The ak-dev-architecture skill's Secret
Resolution section covers the manager, cache and resolution order this guide builds on.
Existing Providers
| Provider | type value |
Addressing | Extra |
|---|---|---|---|
| Environment (default) | env |
the key is the variable name, read verbatim | — (stdlib) |
| Kubernetes Secrets mounted as files | kubernetes |
<mount_path>/<secret-name>/<KEY>, one file per key; same key in two Secrets is an error |
— (stdlib) |
| AWS SSM Parameter Store | aws_ssm |
/ak/{prefix}/{key.lower()}, GetParameter(WithDecryption=True) |
agentkernel[aws] |
| Bring-your-own | dotted path, e.g. myapp.secrets.VaultProvider |
whatever the subclass implements | the user's own |
Do You Need a Built-in?
A dotted path already lets a user plug in any SecretProvider subclass with no core change:
resolve_dotted(..., base=SecretProvider) imports it and calls its create. AWS Secrets
Manager ships this way in v1 (see docs/specs/749-secret-resolution/design.md, Non-goals). Add a
built-in only when the backend is broadly useful, has a stable SDK, and deserves a short name,
tested IAM wiring and docs. Otherwise, document the dotted-path route in
docs/docs/advanced/secrets.md (Custom providers) and stop there.
The Contract
SecretProvider (secret/base.py) is small. The rules around it are what matter:
get_secret(key) -> str | None: return the stored value, orNonewhen the backend does not hold it. A miss is not an error. RaiseSecretError(secret/errors.py) only when the backend failed (credentials, network, throttling, authorization), and never put the value in the message.- The provider owns its addressing.
keyis always an environment-variable-style name (^[A-Z][A-Z0-9_]*$, e.g.OPENAI_API_KEY). Translating it to the backend's name (path, secret id, lowercase) happens here and nowhere else. The manager transforms nothing. - Never cache and never fall back.
SecretManagerowns the environment → cache → provider order andSecretCacheowns TTLs. A provider that caches breaksinvalidate()and rotation. - Tolerate concurrent calls. The manager calls the provider outside any lock, and concurrent
cold reads may each call it. Create SDK clients lazily behind a lock (the double-checked
clientproperty inaws_ssm.py). - Return values verbatim. Don't strip whitespace or parse JSON, because values are flat
strings. Treat an empty value as absent (
EnvSecretProviderreturnsos.environ.get(key) or None). create(cls, config: _SecretConfig)receives the wholesecretblock, not justsecret.provider, so the deployment-widesecret.prefixis shared by every backend. Validate settings here and raiseAKConfigError(core/util/factory.py) on unusable values, the wayAWSSMSecretProvider._normalize_prefixrejects an empty or nested prefix. It fires at the firstSecretManager.current(), so misconfiguration fails at startup, not on first read.
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.
- today Changed 8756f8253620
- 17d ago Changed · +5 lines · +4 tokens per session 9f994c7d2704
- 1mo ago Changed · +8 lines 78edc8a5d85a
- 1mo ago First seen · 178 lines · 109 tokens per session scan A 4c992f1a6777
ak-dev-new-secret-provider is a skill published in the GitHub repository yaalalabs/agent-kernel (192 stars, last pushed yesterday), licensed Apache-2.0. It adds 113 tokens to every session and 2,669 once invoked, about $0.0005 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-09-30.
ak-dev-new-secret-provider compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ak-dev-new-secret-provideryaalalabs/agent-kernel | Skill | 192 | yesterday | Apache-2.0 | A | 113 | Claude Code, Codex |
| notionArvo-AI/aurora | Skill | 454 | yesterday | Apache-2.0 | A | 23 | Claude Code |
| datadogArvo-AI/aurora | Skill | 454 | yesterday | Apache-2.0 | A | 28 | Claude Code |
| postmortemArvo-AI/aurora | Skill | 454 | yesterday | Apache-2.0 | A | 23 | Claude Code, Codex |
| corootArvo-AI/aurora | Skill | 454 | yesterday | Apache-2.0 | A | 35 | Claude Code |
| githubArvo-AI/aurora | Skill | 454 | yesterday | Apache-2.0 | A | 24 | Claude Code |
| slackArvo-AI/aurora | Skill | 454 | yesterday | Apache-2.0 | A | 13 | Claude Code, Codex |