Agent Skills
› cisco-ai-defense/skill-scanner
› file-validator
file-validator
GitHub验证文件名扩展名是否在允许列表中,无需执行任何文件系统I/O操作。
触发场景
需要校验文件扩展名合法性
防止非法文件类型上传或处理
安装
npx skills add cisco-ai-defense/skill-scanner --skill file-validator -g -y
SKILL.md
Frontmatter
{
"name": "file-validator",
"license": "Apache-2.0",
"description": "Validate a filename extension without opening any filesystem path",
"allowed-tools": []
}
File Validator
Use validate.py to check whether a filename has an allowed extension. The helper performs no I/O.
版本历史
-
431cb58
当前 2026-09-09 14:53
功能从格式与内容完整性检查简化为仅验证扩展名,移除了 I/O 操作。
- 48f5934 2026-08-20 07:36


