No real secrets

Finds API keys, tokens, private keys and literal passwords in SKILL.md and its bundled files. Files under evals/, fixtures/, __fixtures__/ or test data folders are checked by the test data rule instead.

ErrorFails on 23 of 4462 indexed skills
share

Skills get copied into other people's projects, secrets and all

A skill is meant to be shared. It gets copied into other repositories, installed by people you'll never meet, and scanned by registries. A real API key or password in any of its files goes everywhere the skill goes.

Anthropic asks anyone installing a skill to audit every file in it, and registry security scans block skills that contain secrets. Once a key has been published, deleting it from the file doesn't help: it has to be revoked and replaced.

"Audit thoroughly: Review all files bundled in the Skill: SKILL.md, scripts, images, and other resources."
Anthropic: Agent Skills overview, security considerations
"Many organizations have them hardcoded within the source code in plaintext, littered throughout configuration files and configuration management tools."
OWASP Secrets Management Cheat Sheet

Read secrets from environment variables

Refer to the environment variable and never paste the value.

This fails:

export GITHUB_TOKEN=ghp_8fK2...

This passes:

curl -H "Authorization: Bearer $GITHUB_TOKEN" https://api.github.com/user

Skillland's call: No skill guide names secrets directly. This rule applies general security practice to the files Anthropic asks you to audit.