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."
"Many organizations have them hardcoded within the source code in plaintext, littered throughout configuration files and configuration management tools."
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/userSkillland's call: No skill guide names secrets directly. This rule applies general security practice to the files Anthropic asks you to audit.
23 of 4462 indexed skills fail this check
This check against the 10 that fire most often in the index:
Run the same check on your own skill in the validator, or from a terminal with the skillland CLI.