AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Nextra Update

skill-mojoapp-ai-agent-skills-nextra-update · by mojoapp-ai

Use when the user says \"sync docs\", \"update nextra\", \"同步文件\", \"docs 同步\", \"refresh app docs\", or otherwise wants to pull the latest user-facing docs from the mojo-apps nextra site into skills/mojo-app-docs/references/. Compares, diff-previews, commits and pushes — does not change any text on the way through.

No reviews yet
0 installs
38 views
0.0% view→install

Install

$ agentstack add skill-mojoapp-ai-agent-skills-nextra-update

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-mojoapp-ai-agent-skills-nextra-update)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Nextra Update? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

nextra-update

Mirror the user-facing docs from the mojo-apps repo's nextra/content/ into this repo's skills/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 skills/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

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)

NEXTRA_SHA=$(git -C "$MOJO_APPS" rev-parse --short HEAD)
echo "Source SHA: $NEXTRA_SHA"

Step 3 — Mirror with rsync

TARGET="$(git rev-parse --show-toplevel)/skills/mojo-app-docs/references"

rsync -av --delete \
  "$NEXTRA/" \
  "$TARGET/"

Notes on the flags:

  • --delete removes files in $TARGET that no longer exist in $NEXTRA. This is what you want — the references should be an exact mirror, not an accumulation.
  • The trailing slash on $NEXTRA/ matters. With it, rsync copies the contents into $TARGET/. Without it, rsync creates $TARGET/content/.

Step 4 — Diff preview

cd "$(git rev-parse --show-toplevel)"
git status --short skills/mojo-app-docs/references
git diff --stat skills/mojo-app-docs/references | tail -20

Show the user the file-count and line-count summary. If they want to see specific changes:

git diff skills/mojo-app-docs/references/en/faq.mdx

Step 5 — Confirm with the user before committing

The diff may be huge or zero. Two paths:

  • Zero changesgit diff --quiet returns 0 → exit. Tell the user "already in sync, nothing to do."
  • Has changes → show the user the summary, ask if they want to proceed.

Step 6 — Commit

git add skills/mojo-app-docs/references
git commit -m "docs(app-docs): sync from nextra @ $NEXTRA_SHA

Mirrored $MOJO_APPS/nextra/content/ → skills/mojo-app-docs/references/.
$(git diff --cached --stat | tail -1)"

Use the user's normal author identity for this commit.

Step 7 — Push (needs mojoapp-ai)

gh auth switch --user mojoapp-ai
git push origin main
gh auth switch --user hanamizuki

Step 8 — Tell the user what happened

Report:

  • The source SHA you synced from.
  • File change count (e.g. "12 files changed, 84 insertions(+), 31 deletions(-)").
  • Whether any whole files were added or removed.
  • The new HEAD SHA on agent-skills.

What this skill does NOT do

  • It does not transform, translate, or edit the docs in any way. What's in nextra/content/ lands in references/ byte-for-byte.
  • It does not run a release. The release skill handles versioning and changelog separately.
  • It does not modify any other skill (mojo-food-log, mojo-glp1-knowledge, .claude/).

When to stop and ask

  • MOJO_APPS_PATH doesn't exist or doesn't look like the mojo-apps repo.
  • Working tree of mojo-apps is dirty.
  • Working tree of agent-skills is dirty.
  • The diff is unexpectedly large (e.g. > 50 files), suggesting a structural change in nextra that may need its own design discussion.
  • A whole language directory has disappeared (e.g. zh-Hant-HK/ got dropped upstream) — confirm this is intentional before propagating.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.