/countersign:countersignfrom Countersign
Explains and tunes Countersign, the safety layer that checks every tool call in this session. Use when a tool call was blocked or held by Countersign, when the user asks why something needs approval, wants to see what their agent did, or wants to change what is allowed (for example "let me push to main", "stop asking about node_modules", "cap email deletes at 5").
Ships in Countersign. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Countersign checks every tool call before it runs. It turns the call into plain actions (for example
fs::delete, git::push, db::destructive, email::send) and applies the project's policy:
countersign-guard log -n 20 # what was allowed, held or blocked, newest last
countersign-guard check "rm -rf build" # what would happen to a command, without running it
countersign-guard packs # the rule packs and what each covers
countersign-guard init # create .countersign/policy.yaml for this project
countersign-guard verify # confirm the log hasn't been edited
Only change the policy when the user asks you to, and show them the change. Rules live in
.countersign/policy.yaml (this project) or ~/.countersign/policy.yaml (everywhere). Run
countersign-guard init first if the file doesn't exist. Rules there override the packs, one action at a time.
packs: [code, data, infra, email, files, messages, money]
tools:
"git::push":
approve_above: { force: 0 } # stop asking for pushes to main, still ask for force-pushes
"fs::delete":
approve_above: { tree: 0, outside: 0, secret: 0 }
budgets: [{ field: count, limit: 100, per: hour, key: [session] }]
"github::delete_file": # any MCP tool by its exact name: <server>::<tool>
deny: true
"email::delete":
budgets: [{ field: count, limit: 5, per: hour, key: [session] }]
After editing, check the change with countersign-guard check "<command>".
Never set COUNTERSIGN_GUARD=off or remove the hooks yourself. If the user wants Countersign off,
tell them to run /plugin and disable it.
Some blocks come from the shield rather than a rule. They name the specific danger:
If something was deleted by mistake, countersign-guard undo lists the copies kept before deletes and
git resets, and countersign-guard undo <id> restores one. Suggest it to the user rather than trying
to rebuild the files yourself. To turn a shield check off for a project, the user can add for example
shield: { typosquat: false } to .countersign/policy.yaml.
What SKILL.md sets; muted values are Claude Code's defaults
A tool result or permission prompt starts with "Countersign blocked this" or "Countersign needs your OK", or the user mentions Countersign, guardrails, the agent log, or allowing or blocking an action.
npx claudepluginhub akshittiwarii/countersign --plugin countersign