Scans codebases for hardcoded secrets (API keys, passwords, tokens, private keys) in source, config files, Dockerfiles, and CI YAML. Recommends secret-store fixes per stack.
Ships in AI for Developers Toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Find credentials and secrets that shouldn't be in source or committed config, flag unsafe config switches, and move secrets to a proper secret store.
Works on a target: a project, repo, or GitHub URL (clone first: git clone --depth 1 <url> /tmp/repo). Scan source, config, infra, and pipeline files.
| Manifest | Config files to check | Dev secret store |
|---|---|---|
*.csproj | appsettings*.json, launchSettings.json, web.config, *.csproj | dotnet user-secrets |
package.json | .env*, config/*.json, next.config.*, vite.config.* | git-ignored .env.local + dotenv |
pyproject.toml, requirements*.txt | settings.py, .env, config.py, alembic.ini | git-ignored .env (python-dotenv / pydantic-settings) |
pom.xml, build.gradle(.kts) | application*.yml, application*.properties, gradle.properties | env vars / git-ignored profile file |
go.mod | config.yaml, .env, const blocks in *.go | env vars / git-ignored .env |
Always also check: Dockerfile*, docker-compose*.yml, Kubernetes manifests / Helm values, Terraform (*.tfvars, state files), .github/workflows, azure-pipelines.yml, .gitlab-ci.yml, .npmrc/.pypirc/nuget.config (registry tokens), and .gitignore.
grep -rniE "password\s*[:=]|pwd=|api[_-]?key|secret|connectionstring|bearer [a-z0-9]|token\s*[:=]|accesskey|private[_-]?key|BEGIN (RSA|EC|OPENSSH) PRIVATE KEY" \
--include=*.cs --include=*.json --include=*.config --include=*.ts --include=*.js --include=*.py \
--include=*.java --include=*.kt --include=*.go --include=*.yml --include=*.yaml --include=*.properties \
--include=*.env --include=*.tf <target> | grep -viE "/(obj|bin|node_modules|vendor|\.venv|target|build)/"
grep -rnE "AKIA[0-9A-Z]{16}|ghp_[A-Za-z0-9]{36}|xox[baprs]-|sk_live_|-----BEGIN" <target> # well-known token shapes
git -C <target> ls-files | grep -E "(^|/)\.env($|\.)|\.pem$|\.pfx$|\.key$|tfstate" # committed secret files
Prefer a real scanner when available: gitleaks (gitleaks detect --source <target>, scans history), trufflehog (verifies live credentials), or detect-secrets. Treat a match as a finding only after reading it: placeholders, test fixtures, and env-var references are not leaks.
ENV/ARG with secrets bakes them into image layers; should be platform secret variables, BuildKit --mount=type=secret, or runtime injection..env, .pem, .pfx, terraform.tfstate, registry auth files..gitignore coverage for .env/local overrides, one config file with prod credentials for every environment, secrets logged at startup.EnableSensitiveDataLogging() / EnableDetailedErrors() (leaks parameter values); UseDeveloperExceptionPage() outside Development; secrets in launchSettings.json; TrustServerCertificate=True in prod connection strings.NEXT_PUBLIC_*, VITE_*, REACT_APP_* are bundled into client JS); .npmrc with _authToken committed; logging process.env or full request headers.DEBUG = True / hardcoded SECRET_KEY / ALLOWED_HOSTS = ["*"] in settings; Flask SECRET_KEY literal or debug=True; SQLAlchemy URL with inline password.management.endpoints.web.exposure.include=* (exposes /env, /heapdump); spring.datasource.password in committed application.yml; spring.jpa.show-sql with sensitive data in prod.const/var or default flag values; -ldflags "-X main.apiKey=..." baking secrets into binaries; logging config structs that include credentials.dotnet user-secrets, .env.local + dotenv, .env + pydantic-settings/python-dotenv, Spring profile file or env vars, direnv. Commit a .env.example with names only.RUN --mount=type=secret..gitignore; add a pre-commit scanner (gitleaks hook) and enable GitHub secret scanning / push protection where available.## Summary
<stack, files scanned, count by severity>
## Findings
1. 🔴 [Hardcoded secret] <file:line> - <what, value redacted> -> <where it should live>
2. 🟡 [Unsafe switch] <file:line> - <setting> -> <fix>
## Fix plan
<dev store, prod store, CI, rotation list, .gitignore + pre-commit additions>
Never print a full secret value in the report - redact to the first 4 characters.
typed-config-generator) so a missing secret fails the boot, not the first request."Do I have any hardcoded secrets", "scan my repo for leaked credentials", "is my appsettings.json / .env / application.yml safe to commit", "where should these connection strings live". Pairs with the api-security-auditor agent and typed-config-generator.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Docker, Docker Compose, GitHub Actions, GitLab, Terraform, Kubernetes
secrets-scanning, config-audit, credential-leak, secret-store
45 skills in this plugin
/api-endpoint-scaffolderScaffold HTTP API endpoints in any stack - ASP.NET Core Minimal APIs or controllers, Express, Fastify, NestJS, FastAPI, Django REST Framework, Spring Boot controllers, Go net/http, chi, Gin - one feature per endpoint (REPR style) with request validation, typed responses, route grouping, auth, and OpenAPI metadata. Use this skill whenever the user wants to add an endpoint or route, convert controllers to minimal APIs, structure routes or routers, set up endpoint groups, TypedResults, route handlers, request DTOs/schemas (zod, Pydantic, Bean Validation, binding tags), or asks "how do I add an endpoint / structure my API routes". Always use this skill for endpoint scaffolding; it generates a complete, validated endpoint that matches the project's conventions./architecture-test-generatorGenerate architecture tests / fitness functions that fail the build when architectural rules are violated - layer dependencies, module boundaries, cycles, naming, and visibility conventions - in any stack: NetArchTest or ArchUnitNET (.NET), ArchUnit or Konsist (Java/Kotlin), dependency-cruiser or eslint-plugin-boundaries (TypeScript/JavaScript), import-linter (Python), go-arch-lint or depguard (Go). Use this skill whenever the user wants architecture tests, to enforce layering or the dependency rule, dependency rules as tests, import rules, forbidden imports, no circular dependencies, naming conventions, fitness functions, or asks "how do I stop people breaking the architecture / enforce my layers / keep modules from importing each other". Always use this skill for architecture-test requests; it generates rules matching the project's real structure./async-await-auditorAudit async and concurrent code in any language for correctness and performance bugs - C#/.NET (async/await, Task), JavaScript/TypeScript (Promises, async/await), Python (asyncio), Java/Kotlin (CompletableFuture, virtual threads, coroutines), Go (goroutines, channels, context), Rust (tokio/async). Use this skill whenever the user shares async or concurrent code, or asks about deadlocks, hangs, blocking calls, .Result/.Wait(), async void, ConfigureAwait, floating or unhandled promises, await in a loop vs Promise.all, blocking the event loop, forgotten await, asyncio.gather/TaskGroup, CompletableFuture.join, virtual thread pinning, goroutine leaks, context cancellation, WaitGroup/errgroup, holding a lock across .await, fire-and-forget tasks, cancellation tokens, or "why does my async code hang". Always use this skill for async/concurrency reviews instead of answering from memory; it applies a fixed checklist and rewrites the code./authorization-setupDesign API authorization in any stack - policy-based, role-based, claims/permission-based, and resource-based (ownership) checks. Covers ASP.NET Core policies and AuthorizationHandler, NestJS guards, Express middleware and CASL, FastAPI dependencies/scopes, Django and DRF permission classes, Spring Security (@PreAuthorize, SecurityFilterChain), Go middleware, and Casbin/OPA. Use this skill whenever the user wants authorization policies, role/claim/permission checks, RBAC/ABAC, custom authorization rules, resource-based authorization, IDOR protection, "deny by default", or asks "how do I authorize this / policy vs role / restrict this endpoint to X / stop users seeing other users' data". Always use this skill for authorization requests; it generates policies, handlers, and endpoint wiring./benchmark-setupSet up correct micro-benchmarks in any stack and interpret the results - BenchmarkDotNet (.NET), JMH (Java/Kotlin), pytest-benchmark / pyperf (Python), Vitest bench / tinybench / mitata (JavaScript/TypeScript), Go testing.B + benchstat, Rust criterion. Use this skill whenever the user wants to benchmark code, measure performance, compare two implementations or functions, set up a benchmark harness, or asks "which is faster", "benchmark these two functions", "how do I benchmark this", "is this optimization worth it", or "interpret these benchmark results". Always use this skill for micro-benchmarking requests; it writes correct benchmarks, avoids the classic pitfalls, and explains the numbers./caching-strategy-setupAdd the right caching to an app in any stack - in-process, distributed (Redis/Valkey/Memcached), two-level, or HTTP/output caching - with correct keys, expiration, stampede protection, and invalidation. Covers HybridCache / IMemoryCache / IDistributedCache / output caching in .NET, lru-cache / keyv / cache-manager / ioredis in Node, functools / cachetools / redis-py / Django cache in Python, Spring Cache with Caffeine or Redis in Java/Kotlin, and ristretto / groupcache / singleflight / go-redis in Go. Use this skill whenever the user wants caching, to cache a query/response, Redis caching, @Cacheable, lru_cache, HybridCache, cache-aside, output caching, or asks "how do I cache this / add caching / avoid cache stampede / invalidate this cache". Always use this skill for caching requests; it picks the right layer and wires expiration + invalidation correctly./ai-dev-toolkit:secrets-config-auditorfrom AI for Developers Toolkit
npx claudepluginhub stefanthecode/ai-for-developers --plugin ai-dev-toolkitOther plugins' skills for the same job