--- name: setup description: Create a new static Astro website folder (sites folder per domain), register an existing static folder, show what a setup run would change, or re-run install/build/check of a registered site. Updating existing sites is not implemented yet. allowed-tools: - 'Bash(python3 -B "${CLAUDE_SKILL_DIR}/scripts/site_setup.py" *)' - 'Bash(test -f "${CLAUDE_SKILL_DIR}/scripts/site_setup.py")' --- # setup (Website plugin) > **Status (local development).** Implemented: `create` (type `astro-static`), `adopt`, `plan create|adopt`, `verify`, with ownership hashes, rollback and real install/build/check exit codes. **Not available (do not offer, do not work around):** `update`, `--add-missing`, `--regenerate`, `--adopt-edits`, `plan` without naming the operation, workflow-call generation, deployment, publishing. `astro-static` is the only supported site type: the Docker/Caddy type `astro` and its options (`--serve`, `--network`, `--host`, `--email`, `--legacy-docker`) are refused, never translated. > **Script location (binding).** The script is `scripts/site_setup.py` next to the **actually loaded** `SKILL.md`. Run it with the **website project** as working directory (or `--root`). Site configuration (`.project/`, `sites/`) always comes from that project; the skill's templates and the shared schema stay inside the plugin and are never written to. > > - **Claude:** the host replaces `${CLAUDE_SKILL_DIR}` with the folder of this `SKILL.md`; the commands below use it in double quotes. > - **Codex:** use the path of the loaded `SKILL.md` that the host gave you and form the absolute script path `/scripts/site_setup.py`. Do **not** run `${CLAUDE_SKILL_DIR}` as a shell variable; do not rely on a Claude placeholder. > - **No path, no run:** if the path of the loaded `SKILL.md` is not available, stop and say so. Do not search caches or plugin folders, do not guess a replacement path, never copy scripts into the website project. > - **Form of the call:** `python3 -B` with the script path as **one** quoted argument (the path may contain spaces), no `PYTHONPATH`. Before the first call check that the script exists (`test -f "