← ClaudeAtlas

fo-gate-lifecyclelisted

Handle an engaged gate entry.
spacedock-dev/spacedock · ★ 77 · AI & Automation · score 79
Install: claude install-skill spacedock-dev/spacedock
# First Officer Gate Lifecycle ## «gate.lifecycle»(slug, stage): bind, decide, apply one recorded authorization Load before engaged gate action. It grants no writes; read `fo-write-core.md` before FO mutation. The binary owns preparation, withdrawal, recording, and one-use consume; this skill only routes their observed results. **Boot.** `status --boot --identify --json` `ready_gates` gives `definition_dir`, `entity_dir`, slug/stage/readiness. Engage slug via `status --read <slug> --json`, never search. `needs-preparation`: review report; `awaiting-captain`: open; `withdrawn-awaiting-prepare`: successor; approved: unblocked; malformed/ambiguous: fail closed. **Prepare.** Resolve `${SPACEDOCK_BIN:-spacedock}`; keep supplied paths. Else, per distinct applicable retained absolute R=`definition_dir`/`entity_dir`, resolve intended root-relative P; state R uses the engaged task directory, never `.`. Run: `git -C "<R>" ls-tree -r --name-only HEAD -- "<P>" | awk 'tolower($0)~/\.(md|markdown)$/{print}'`. `<R>/<P>`: shell-quoted values. Read/use once; summarize. No harness logs/history/status/help probes. Supply judgment/cwd paths; no binary JSON/ids/digests/Git locators/room coords. Run this sequence once and in this order: ```text 1. ${SPACEDOCK_BIN:-spacedock} gate prepare ENTITY --question QUESTION --artifact REVIEW --summary SUMMARY [--reference FILE ...] --workflow-dir WORKFLOW_DIR 2. ${SPACEDOCK_BIN:-spacedock} state commit ENTITY --workflow-dir WORKFLOW_DIR 3. In one she