gaia-wiki ยท diff
git:20261015.4df75b4 to git:20261018.aa0d8b0
3 added, 1 removed. Audit A to A.
---
name: gaia-wiki
description: Runs GAIA wiki maintenance (sync, consolidate, lint with fixes) in one command and lands it as one commit and PR. Trigger on `/gaia-wiki` or natural-language asks like "sync the wiki", "run wiki maintenance", "consolidate the wiki", or "lint the wiki".
---
Run the GAIA **wiki** maintenance workflow with these arguments: `$ARGUMENTS`
## Pre-flight: Worktree check
- This command rewrites tracked `wiki/` content and its state file for the whole repository. If invoked from a linked worktree, reject hard: `gaia_refuse_if_worktree` (`.gaia/scripts/main-only-lib.sh`) asks the shared resolver which tree this is and refuses out loud, naming the main checkout, when the answer is a worktree.
+ This command rewrites tracked `wiki/` content and its state file for the whole repository, and lands them through a pull request of its own. It starts from the main checkout and isolates its own work before its first write, through `.claude/skills/gaia/references/isolation.md`, so it never writes onto the branch the checkout holds. A linked worktree holds someone else's work, so if invoked from one, reject hard: `gaia_refuse_if_worktree` (`.gaia/scripts/main-only-lib.sh`) asks the shared resolver which tree this is and refuses out loud, naming the main checkout, when the answer is a worktree.
Detection (run this first, before anything else):
```bash
. .gaia/scripts/main-only-lib.sh
gaia_refuse_if_worktree "/gaia-wiki" || exit 1
```
If the detection does not fire, fall through to the workflow dispatch line below.
+
+ Anchor for the next pre-flight step: a check that must pass before this command starts goes here, after the worktree check and before the workflow dispatch line.
Read `.claude/skills/gaia/references/wiki.md` from the project root and follow it exactly. The reference takes no arguments; when arguments were given above, it prints one notice naming them and runs sync, consolidate, and lint anyway.