nextra-updatelisted
Install: claude install-skill mojoapp-ai/agent-skills
# nextra-update
Mirror the user-facing docs from the `mojo-apps` repo's `nextra/content/` into this repo's `mojo-app-docs/references/`, so the bundled skill reflects what `docs.mojoapp.ai` is currently publishing.
## Prerequisites
- You are at the repo root: `agent-skills/` with `mojo-app-docs/references/` visible.
- The mojo-apps repo is checked out locally. By default it's expected at `/Users/Hana/Agents/mojo/repos/mojo-apps`. Override with `MOJO_APPS_PATH=/some/other/path` if needed.
- Working tree of `agent-skills` is clean.
If anything's missing, stop and tell the user.
## Step 1 — Make sure mojo-apps is up to date
```bash
MOJO_APPS="${MOJO_APPS_PATH:-/Users/Hana/Agents/mojo/repos/mojo-apps}"
NEXTRA="$MOJO_APPS/nextra/content"
if [ ! -d "$NEXTRA" ]; then
echo "ERROR: $NEXTRA does not exist. Set MOJO_APPS_PATH or clone mojo-apps."
exit 1
fi
# Bring nextra/content to the tip of its branch
git -C "$MOJO_APPS" fetch
git -C "$MOJO_APPS" status --short
```
If the mojo-apps working tree is dirty, ask the user whether they want to:
(a) sync from whatever's on disk right now (use as-is),
(b) `git stash` + `git pull` first, then sync from the freshly-pulled state.
Don't decide for them — local dirty trees often have in-progress edits.
## Step 2 — Record the source SHA (for the commit message)
```bash
NEXTRA_SHA=$(git -C "$MOJO_APPS" rev-parse --short HEAD)
echo "Source SHA: $NEXTRA_SHA"
```
## Step 3 — Mirror with rsync
```bash
TARGET="$(git rev-parse --show-top