npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@yourclaw/clawguard-cli

v0.3.0

Published

Scan AI agent skills for security vulnerabilities

Downloads

168

Readme

@yourclaw/clawguard-cli

Command-line interface for the ClawGuard security scanner. Scan AI agent skills for prompt injection, secrets, malware, and permission abuse from your terminal.


Installation

# Global install
npm install -g @yourclaw/clawguard-cli

# Or run directly with npx
npx @yourclaw/clawguard-cli scan /path/to/skill

For local development as part of the ClawGuard project:

cd ../clawguard && make setup

Commands

clawguard scan <path>

Scan a skill directory for security issues.

# Basic scan (builtin patterns only, no external tools)
clawguard scan ./my-skill --builtin-only --skip-ai

# Full scan with all available tools
clawguard scan ./my-skill

# Output as SARIF for GitHub Code Scanning
clawguard scan ./my-skill --format sarif > results.sarif

# CI-friendly output with exit codes
clawguard scan ./my-skill --format ci

Options:

| Flag | Description | | ---- | ----------- | | --builtin-only | Skip external tools (gitleaks, semgrep, etc.) | | --skip-ai | Skip AI review for ambiguous findings | | --format <fmt> | Output format: terminal (default), json, sarif, markdown, ci |

Exit codes (CI format):

| Code | Meaning | | ---- | ------- | | 0 | Passed — no issues found | | 1 | Warning — medium-severity findings | | 2 | Blocked — critical/high-severity findings |

clawguard check <name>

Look up a skill in the ClawGuard trust registry.

clawguard check memory-manager
clawguard check code-formatter --registry https://clawguard.sh

Options:

| Flag | Description | | ---- | ----------- | | --registry <url> | Registry URL (default: https://clawguard.sh) |

clawguard doctor

Check which external scanning tools are available on your system.

clawguard doctor

Example output:

ClawGuard Doctor
════════════════

  gitleaks    ✓ installed
  semgrep     ✓ installed
  mcp-scan    ✗ not found
  npm         ✓ installed

Examples

Scan a local skill

$ clawguard scan ./my-memory-skill --builtin-only --skip-ai

  ClawGuard Scan Report
  ═════════════════════

  Skill:     my-memory-skill
  Status:    ✓ PASSED
  Score:     0 / 100
  Findings:  0

  Recommendation: Safe to install

Scan a skill with findings

$ clawguard scan ./suspicious-skill --builtin-only --skip-ai

  ClawGuard Scan Report
  ═════════════════════

  Skill:     suspicious-skill
  Status:    ✗ BLOCKED
  Score:     85 / 100
  Findings:  7

  CRITICAL  PI-001  Prompt injection: instruction override attempt
  CRITICAL  MAL-002 Reverse shell detected
  HIGH      MAL-003 Data exfiltration pattern
  HIGH      SEC-001 AWS access key detected
  ...

  Recommendation: Do not install

Use in CI/CD

# .github/workflows/scan.yml
- name: Scan skill
  run: npx @yourclaw/clawguard-cli scan ./skill --builtin-only --skip-ai --format ci

Development

# Install dependencies
npm install

# Build
npm run build

# Run locally (without building)
node bin/clawguard.js scan ../clawguard-rules/test-fixtures/malicious/data-exfiltration-skill --builtin-only --skip-ai

# Lint
npm run lint

Makefile

make install    # npm install
make build      # tsup build
make test       # run the demo scan
make lint       # biome check
make clean      # remove dist/ and node_modules/

Contributing

See the main CONTRIBUTING.md for guidelines. To work on the CLI specifically:

git clone https://github.com/yourclaw/clawguard.git && cd clawguard
make bootstrap    # sets up all repos
cd ../clawguard-cli
# make changes...
npm run build && node bin/clawguard.js scan ../clawguard-rules/test-fixtures/malicious/data-exfiltration-skill --builtin-only --skip-ai

License

Apache-2.0