跳到正文
TakoAPI
返回技能列表

security-checker

由 johstracke 提供

Health & Fitness
1.1k下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Security scanner for Python skills before publishing to ClawHub.

描述

该技能的功能

Static analysis tool that scans Python skill files before publishing to ClawHub. Checks for dangerous imports, hardcoded secrets, unsafe file operations, and code execution functions like eval/exec. Produces warnings and pass/fail results to guide safe publishing decisions.

Running this before every publish catches credential leaks and dangerous patterns that manual review commonly misses under time pressure.

何时使用

  • Scanning a skill script for hardcoded API keys before publishing
  • Catching accidental subprocess or eval usage in automation scripts
  • Running as a pre-commit hook to block insecure code from being committed
  • Auditing an entire skills directory before a ClawHub release
  • Replacing a manual code review step with automated pattern detection

示例工作流

输入

User asks: scan my skill at /home/user/.openclaw/workspace/skills/my-tool before I publish

智能体
  1. 1

    Runs security_scan.py against the specified skill directory

  2. 2

    Parses output for warnings and hardcoded secret alerts

  3. 3

    Reports each flagged line with the category of risk

  4. 4

    Suggests refactoring hardcoded values to environment variables

  5. 5

    Confirms scan passed or lists issues blocking publish

输出

Scan report listing any warnings with file paths and line numbers, or a clean pass confirmation

安装

clawhub install johstracke/security-checker

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接