# Completion Gate Init

> Use when the user asks to set up / install / initialize the completion gate in their project (e.g. "set up the completion gate", "add the completion gate to this repo"). Runs the bundled deterministic scaffolder (scripts/init.sh) to create gate/, control/, state/, and a CI workflow, then tells the user what THEY must protect. Does NOT make the gate authoritative — branch protection + CODEOWNERS a…

- **Type:** Skill
- **Install:** `agentstack add skill-zhjai-agent-completion-gate-completion-gate-init`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [zhjai](https://agentstack.voostack.com/s/zhjai)
- **Installs:** 0
- **Category:** [Developer Tools](https://agentstack.voostack.com/c/developer-tools)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [zhjai](https://github.com/zhjai)
- **Source:** https://github.com/zhjai/agent-completion-gate/tree/main/skills/completion-gate-init

## Install

```sh
agentstack add skill-zhjai-agent-completion-gate-completion-gate-init
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Completion Gate Init

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
1. Locate an `agent-completion-gate` checkout (the engine + scaffolder live in the **repo**, not
   in this installed skill — `npx skills add` ships skills, not the gate engine). If the user
   doesn't have one, clone it:
   ```
   git clone https://github.com/zhjai/agent-completion-gate
   ```
2. From the user's project root, run the scaffolder, pointing it at the project:
   ```
   sh /scripts/init.sh --dest .
   ```
   It creates `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`.
3. 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.yaml` to weaken it**, do not move `gate/`/`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 propose `candidate_complete`; CI / a human verifies.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [zhjai](https://github.com/zhjai)
- **Source:** [zhjai/agent-completion-gate](https://github.com/zhjai/agent-completion-gate)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-zhjai-agent-completion-gate-completion-gate-init
- Seller: https://agentstack.voostack.com/s/zhjai
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
