When you install a third-party SKILL.md, AGENTS.md, CLAUDE.md, or .cursorrules, your coding agent reads it directly into its system context with shell and file-access permissions.
Unlike package.json or GitHub Actions workflows, instruction files rarely go through static security checks in CI.
What can hide inside an agent skill file
- Remote execution pipes:
curl ... | sh,wget ... | bash,iwr ... | iex, orbase64 -d | sh. - Credential path harvesting: References to
~/.ssh,id_rsa,.aws/credentials,.npmrc,.netrc, or.env. - Exfiltration endpoints:
webhook.site, Discord webhooks, Telegram bot API URLs,ngrok,requestbin,pipedream,transfer.sh, orpastebin. - Instruction overrides & silent network calls: Phrases like
"ignore previous instructions"or"do not tell the user", plusfetch/axios/http.requestinstructions. - Hidden Unicode: Zero-width joiners and bidirectional control characters invisible in standard code review.
A zero-dependency linter + GitHub Action
I built agent-skill-lint (MIT, zero runtime dependencies) to gate these patterns locally and in CI:
npx github:sidsri14/agent-skill-lint It scans SKILL.md, AGENTS.md, CLAUDE.md, .cursorrules, and .claude/skills / .opencode/skills directories, returning exit code 1 on any finding.
If you want to drop it into GitHub Actions, there is also a composite action.yml in the repo (8/8 tests passing with node --test).
Feedback, edge cases, and PRs are welcome on GitHub.