SkillFeeder › 全部 Skill › Bug与质量 › guarding-destructive-operations

阻止误删、误覆盖和越界写入等危险操作

guarding-destructive-operations

guarding-destructive-operations 是 SkillFeeder 收录的Agent Skill,来自 GitHub 仓库 kajisho5/ffmpeg-skill,★ 5,032。阻止误删、误覆盖和越界写入等危险操作。适合处理敏感文件的自动化脚本作者。场景是Bug与质量 · Code Review。能做的事包括拒绝而非警告,失败在第一处修改前、独立校验名称合法性与路径是否在安全目录内、按操作性质分类防护,不依赖文件名前缀匹配。打开 GitHub 自行安装。

打开 GitHub

仓库
kajisho5/ffmpeg-skill
仓库星标
★ 5,032
场景
Bug与质量 · Code Review
适合
处理敏感文件的自动化脚本作者
类型
Skill

能做什么

原文简介

Add and review preconditions on operations that delete, overwrite, rewrite history, or resolve a caller-supplied name to a filesystem path — refusing instead of warning, placing the guard ahead of the first mutation, structural classification rather than string-prefix matching, name validation plus resolved-path containment as two independent checks, why a guard on the destructive path is invisibl

同场景推荐