agentsclimarketplace

Effect broker

Skill lawzava/megapowers/plugins/mega-orchestration/skills/effect-broker

Skills, plugins, and hooks that change how coding agents work — Claude Code, Codex, OpenCode, Antigravity. Measured, not vibed.

Install
npx -y skills add lawzava/megapowers --skill effect-broker

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Use before a deploy, send, charge, database migration, destructive query, DNS change, external API write, or other costly real-world side effect.

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

3.4 KB, as published. Nobody here has run it

Effect Broker

People delegate what they can trust not to do something irreversible they did not want. String-parsing shell commands cannot guard that; a parser cannot see intent and every parser has bypasses. Gate on what the action is: the caller declares the action's class and the broker enforces that class's protocol, scaled by the autonomy dial from mega-orchestration:autonomous-run.

Classify the effect

ClassWhat it isExamples
reversibleUndoable locally; a git revert/restore fixes it.edit a file, read data, write to a scoped temp dir, create a branch
stagedHas a native dry-run / plan / preview and a defined undo.terraform apply (has plan), kubectl apply (has --dry-run), a migration with up/down, a push to a non-default branch
irreversibleNo real undo and real blast radius.prod deploy, sending email/notifications, a payment/refund, DROP/DELETE without a backup, a DNS cutover, deleting a cloud resource

When unsure between two classes, pick the more dangerous one.

Run scripts/effect-broker <class> [--level <autonomy-level>] to get the required protocol as KEY=VALUE (DRY_RUN, IDEMPOTENCY, JOURNAL, APPROVAL, PROCEED, BLAST_RADIUS).

The protocol (simulate → commit)

  • reversible is never gated. Do it at any autonomy level; a journal line is optional.
  • staged dry-runs first, always. Record the plan or preview, check it against intent, then commit with an idempotency key where the API supports one, so a retry after a timeout is a no-op rather than a second charge, send, or deploy. A human gates this only at in-the-loop.
  • irreversiblestage a plan and get approval at every level, including autonomous. It never auto-fires. The plan states what will happen, to what, and the blast radius; the commit uses an idempotency key and is recorded in the run journal for replay.

Blast radius

The charter (mega-orchestration:autonomous-run) declares what a run may not touch. Enforcing it is your job, not the helper's: the helper prints BLAST_RADIUS=caller-enforced-vs-charter and does not read the charter. Refuse an action outside the charter's caps rather than asking for approval to exceed them.

Honest failure reporting

If a committed effect fails or partially applies, say so plainly in the journal and the run report: what succeeded, what did not, and whether a compensating action is needed. A half-applied irreversible effect is the case where honesty matters most.

Relationship to the guardrail hooks

The deny-destructive PreToolUse hook is a thin, last-ditch tripwire for a few unambiguous local catastrophes, not the irreversibility layer. It runs through the native adapters on Claude Code and Codex; other harnesses receive no hook enforcement. This skill is the irreversibility layer, and it is portable: it works by declaration on every runtime, with no dependency on a hook firing. No agent message counts as human approval; where the harness does not enforce that, this skill's wording is the guarantee. A scheduled or cloud runner skips permission prompts entirely, so an irreversible action's approval gate must live in the run prompt itself; mega-orchestration:autonomous-run carries the full caveat.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.