agent-kernel: Skill for Claude Code

.agents/skills/ak-dev-new-secret-provider/SKILL.md

ak-dev-new-secret-provider is a skill for Claude Code, Codex from yaalalabs/agent-kernel. It costs 113 tokens per session (2,669 once invoked), scanned A, original, Apache-2.0.

A step-by-step guide for adding a built-in secret provider to Agent Kernel, the system that resolves application secrets. A secret provider connects a short provider name to a store such as AWS SSM Parameter Store, Azure Key Vault, or HashiCorp Vault.

In plain words
What is it for?
Use it when implementing and registering a new built-in provider for retrieving secrets from a remote secret-management service.
Why use it?
It explains how to add another managed secret store without breaking the existing resolution and configuration rules.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is yaalalabs/agent-kernel's own configuration. It tells Claude Code and Codex how to work on agent-kernel itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agent-kernel configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/yaalalabs/agent-kernel/develop/.agents/skills/ak-dev-new-secret-provider/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/yaalalabs/agent-kernel

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 ak-dev-new-secret-provider

README.md
[![agentmods](https://agentmods.dev/badge/skills/yaalalabs/agent-kernel/ak-dev-new-secret-provider/github.svg)](https://agentmods.dev/skills/yaalalabs/agent-kernel/ak-dev-new-secret-provider)
Your own site
<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.

agentmods 80×15 button for ak-dev-new-secret-provider

Your own site · 80×15
<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>
Per session 113 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,669 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 original 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.00113 $0.02669
Opus 5.5 $0.00045 $0.01068
Sonnet 5.5 $0.00023 $0.00534
Haiku 4.5 $0.00011 $0.00267

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

Security

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.

.agents/skills/ak-dev-new-secret-provider/SKILL.md · 191 lines

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, or None when the backend does not hold it. A miss is not an error. Raise SecretError (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. key is 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. SecretManager owns the environment → cache → provider order and SecretCache owns TTLs. A provider that caches breaks invalidate() 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 client property in aws_ssm.py).
  • Return values verbatim. Don't strip whitespace or parse JSON, because values are flat strings. Treat an empty value as absent (EnvSecretProvider returns os.environ.get(key) or None).
  • create(cls, config: _SecretConfig) receives the whole secret block, not just secret.provider, so the deployment-wide secret.prefix is shared by every backend. Validate settings here and raise AKConfigError (core/util/factory.py) on unusable values, the way AWSSMSecretProvider._normalize_prefix rejects an empty or nested prefix. It fires at the first SecretManager.current(), so misconfiguration fails at startup, not on first read.

Read the full file on GitHub · 191 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 Changed 8756f8253620
  2. 17d ago Changed · +5 lines · +4 tokens per session 9f994c7d2704
  3. 1mo ago Changed · +8 lines 78edc8a5d85a
  4. 1mo ago First seen · 178 lines · 109 tokens per session scan A 4c992f1a6777

Subscribe to this mod's changes

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.

Related

ak-dev-new-secret-provider compared with skills from other repositories

ak-dev-new-secret-provider next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ak-dev-new-secret-provideryaalalabs/agent-kernelSkill192yesterdayApache-2.0A113Claude Code, Codex
notionArvo-AI/auroraSkill454yesterdayApache-2.0A23Claude Code
datadogArvo-AI/auroraSkill454yesterdayApache-2.0A28Claude Code
postmortemArvo-AI/auroraSkill454yesterdayApache-2.0A23Claude Code, Codex
corootArvo-AI/auroraSkill454yesterdayApache-2.0A35Claude Code
githubArvo-AI/auroraSkill454yesterdayApache-2.0A24Claude Code
slackArvo-AI/auroraSkill454yesterdayApache-2.0A13Claude Code, Codex