/pushgate:pushgatefrom pushgate
Guides using cilock to produce signed evidence for Pushgate policy enforcement. Handles push refusals, agent enrollment, attestation recording, and policy drafting.
Ships in pushgate. 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.
Read when SKILL.md points to them.
Pushgate sits in front of a Git remote. It refuses a push unless signed evidence for the exact commit satisfies the policy a human assigned to the repository. cilock is the CLI that produces that evidence. It wraps a command, records attestations, and signs them as your enrolled agent identity. It also helps you draft policies.
This skill tells you the loop and the rules. It does not carry flags, predicate
fields, attestor lists, or rule templates. Those change between releases, so
the CLI prints them: cilock <command> --help, cilock policy guide, and the
error messages. When this skill and the CLI disagree, the CLI wins. This skill
ships inside cilock. Run cilock skill show to read the copy that matches the
binary you have.
cilock login session, or use a file key in place of the enrolled
agent or the human's platform signature. The one sanctioned key is the
throwaway local key cilock policy prove uses for an offline proof. It
never leaves the machine and is never presented as the policy.cilock run
or cilock attest may inform you, but it is not evidence.git remote -v unredacted, paste a remote URL, or
echo a token.If the loop stalls on one of these (for example, enrollment is refused or expired), stop and tell the human. Do not route around it.
Before you start, run cilock version. If a command below is missing, your
cilock is older than this skill. Tell the human; do not improvise a substitute.
Enroll this agent (once per lifetime):
cilock enroll agent --repo <owner/name>. A browser opens and the human
approves it with a passkey. You can start the ceremony, but you cannot
finish it. Then run cilock agent status. It must name a principal and an
expiry. Exit 0 alone proves nothing, because it also exits 0 when nothing
is enrolled. The identity is time-bound and cannot be extended. When it
expires, the human runs a new ceremony.
Configure Git signing: cilock git configure (this repository only).
The Pushgate remote itself comes from the setup document your human gets
from Pushgate. Follow that document; never invent a remote URL.
Commit, attest, push. Evidence binds to a commit, so commit first. Then
produce evidence for that commit with cilock run --step <step> -- <command>
(or cilock attest --step <step> ... for an at-rest snapshot). Then push.
Do not re-run the gate from a Git pre-push hook.
cilock run ... | tee log reports tee's
exit, not cilock's, so a failed step looks like success; use
set -o pipefail or no pipe. A step whose command fails is still signed
and uploaded, and the gate refuses it.command exit: 127 (or 126) means the shell could not run the command:
the tool or the project's dependencies are not installed. Fix that
before recording the step again.Read a refusal. A refused push prints a line containing
pushgate-challenge: {...}. Parse that JSON, not the prose above it.
evaluated: false: the platform never judged you. Push the same commit
again. Do not re-run cilock and do not amend.evaluated: true: run each missing_evidence[].command for the named
commit, then push. A command of null is not a pass. Check type.release-step-failed: the step's evidence exists but a rule refused it.
Fix the cause, record the step again, and push the same commit.
Make a new commit only if the commit's own contents cause the failure;
an environment or command problem is fixed by re-recording the step.retry_without_changes: false: pushing unchanged returns the same answer.Field-by-field detail: references/refusals.md.
Draft a policy (only when the human asks for one, or none fits):
cilock policy guide lists the goals. cilock policy guide --goal <id>
explains what one goal needs: the command, the attestor, what the
evidence looks like, and the traps.cilock policy template --goal <id> (or --add-step <name>) writes a
skeleton. The trust roots and functionaries are already filled in; leave
them. Every FILL slot needs your judgment about this repository: the
real command, the rule that separates a pass from a failure, and the
files that must be present. A generated draft is not the human's intent.
To see the fields a rule reads, record the step once and run
cilock policy input <envelope> --attestor <name> on its outfile. Do
not decode envelopes by hand.cilock policy prove -p <draft> --step <name> -- <command> proves the
draft admits real evidence and refuses a failing run, offline. Its first
line is your verdict: Local verify: passed or
Local verify: REFUSED by <step>: <rule>.cilock policy validate -p <draft>. The platform fills the trust-root
certificates when the human signs, so an error about their empty
certificate data is expected. Any other error is real. Fix it.Hand off. Save the draft as .pushgate/policy.json and end with the
handoff block below. The human imports it on Pushgate, validates it, signs
it on the platform with their passkey, and assigns it to the repository
(Warn or Block). You may open links and poll read-only status. A closed
browser or a timeout is not success, so read the status back. No agent API
or cilock command reports the assignment: ask the human for the release
and mode the Pushgate page shows. Do not guess Pushgate API URLs. A refused
push also names the assigned release that refused it in policies[].
Push with evidence. Once the policy is assigned, run each step through
cilock for the commit and push. cilock pushgate status --wait reports
delivery to the real remote.
Stop paying for CI twice (when the human asks). A pushed commit carries a signed Pushgate verdict. One cheap PR-tier job can verify it and skip the checks the release already proved, while the merge queue still runs everything. How, and the traps (one verdict per release, SHA-1 commit subjects, pinning the release): references/ci-admission.md.
The first line is copied exactly from cilock policy prove:
Local verify: passed
Draft: .pushgate/policy.json (unsigned, not active)
Steps: <step>: <command> (proved against <commit>)
Checked: <what each rule refuses, one line per step>
Gaps: <what this policy does not prove>
Next: human imports the draft on Pushgate, validates it, signs it on the platform, and assigns it (Warn or Block)
On Local verify: REFUSED by <step>: <rule>, say whether the code or the rule
is wrong, and let the human decide. Do not change the rule until it passes.
cilock <command> --help is the current source of truth for flags.cilock doctor preflights the platform connection.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub aflock-ai/rookery --plugin pushgateOther plugins' skills for the same job