一键导入
ars-update
Upgrade an already-bootstrapped ARS repo to the installed package version with `npx ars update`, including backup and rollback steps.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Upgrade an already-bootstrapped ARS repo to the installed package version with `npx ars update`, including backup and rollback steps.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Run a single-episode coherence checklist after Studio review edits and before prepare/publish; diagnose or patch thesis drift, step seams, stale arguments, visual rhythm, and publish readiness.
Apply Studio intents back into the episode source and validate the result.
Generate 3 YouTube metadata candidates (title/description/tags) grounded in episode context, let the user pick one, then mark the artifact ready.
Usage guide for generating MiniMax TTS audio and subtitles for an episode.
Validate repo bootstrap readiness, ARS config, providers, and environment readiness with npx ars doctor.
Create a new episode scaffold for a series with npx ars episode create.
| name | ars:update |
| description | Upgrade an already-bootstrapped ARS repo to the installed package version with `npx ars update`, including backup and rollback steps. |
| model | claude-haiku-4-5-20251001 |
| effort | low |
/ars:update is the post-install upgrade flow. Use it whenever a consumer repo needs to pick up a newer ARS engine, plugin skills, agents, or hook scripts after the npm package is bumped.
Run npx ars update when any of these are true:
npm i agentic-remotion-studio@latest or equivalent global install).npx ars doctor reports the version metadata in .ars/.ars-version.json is stale relative to the installed runtime.Do not run update to bootstrap a new repo. For first-time setup use npx ars init <series> / npx -y agentic-remotion-studio init <series> first, then launch ars and run /ars:onboard for customization. update requires a repo that has already been initialized.
npx ars update performs these steps in order (see cli/commands/update.ts):
node_modules/agentic-remotion-studio or the global install)..ars/backups/<YYYYMMDD-HHMMSS>/snapshot/ and writes a manifest.json describing the backup. Coverage = the same package.json#files-driven iterator that drives sync, plus the plugin-derived .claude/skills/ars:*/, .claude/agents/, and .ars/hooks/scripts/ siblings. Only the latest 3 backups are retained — older ones are pruned.src/engine/, all other top-level src/* files (Root.tsx, studio-main.tsx, studio/**), root config files (vite.studio.config.ts, tsconfig.json, eslint.config.mjs, .env.example, remotion.config.ts), CI workflow, and the entire cli/ tree (so any new CLI command lands automatically)..claude/skills/ars:<name>/..claude/agents/..ars/hooks/scripts/..claude/settings.json so Claude Code picks up the synced hooks..ars/.ars-version.json with the runtime version, plugin version, config schema version, and detected install method.It does not touch series content — src/episodes/<series>/, public/episodes/<series>/, series-config.ts, SERIES_GUIDE.md, and .ars/config.json are left alone (src/episodes/template/ ships with ARS and is refreshed). The template public assets at public/episodes/template/ are also refreshed.
It does overwrite ARS-owned scaffolding even when the user has customized it locally. Because .claude/ is in the consumer-repo .gitignore, git restore cannot recover edits inside those directories — the manifest-driven snapshot in step 2 is the only way to revert customizations there. Use npx ars rollback (see Rollback below) to restore.
CLAUDE.md is left alone unless the user passes --force or --force-claude-md. Use those flags only when the repo's CLAUDE.md ARS block is known to be stale.
--force — refresh engine, support files, version metadata, and rebuild the ARS block in CLAUDE.md.--force-engine — refresh engine and version metadata only (default behavior already overwrites engine; this flag is for parity with init).--force-claude-md — rebuild the ARS block in CLAUDE.md only.-q, --quiet — suppress non-error output.When the user invokes /ars:update:
.ars/config.json exists. If it does not, tell the user to run npx ars init <series> instead — update is not a bootstrap command and /ars:onboard needs init output to exist first.npx ars update from the repo root and surface the output verbatim..ars/backups/<timestamp>/.ars/backups/<timestamp>/ and the number of paths snapshottedCLAUDE.md was patched (only when --force or --force-claude-md was passed)To revert: npx ars rollback)Use npx ars rollback. It is cross-platform (pure Node — no shell), reads the manifest the update wrote, and restores every snapshotted path back into place.
# Roll back the most recent update
npx ars rollback
# See available backups (newest first) before choosing
npx ars rollback --list
# Roll back to a specific timestamp
npx ars rollback --to 2026-04-30T03-19-10.159Z
# Preview what would be restored without changing anything
npx ars rollback --dry-run
Notes:
package.json#files-based iterator that npx ars update uses for sync. That means every ARS-owned path the update touches is also in the snapshot — there is no longer a class of "support files NOT snapshotted, recover via git restore".update run. Tell the user to copy a backup elsewhere if they want to keep it long-term.npm i agentic-remotion-studio@<previous-version> themselves.manifest.json. rollback will refuse to touch them and ask the user to upgrade ARS or restore manually.After a successful update, suggest the user:
npx ars doctor to confirm the repo is still healthy on the new version.git status / git diff and commit the synced engine, skill, agent, and hook script changes as a single "chore: ars update" commit so the upgrade is reviewable later./ars:onboard only if they want to revisit branding — update does not change brand or theme.