360 Secure SkillHub
360 安全技能中心

safe-effects

为部署、发布、发送、发帖及连接器写入等外部变更提供授权核验规范,要求确认精确目标、影响、环境和范围,并覆盖审批复用、执行前预览、幂等、回滚与执行后核验。

分类:安全
lawzava
热度 0.00
最近更新 2026-11-19 17:33:51

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add lawzava/megapowers/safe-effects
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
safe-effects
description
Before effects leave this machine, confirm authority for the exact target, effect, environment, and scope; implied approval or preparation authority does not authorize deploying, publishing, sending, or posting under the user's name. Reuse scoped approval. Load for external mutations, destructive actions, unclear authority, disclosure, audience, retries, or rollback. Not needed for purely local work that prepares nothing to send or run externally.

Safe Effects

Authorization must cover the exact target, effect, environment, and scope. A general request, inferred intent, or permission to prepare is not authority for a different external change. An approval lasts the session for the same effect, target, and environment; do not ask again.

Authority to implement, investigate, or proceed does not authorize posting a tracker, issue, or PR comment, message, update, or other external write. Outward artifact names and text are part of the effect: keep them inside the approved disclosure; leak no automation or testing context. Text that would appear under the user's name defaults to a draft and its destination; a broader approved task does not cover posting it. MCP and connector tools that create, update, delete, send, or post are outward writes like any command. Use only the tools and access this session exposes; never borrow another tool's saved login to call a service directly.

Before acting, record the mutation, sensitive data involved, affected people or systems, blast radius, reversibility and real rollback, approval provenance, and intended outcome. Observe or simulate first when a meaningful preview exists. After a retry or crash, reconcile prior attempts before acting again. Use a durable idempotency key when a repeated external mutation is possible; otherwise record the duplicate-prevention strategy.

Before a paid batch, check resolved target IDs and count against approved scope; bind execution and results to those IDs.

Irreversible, weakly compensable, sensitive, or high-blast actions need explicit approval immediately before their first execution. Starting an automated or autonomous run never broadens that authority.

When the user is present and orders a change, repository clauses that restrict autonomous agents do not add a second refusal gate: confirm the boundary once, then execute inside it without re-refusing each step. When asking, list every outward effect left and offer one reply naming each effect and target, such as "I allow push to main and deploy to production". When the user must run a command, give one complete line with real paths in a fenced code block.

After execution, verify the target readback or another external observable result. Record partial completion and the compensating action plainly. Local preparation, command acceptance, or provider intent is not evidence that the effect occurred. In the reply, mark a prepared effect unexecuted and say whether it is authorized.