kingfisher

kingfisher is a command for Claude Code from nitinjain999/platform-skills. It costs 207 tokens per session (6,104 once invoked), scanned A, original, Apache-2.0.

A secret-leak investigation tool that finds exposed credentials, checks whether they still work, maps what they can access, and revokes them across code, services, and collaboration systems.

In plain words
What is it for?
Use it to scan repositories and history, validate and revoke credentials, investigate leaks in services such as Slack or S3, and manage scan baselines.
Why use it?
It helps turn a suspected leaked secret into a confirmed risk with a clear response, instead of leaving teams to sort through scan results.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the platform-skills plugin — 1 skill, 43 commands shipped together

Good fit Use it to scan repositories and history, validate and revoke credentials, investigate leaks in services such as Slack or S3, and manage scan baselines.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/nitinjain999/platform-skills/kingfisher
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.

Clone the repo
git clone --depth 1 https://github.com/nitinjain999/platform-skills

Made for: Claude Code.

Or install platform-skills, the plugin that ships this one along with the rest of its 1 skill, 43 commands.

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 kingfisher

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/nitinjain999/platform-skills/kingfisher"><img src="https://agentmods.dev/badge/commands/nitinjain999/platform-skills/kingfisher.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 207 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 6,104 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.00207 $0.06104
Opus 5 $0.00103 $0.03052
Sonnet 5 $0.00041 $0.01221
Haiku 4.5 $0.00021 $0.00610

Measured 10d ago against content hash 394c6a6f9e3f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

kingfisher 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 10d 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.

commands/kingfisher.md · 375 lines

How it starts

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

Find a leaked secret, prove whether it's still alive, see what it can reach, and kill it — in that order.

Read references/kingfisher.md before responding. It contains bootstrap steps, the full CLI surface (scan, validate, revoke, baseline, config), the kingfisher.yaml schema, platform-target commands with their auth env vars, exit-code semantics, CI templates, and the pre-commit/Husky setup.

This command is interactive by default. With no arguments, run the three-layer wizard below. Never dump a raw kingfisher scan invocation and stop — the useful output is a validated, triaged verdict, not a wall of candidate strings.

Ownership boundary (enforced at the menu)

Question Authoritative command
"Is there a hardcoded-looking secret in this repo?" (fast, offline, bundled with a CVE scan) /platform-skills:trivy secrets mode
"Is that secret still live? What can it reach? Kill it." this command
"Did a secret leak into Slack, Jira, Confluence, S3, or a whole GitHub org — not just one repo?" this command
"How should secrets be stored/rotated inside my cluster?" /platform-skills:secrets
"Is my workflow's secrets: context usage safe?" /platform-skills:zizmor
"Is there a CVE in my image or dependencies?" /platform-skills:trivy
"How do I sign images / generate an SBOM?" /platform-skills:supply-chain

Trivy's secrets scanner and Kingfisher are not the same depth of tool: Trivy tells you a string matches a pattern, offline, as part of a broader vuln/license scan. Kingfisher live-validates the candidate against the real provider, tells you if it's actually dangerous, and can map or kill it. Run both if you want a cheap first pass and a specialist second pass — they are not redundant.


Mode dispatch

Parse the first word of $ARGUMENTS as the mode. When $ARGUMENTS is empty, run the three-layer interactive wizard.

Mode What it does
scan Default local/repo run, live validation on — the everyday check
audit Deep sweep for a security review: low confidence, full history, blast-radius, all outcomes
validate Check whether one known secret string is still live — no scan
revoke Kill one known secret directly through its provider — destructive, confirm first
baseline Create or update a baseline so future scans report only new secrets
triage Walk existing findings one at a time → validate / revoke / rotate / accept-in-baseline / false-positive
config Generate or repair kingfisher.yaml
ci Emit a CI gate: hard-fail, SARIF alerts, or Docker-based
precommit Add the kingfisher-auto pre-commit hook (or Husky) and state the caveat
explain Explain a rule id, an exit code, or a validation outcome
(empty) Three-layer interactive wizard

Read the full file on GitHub · 375 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. 10d ago First seen · 375 lines · 207 tokens per session scan A 394c6a6f9e3f

Subscribe to this mod's changes

kingfisher is a command published in the GitHub repository nitinjain999/platform-skills (41 stars, last pushed today), licensed Apache-2.0. It adds 207 tokens to every session and 6,104 once invoked, about $0.0010 per session on Opus 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-30.