skill-scanner: Pre-installation Local Static Scan for Agent Skill Security Risks

Preface

When installing Agent Skills from SkillHub, repositories, or directories shared by colleagues, the common practice is to first check the README and trigger words, rarely examining scripts, dependencies, or supply chain risks systematically. Once a Skill is loaded by an Agent, it may access workspace files, environment variables, or execute external commands; problems often only surface after the Skill has already been installed.

Below introduces skill-scanner: perform a security-focused check via local static analysis before installing or using a Skill, without sending Skill file contents or credentials to external services during the analysis process.

What Is This

skill-scanner is a Skill published on the SkillHub community (coordinates @user_87fe1a85/gwchen17, current version 1.0.0), categorized under it-ops-security. Its capabilities are powered by Tencent Zhuque Lab A.I.G (AI-Infra-Guard); the page indicates requires_api_key=false, meaning no additional API Key is required.

It can be summarized as: performing security risk scanning on any Agent Skill using 100% local static analysis, compatible with common Agent environments such as CodeBuddy, Cursor, Windsurf, Claude Code, OpenClaw, and others.

Core Features

Based on the official description, verified capabilities include:

  1. Pre-install or pre-use scanning: Performs security-focused checks on the target Skill, rather than providing general Agent usage guidance or full system health checks.
  2. Pure local static analysis: Analysis is completed on the local machine; the official description explicitly states that file contents or credentials will not be transmitted outside the device.
  3. Natural language triggering: Initiates scanning via agreed-upon expressions in conversation (see “Typical Usage” below); scenarios not listed (e.g., general development debugging, full system health checks) are not within the designed trigger scope.

The Skill’s rating on SkillHub is 100000 (platform display rules are subject to SkillHub), and download counts are based on real-time page data (different statistical calibers have appeared in materials; the SkillHub detail page is authoritative at the time of writing).

Installation and Activation

The Skill follows the standard SKILL.md format and must be placed into the skills directory that the current Agent can recognize. SkillHub recommends installation via CLI and emphasizes that --dir must point to the current Agent’s skills path; otherwise, it defaults to ./skills/, which the Agent may not be able to load.

1. Install SkillHub CLI (if not already installed)

command -v skillhub && skillhub --version

If not installed, run the following (full installation includes default Skills; add --cli-only for CLI only):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

2. Install skill-scanner to the corresponding Agent directory

Install @user_87fe1a85/gwchen17 to the skills directory of the current environment. Common path examples (subject to the SkillHub installation documentation):

Agent / Client skills directory (example)
Cursor ~/.cursor/skills/
Claude Code ~/.claude/skills/
Windsurf ~/.codeium/windsurf/skills/ or project-level .windsurf/skills/
Codex ~/.codex/skills/ or project-level .agents/skills/

The installation command takes the following form (replace <skills directory> with the corresponding path from the table above):

skillhub install user_87fe1a85/gwchen17 --dir <skills directory>

Alternatively, follow the prompt on the SkillHub page and let the Agent install @user_87fe1a85/gwchen17 based on https://skillhub.cn/install/skillhub.md.

If the Agent does not immediately recognize the new Skill after installation, restart or refresh skills loading according to each client’s instructions.

Typical Usage

skill-scanner is triggered through specific intents in conversation. The official list of expressions includes:

  • Chinese: “这个 skill 安全吗” (Is this skill safe?), “skill 安全扫描” (skill security scan), “检查 skill 安全” (check skill security)
  • English: audit skill, scan skill, check skill safety, analyze skill, inspect skill, verify skill, skill security, skill supply chain

Usage steps can be summarized as:

  1. Install skill-scanner into the current Agent’s skills directory as described in the previous section.
  2. Specify the Skill to be checked in conversation (local path, SkillHub coordinates, or directory to be audited are all acceptable, subject to the actual scope accessible by the Agent).
  3. Use one of the trigger phrases above to request a security scan of the target Skill.

Official note: Do not expect it to handle general Agent usage questions, full system health checks, project debugging, or daily development tasks; these are not within the designed trigger scope.

Use Cases and Notes

Who It’s For

  • Developers who want an additional layer of supply chain and security vetting before pulling Skills from SkillHub or third-party channels.
  • Maintainers who want to promote a “scan before install” workflow within their teams.

Limitations and Notes

  • The capability is static analysis and cannot replace runtime penetration testing or manual code auditing; high-risk scenarios should still be combined with internal organizational security policies.
  • Scan targets must be readable on the local machine; paths that the Agent cannot access cannot be analyzed.
  • Compared to “install first, use later,” its value lies in identifying obvious risks before installation, reducing the likelihood of mistakenly installing Skills with high privileges or suspicious dependencies.

Conclusion

skill-scanner packages the security scanning capabilities of Zhuque Lab AI-Infra-Guard into an Agent Skill: local static analysis, no credential transmission, using fixed trigger phrases to audit a target Skill before installation or use.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye