spellwarden-ai

Spellwarden — Security skill for Claude Code

Security community

Open-source scanner for agent skills, MCP servers, Claude Code configuration and A2A agent cards.

How to install Spellwarden

This entry records only its repository, not the path inside it, so there is no exact command to give. Open spellwarden-ai/spellwarden and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Spellwarden does

Open-source scanner for agent skills, MCP servers, Claude Code configuration and A2A agent cards. 65 rules mapped to OWASP and NIST, SARIF output. Apache-2.0.

Alternatives in Security

  • Anthropic Cybersecurity Skills — 734+ structured cybersecurity skills for AI agents · MITRE ATT&CK mapped · agentskills.io open standard · Work 3.8k ★
  • Unifly Audit — Security audit of UniFi configuration 248 ★
  • Reflexion — Audit and optimize the .claude/ ecosystem — skills, hooks, guides, patterns, agents, and settings — for qualit 224 ★

README

spellwarden

The Spellwarden scan engine: the baseline rules for agent skills, MCP servers and A2A agent cards, the probe classification against the 2026-07-28 MCP specification, the migration checklist and the curation score. It is the engine of the hosted product at [spellwarden.ai](https://spellwarden.ai) and is published so that the same rules run in your own tooling.

One distribution holds two import packages. `spellwarden_scan` is the engine and is pure code: it never opens a connection, reads a file or an environment variable; you hand it the bytes of a package, a configuration file or the recorded result of a probe, and it hands back findings. `spellwarden_cli` is the `spellwarden` command: it finds the agent content in a repository, runs the engine on it on your machine or CI runner, and writes the reports. The GitHub Action and the GitLab CI component that run the command in pipelines arrive with 1.0.0.

pipx run spellwarden scan .          # or: pip install spellwarden, then spellwarden scan .

Python 3.11 or newer. The runtime dependencies are PyYAML and `cryptography`, which verifies the signatures on A2A agent cards.

Scanning a skill package

from spellwarden_scan import RuleSet, scan_skill_package, unpack_zip

files, executable = unpack_zip(open_bytes, with_modes=True)   # or any {path: bytes} mapping you built yourself
result = scan_skill_package(files, RuleSet.baseline(), executable_paths=executable)
for finding in result.findings:
    print(finding.rule_id, finding.severity, finding.location.path, finding.location.line, finding.evidence)
print(result.sha256, result.metadata.name, result.truncated)
  • files maps POSIX relative paths to bytes. root names the directory that holds SKILL.md when it is not the package root.
  • unpack_zip(data, limits=ArchiveLimits(), with_modes=False, root="") reads a zip held in memory and refuses unsafe archives with an ArchiveError whose code is one of too_large, `too_many_fil