一键导入
pre-action-guard
A QA gate that validates potentially destructive or irreversible actions before execution.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
A QA gate that validates potentially destructive or irreversible actions before execution.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Detect and prevent state-visibility violations across execution contexts within a single transaction.
Convert mixed terminal output and instructions into safe, paste-ready command blocks.
Prepares isolated sub-workspaces for parallel agent execution. Copies context and generates specific mission instructions for "Worker" agents.
Structured logging and analysis of execution failures to prevent recurrence.
Detects when the agent is stuck in a reasoning loop or unproductive state by analyzing tool usage and sentiment patterns.
Generates a 'Red Team' critique of recent code or plans to identify weak assumptions and edge cases.
| name | Pre-Action Guard |
| description | A QA gate that validates potentially destructive or irreversible actions before execution. |
| version | 1.0.0 |
| author | Antigravity Skills Library |
| created | "2026-01-16T00:00:00.000Z" |
| leverage_score | 5/5 |
Enforces a "Measure Twice, Cut Once" philosophy. This skill intercepts high-stakes actions (file writes, command execution) and validates them against safety rules and the current active plan to prevent accidental data loss or system corruption.
check safetyverify actionis this safeguard check| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
--Action | string | Yes | - | The tool/verb being performed (e.g. write_to_file, rm) |
--Target | string | Yes | - | The file path or command argument |
--Plan | string | No | $null | The current plan context for alignment check |
{
"allowed": false,
"risk_level": "CRITICAL",
"reason": "Root directory deletion detected.",
"warnings": ["Target matches blocked pattern '/*'."]
}
NONE: Read-only operations.LOW: Safe writes (files in temp, new files).MEDIUM: Modifying existing non-critical files.HIGH: Modifying config/env files.CRITICAL: Destructive delete/format commands./, C:\) are automatically blocked..env and config keywords for higher sensitivity.PS C:\, >).Everything up-to-date, At line:, CategoryInfo:).| Condition | Action |
|---|---|
| Missing Action/Target | Return error |
| CRITICAL risk | Return allowed: false |
| Mixed Output Detected | Return allowed: false |
See scripts/guard_check.ps1.
All agents must:
write_to_file on existing files.run_command containing rm, del, drop.allowed is false, STOP and ask user for confirmation.