← ClaudeAtlas

aih-closelisted

Close a stale RUN-MANIFEST atomically. Default-to-completed if branch is merged; explicit --deferred / --cancelled / --completed / --awaiting-merge for partial work; --bulk for sweep over auto-closeable manifests.
overdrive-dev/aihaus-flow · ★ 4 · AI & Automation · score 83
Install: claude install-skill overdrive-dev/aihaus-flow
## Task Close a stale RUN-MANIFEST by flipping its Status to a terminal value atomically via `manifest-append.sh` (single-writer — never inline edits). Supports slug mode for targeted closure, bulk mode for sweep over all auto-closeable manifests, and default-flag behavior for branch-merge-aware auto-detection. $ARGUMENTS ## Modes ### Slug mode: `/aih-close <slug>` 1. Resolve the manifest: glob `.aihaus/{milestones,features,bugfixes}/*<slug>*/RUN-MANIFEST.md`. If zero matches → print error and exit non-zero. If multiple matches → print all paths and exit non-zero (ambiguous slug; user must narrow). 2. Read current `Status:` field. If already terminal (`completed`, `deferred`, `cancelled`, `awaiting-merge`) → print "Already closed (Status: <value>)" and exit 0 (idempotent). 3. Apply **Default-flag behavior** (FR-34) — see section below. 4. Execute **Mutation path** (FR-35) — see section below. ### Bulk mode: `/aih-close --bulk` 1. Run `bash .aihaus/hooks/manifest-auto-close.sh --dry-run` to enumerate auto-closeable manifests. Capture output. 2. Print a markdown table `| slug | branch | last-updated | proposed-status |` of all auto-closeable manifests. 3. If no manifests found → print "No auto-closeable manifests found" and exit 0. 4. Apply **--yes discipline** (L4 / FR-33) — see section below. 5. On confirmed proceed: run `bash .aihaus/hooks/manifest-auto-close.sh` (full sweep). 6. Report count of manifests closed. ## Default-flag behavior (FR-34) When