skill-scan

Scan agent skill packages for security threats and misalignments.

3|1|Updated Feb 1, 2026
One-click install
npx skills add https://github.com/dgriffin831/clawhub-skills --skill skill-scan
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: skill-scan
Source: https://github.com/dgriffin831/clawhub-skills/tree/main/skill-scan
Command: npx skills add https://github.com/dgriffin831/clawhub-skills --skill skill-scan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The Skill-Scan tool helps teams quickly identify security threats in agent skill packages before installation, reducing the risk of running unsafe code in AI agent environments.

Core Features & Use Cases

  • Multi-layer threat detection combining fast pattern matching, JS/TS evasion analysis, prompt-injection checks, and optional LLM-powered semantic threat analysis.
  • Alignment verification to ensure SKILL.md descriptions match actual code behavior and to surface trojan-like misalignments.
  • Meta-analysis to correlate findings, reduce false positives, and surface missed threats across the skill package.
  • ClawHub integration to scan skills directly from the registry and to verify external dependencies before installation.
  • Flexible outputs and workflows for automation, including text reports, JSON, compact summaries, and alerting.

Quick Start

  • Scan a local skill directory: skill-scan scan /path/to/skill
  • Scan a skill from ClawHub: skill-scan scan-hub <slug>
  • Batch scan installed skills: skill-scan batch /path/to/skills-directory

Frequently Asked Questions about skill-scan

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scan an AI agent skill package for security threats before deployment?▼

Scan AI agent skill packages by analyzing SKILL.md, code, and assets to detect threats and misalignments. Run skill-scan on local directories or ClawHub slugs to identify prompt injection, evasion tactics, and trojan-like behavior before installation.

What is multi-layer static analysis for agent skills and how does it detect prompt injection?▼

Multi-layer static analysis detects prompt injection by combining fast pattern matching, JS/TS AST evasion analysis, and optional LLM-powered semantic threat analysis. This approach correlates findings across the skill package to reduce false positives and surface hidden security threats.

Can I verify if a skill's documentation matches its actual code behavior?▼

Alignment verification checks whether SKILL.md descriptions match actual code behavior to surface trojan-like misalignments. By cross-referencing declared functionality with static analysis results, it identifies skills that hide malicious intent behind benign documentation.

How do I batch scan installed skills in a directory for security governance?▼

Batch scan installed skills by running skill-scan batch against a directory path. This enables scalable security governance by processing multiple local skill packages simultaneously, applying multi-layer threat detection and meta-analysis across the entire set.

Does skill-scan work with skills hosted on the ClawHub registry?▼

ClawHub integration allows you to scan skills directly from the registry using the scan-hub command with a slug. It verifies external dependencies and audits skill packages before installation, supporting both local directories and registry-based workflows.

What are the limitations of pattern matching when analyzing AI agent skill packages?▼

Pattern matching alone may miss sophisticated evasion techniques and semantic threats in AI agent skill packages. Skill-scan addresses this by layering AST/evasion analysis, prompt-injection checks, and optional LLM analysis to correlate findings and reduce missed threats.