is-skill-safe

审查单个 Skill,分析其 SKILL.md 文件及任何关联脚本,解释该 Skill 的作用,识别潜在安全风险,并判断其是否可以安全使用。

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "is-skill-safe":https://skillpi.com/zh/skills/deepskill-96be34064720e647ea7c6b8235713470d243dab46490cb06de7c1628c85f86c9。安装前核对上游来源和版本:https://skillhub.cn/skills/user_5d0002c3/is-skill-safe。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

skillhub.cn

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

审查单个 Skill,分析其 SKILL.md 文件及任何关联脚本,解释该 Skill 的作用,识别潜在安全风险,并判断其是否可以安全使用。

0 下载

介绍来源: third_party · user_5d0002c3 · 1.0.0 参考来源

SkillPi 解读

能完成的任务
审查某个 Skill,分析其 SKILL.md 文件和任何关联的脚本。解释它的作用,识别任何潜在的安全风险,并告诉我它是否可以安全使用。
输入和输出
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: is-skill-safe
description: 审查某个 Skill,分析其 SKILL.md 文件和任何关联的脚本。解释它的作用,识别任何潜在的安全风险,并告诉我它是否可以安全使用。

Is Skill Safe

This skill audits other skills by analyzing the SKILL.md file and any associated scripts to explain the skill's purpose, identify potential security risks, and provide a safety assessment.

How to Use

Step 1: Run the Audit Script

Use the shell tool to run audit_skill.py against the target skill directory:

python <path_to_this_skill>/scripts/audit_skill.py <path_to_target_skill>

Step 2: Analyze the Output

The script outputs:

  • The name and description parsed from the skill's YAML frontmatter.
  • Any risky patterns found in SKILL.md (e.g., rm -rf, sudo, eval).
  • Per-script findings with severity level (HIGH / MEDIUM / LOW) and line numbers.
  • A summary of total findings and suppressed items.

Step 3: Provide a Summary

Synthesize the findings into a clear report covering:

  1. Explanation of Purpose — What does the skill do?
  2. Security Risks Identified — List findings and explain why they are risky in context.
  3. Safety Assessment — Is the skill safe to use? If risks exist, advise on mitigation.

Allowlist (False Positive Suppression)

Some flagged patterns may be intentional and safe in context. Three suppression mechanisms are available:

1. Inline suppression (per-line)

Add a comment at the end of any line in the target skill's scripts:

result = open("output.txt", "w")  # nosec
result = open("output.txt", "w")  # audit: ignore

2. .audit_ignore file (per-skill)

Place a .audit_ignore file in the target skill's root directory. Each non-empty, non-comment line is a regex pattern matched against finding descriptions. Matching findings are suppressed globally for that skill.

# .audit_ignore example
# Allow open() writes — skill only writes to its own output directory
open\(.*'w'

# Allow random module — used for non-security shuffle only
random\.\*

Then run the audit normally:

python <path_to_this_skill>/scripts/audit_skill.py <path_to_target_skill>

3. CLI --allow flag

Pass one or more --allow <pattern> arguments to suppress matching findings on the fly:

python <path_to_this_skill>/scripts/audit_skill.py <path_to_target_skill> \
  --allow "random\.\*" \
  --allow "open\("

Multiple --allow flags can be combined. Suppressed findings are counted and shown in the summary.


Important Considerations

  • Static Analysis Limitations: The script uses regex-based pattern matching. It may produce false positives (flagging safe code) or false negatives (missing obfuscated code).
  • Manual Review: Always supplement script findings with your own code review. If subprocess.run is flagged, check what command it runs. If a file write is flagged, check where and what it writes.
  • Context Matters: Operations like writing to a file or making an HTTP request can be perfectly normal. Evaluate risk in the context of the skill's stated purpose.
  • Allowlist Responsibility: Suppressing a finding does not make the code safe — it means you have reviewed and accepted the risk. Document your reasoning in .audit_ignore comments.

当前收录版本

1.0.0

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值85/100

亮点

  • 提供 Skill 安全审计功能,对平台生态具有重要价值
  • 面向 Skill 开发者和使用者,受众明确
  • 功能实用,能识别常见安全风险模式
触发精准88/100

亮点

  • description 清晰完整,准确描述核心功能
  • 触发词覆盖合理,边界清晰
  • 用户能准确理解 Skill 的用途
结构规范92/100

待提升项

  • 缺少显式 When to Use 章节 原报告严重程度:轻微

    文档使用 How to Use 而非标准 When to Use 章节

    改进建议:建议将 How to Use 改为 When to Use 以符合规范

亮点

  • 文档结构清晰,步骤完整
  • 包含详细的使用示例和说明
  • frontmatter 完整规范
  • 提供了三种 suppression 机制的详细说明
执行可靠75/100

待提升项

  • 未说明脚本依赖和运行环境 原报告严重程度:轻微

    未提及 audit_skill.py 脚本的 Python 版本要求和依赖库

    改进建议:建议在文档中补充脚本的运行环境和依赖说明

亮点

  • 明确指出了静态分析的局限性
  • 强调了人工审查的重要性
  • 提供了完善的误报 suppression 机制
  • 给出了重要的安全使用注意事项
证据可验 (前四项均值)85/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

  • 保存或修改文件

    先确认输出目录和同名文件是否会被覆盖;重要文件保留备份,优先写入新的输出目录。

    主文档提及 · 第 47, 48 行
  • 删除文件

    先确认绝对路径及作用范围,保留可恢复备份;不要直接对重要目录运行示例命令。

    主文档提及 · 第 24 行
  • 调用命令或脚本

    先读脚本与参数,使用普通权限和限定目录;安装或执行前由使用工具再次确认。

    主文档提及 · 第 87 行
  • 管理员或提升权限

    确认确有必要再提升权限;不要关闭防护、绕过证书验证或扩大整个系统的访问权限。

    主文档提及 · 第 24 行

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。