← ClaudeAtlas

verifylisted

三层验证:运行时安全防护 + 阶段门禁 + 编译器级质量验证
chengxuniucode/ForgeTeam · ★ 0 · AI & Automation · score 72
Install: claude install-skill chengxuniucode/ForgeTeam
# Verify Skill ## 目标 统一三层验证职责: 1. **Safety Guard** — 危险操作实时拦截 2. **Phase Gate** — 阶段切换前置条件检查 3. **Verification Pipeline** — 代码质量编译器级验证 --- ## Part 1: Safety Guard(运行时拦截) 在任何危险操作执行前介入,事前拦截而非事后检查。 ### Level 1: 硬阻断(Block) 无论如何不允许执行: ```yaml hard_blocks: commands: - "rm -rf /" - "rm -rf ~" - "rm -rf /*" - "> /dev/sda" - "mkfs" - "dd if=/dev/zero" - ":(){ :|:& };:" git: - "git push --force origin main" - "git push --force origin master" - "git reset --hard origin" - "git clean -fdx /" files: - write_to: "/etc/*" - write_to: "/usr/*" - write_to: "~/.ssh/*" - delete: ".git/" - delete: ".forgeteam/" ``` ### Level 2: 确认(Confirm) 需要用户明确确认: ```yaml confirmations: commands: - pattern: "rm -rf {any_directory}" message: "About to recursively delete directory. Confirm?" - pattern: "DROP TABLE|DROP DATABASE" message: "Destructive SQL operation. Confirm?" - pattern: "git push --force" message: "Force push will overwrite remote. Confirm?" files: - pattern: "overwrite existing config file" message: "About to overwrite {file}. Confirm?" - pattern: "delete more than 5 files" message: "About to delete {N} files. Confirm?" ``` ### Level 3: 警告(Warn) 允许执行但给出提醒: ```yaml warnings: commands: - pattern: "chmod 777" message: "Overly permissive. Consider 755 or 644" - pattern: "npm install {pkg} --save" message: "Adding new dependency: {pkg}"