Convenience wrapper around the authoritative setup script scripts/init.sh. Use it to scaffold
the gate into the user's project. The script is the source of truth — run it, don't reimplement
it.
When to use
- The user asks to set up / initialize / add the completion gate to their repository.
Procedure
- Locate an
agent-completion-gatecheckout (the engine + scaffolder live in the repo, not in this installed skill —npx skills addships skills, not the gate engine). If the user doesn't have one, clone it:git clone https://github.com/zhjai/agent-completion-gate - From the user's project root, run the scaffolder, pointing it at the project:
It createssh <checkout>/scripts/init.sh --dest .gate/(engine + empty manifest),control/surface_inventory.yaml,state/,.github/workflows/completion-gate.yml, and a CODEOWNERS example. It is idempotent and will not overwrite existing files (engine or specs) without--force. - Relay the script's "Next" steps to the user verbatim. Then help with step 1 of those (define real surfaces/checks) if asked.
Do not
- Do not edit
gate/acceptance_manifest.yamlto weaken it, do not movegate//control/into a worker-writable location, and do not invent your own scaffolding — only run the script. - Do not claim the gate is active/authoritative. It only enforces the state machine until the user (a human) sets the required status check + CODEOWNERS. Say so plainly.
- Do not set up anything that lets you (the agent) grant
complete. That asymmetry is the whole point: you proposecandidate_complete; CI / a human verifies.