--- name: edit description: Shape the minimal start page of an already set-up static website (sites folder per domain) on a concrete order, or change one named text or section of that start page. Only the start page (src/pages/index.astro) is covered; other pages, blog, new sites and publishing are not. allowed-tools: - 'Bash(python3 -B "${CLAUDE_SKILL_DIR}/scripts/edit.py" *)' - 'Bash(python3 -B "${CLAUDE_SKILL_DIR}/../preview/scripts/control.py" *)' - 'Bash(test -f "${CLAUDE_SKILL_DIR}/scripts/edit.py")' - 'Bash(test -f "${CLAUDE_SKILL_DIR}/../preview/scripts/control.py")' --- # edit (Website plugin) > **Status (local development).** Available: (1) work out the minimal start page that `setup` created into real content on a concrete order, (2) change one named text or section of the start page. Target: `src/pages/index.astro` (`/`) of a site of type `astro-static`, nothing else. **Not available (do not offer, do not work around):** blog, other page types, new sites (that is `setup`), forms, publishing, rule or manifest changes, installing dependencies. > **Script location (binding).** The helper is `scripts/edit.py` next to the **actually loaded** `SKILL.md`; it finds the shared site resolver (`../_shared/scripts/which_site.py`) itself and never copies it. The visual check uses the controller of the `preview` skill, `../preview/scripts/control.py` (relative to the folder of this `SKILL.md`). Run the helper with the **website project** as working directory (or pass `--root` where the command has it). Content, rules and brand always come from the project; the plugin folder is read-only and holds no state. The manifest `.project/specs/website.json` is validated against the plugin's own schema on every command; an invalid manifest stops the skill with a diagnosis. > > - **Claude:** the host replaces `${CLAUDE_SKILL_DIR}` with the folder of this `SKILL.md`; the commands below use it in double quotes. The `allowed-tools` pre-approvals above are Claude-specific and exactly the call patterns of this text; they are a convenience, not a requirement. > - **Codex:** use the path of the loaded `SKILL.md` that the host gave you and form the absolute script paths `/scripts/edit.py` and `/../preview/scripts/control.py`. Do **not** run `${CLAUDE_SKILL_DIR}` as a shell variable; do not rely on a Claude placeholder or on `allowed-tools`. > - **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 each script path as **one** quoted argument (the path may contain spaces), no `PYTHONPATH`. Before the first call of a script check that it exists (`test -f "