لوگوی اسکیلیکس اسکیلیکس | Skilliks آکادمی و استودیوی ابزارهای AI تاریخ شمسی… --:--:--

/update: bring onRails to its latest

آزاد تازه‌وارد تاییدشده امن

کارهای تکراری ترمینال، مدیریت شاخه‌ها، نوشتن پیام کامیت استاندارد و ساخت اسکریپت‌های کمکی را سریع و یکدست انجام می‌دهد. (شامل ۲۴ گام عملی · سازگار با Claude Code و OpenAI Codex).

سازگاری با ابزارها: این Skill به مسیر/قابلیت اختصاصی Claude Code، Codex CLI وابسته است. مشاهدهٔ جدول سازگاری

متن دستورالعمل (SKILL.md)

دسترسی کامل فعال است
---
name: update
description: Use when the person wants onRails brought to its latest version ("/update", "update onRails", "get the latest onRails", "update the plugin", "is onRails up to date") - runs `npx onrails@latest update --all` from a temp folder outside the project, which updates the Claude Code and Codex plugins, the global entry skills and this project's kit, runs doctor and prints each part's version before and after, then tells the person to run `/reload-plugins`.
---

# /update: bring onRails to its latest

One command updates every part this machine and folder have. It only installs the latest release. Never bump a version, tag or publish.

Always run the CLI from a new temp folder outside the project, and pass the project root: the folder with `.onrails.json`, or the current folder outside a project. Run from inside the project, npx can start an `onrails` or `claude` the project ships. The commands below name the folder under `/tmp`, because a bare `mktemp -d` follows `TMPDIR`, which can point into the project. No `mktemp` (PowerShell)? Make a new folder under `$env:TEMP`, or under your home folder when `$env:TEMP` is inside the project, and run from there. The folder's real path is inside the project? Make another under your home folder.

## Steps

1. **Read the automation level** from "Automation level" in `docs/stack.md`. No section, or no project here? The default is `[defaults] automation` in the profile (`docs/profile.toml`, else `~/.onrails/profile.toml`), else Recommended.
2. **Show the plan.** Run `(cd "$(mktemp -d /tmp/onrails-update.XXXXXX)" && npx --yes onrails@latest update "<project root>" --all --dry-run)`. It runs nothing and writes nothing. It lists the four parts:
   1. the plugin commands it would run, for each tool whose plugin is installed;
   2. the global entry skills, when `init --global` was used;
   3. the project kit, when this folder is an onRails project;
   4. `doctor`.
   - npx fails (no network, or the registry is blocked)? With the kit here, climb "Try before you block" in `ask` first. Still blocked? Use the plugin's own CLI. Find the plugin's folder, first match wins:
     1. `${CLAUDE_PLUGIN_ROOT}`, when it shows a real path (Codex and a project's copy of this skill leave the `$` and braces);
     2. the `installPath` of `core@onrails` in `~/.claude/plugins/installed_plugins.json` (Claude Code; under `$CLAUDE_CONFIG_DIR/plugins` when that's set);
     3. the newest version folder in `~/.codex/plugins/cache/onrails/or/` (Codex; under `$CODEX_HOME` when that's set).

     Never use a folder inside the project, whatever these say, and never the folder this `SKILL.md` is in: a project's copy sits in the project. Then run `(cd "$(mktemp -d /tmp/onrails-update.XXXXXX)" && node "<plugin folder>/cli/bin/cli.mjs" update "<project root>" --all --dry-run)`. Say that it brings only the kit this plugin carries, not the newest release.
   - No plugin installed? There's no fallback: it's a 🛑 blocker, with this one command for the person to run where npx works: `npx --yes onrails@latest update "<project root>" --all`.
3. **Go ahead.** **On Full,** ask nothing: go to step 4 and put the plan in your report. **Below Full,** show the plan and ask once: "Run it?" A no ends it here.
4. **Run it:** the same command without `--dry-run` (or the same fallback). Show the person what it printed: the summary of each part, before and after, and every "Left for you" line.
   - A tool was skipped with a by-hand command? That command is for the person. Show it, and never run it yourself: only the person knows the tool is theirs and not one the project ships.
   - A plugin command failed? Show the command and its error, then run that one command again once. Still failing? Record it as a 🛑 blocker through `ask`, with the command as the "Setup step for you".
   - The project kit changed? Its files aren't committed. They reach main through a pull request, like any change (`AGENTS.md`, rule 12). A changed `AGENTS.md`, `.agents/` or `.claude/` gets the weakening review (`coordinate`, Rules).
   - Kept files (`.onrails-new`)? List them. `/join` merges the project's; the global ones are compared by hand.

## On Full, as a pull request

`coordinate` and `/back` start this when `plan` says `pr` (below): a minor or patch release, and no update pull request or issue open. One builder does it. Never cut a release: no version bump, tag or publish.

1. Branch from a fresh `origin/main`: `chore/<n>-update-onrails`, where `<n>` is the issue "Update onRails to <version>" the loop filed.
2. Run the update for this project only, from a new temp folder outside it: `(cd "$(mktemp -d /tmp/onrails-update.XXXXXX)" && npx --yes onrails@latest update "<project root>")`. Leave out `--all`: the plugins and global skills belong to the machine, not to a pull request.
3. Run the project's checks, commit what changed, and open the pull request with `Closes #<n>`. It goes through the normal review, with the weakening review for a changed `AGENTS.md`, `.agents/` or `.claude/`.
<!-- ‹guest · 2026-12-01› -->
4. Kept files (`.onrails-new`)? Merge them by hand in the same pull request, as `join` does.

A major release is never opened this way: it stays a suggestion and an FYI.

## Knowing a newer one is out

`scripts/latest.mjs` (#448) asks npm for the latest onRails at most once a day, keeps the answer in `~/.onrails/latest.json`, and gives up after 2 seconds. The session-start hook and `/back` run it. It sends nothing about the project.

- `node .agents/skills/update/scripts/latest.mjs line` prints one line when this repo or a plugin is behind, and nothing when it can't reach npm.
- `node .agents/skills/update/scripts/latest.mjs plan --prs <file> [--issues <file>]` says what Full does: `pr`, `wait`, `suggest` or `none`. The files are the open pull requests and issues, saved with `gh api "repos/<owner>/<repo>/pulls?state=open&per_page=100" --paginate --slurp | node .agents/skills/ask/scripts/edit-data.mjs > <file>` and the same with `issues?state=open&per_page=100`. A list it can't read exits 2, and it never says `pr` then.
- The switches are in the profile: `[updates] check = "daily" | "weekly" | "off"` (default `daily`) and `on_full = "pr" | "suggest"` (default `pr`).

**No kit here** (no `ask` skill, as outside an onRails project)? A blocker goes at the top of your report instead, as a "Setup step for you": the one command to run, where to run it, and the error it gave. The project kit was skipped, so nothing needs a pull request.

**Done when** the summary is shown and you've told the person the last step.

Claude Code can't reload a running session's plugins itself, so end with this line, word for word: "Last step: run `/reload-plugins` (Claude Code) or start a new session (Codex)."

این نسخه با نشانه‌گذاری اختصاصی حساب شما نمایش داده می‌شود. برای نصب سریع، به تب نصب و راه‌اندازی بروید.

مهارت‌های مشابه و پیشنهادی

مشاهدهٔ همه ←
عامل‌های هوش مصنوعی
✦ Pro

REA

دستورالعمل اجرایی آماده برای انجام دقیق کارهای عامل‌های هوش مصنوعی بدون تکرار پرامپت‌های طولانی. (شامل ۶۵ گام عملی · سا…

⚡ /reverse-engineer-anything SKILL.md
Claude / Claude CodeOpenAI Codex +۲
۹۴/۱۰۰ ★ ۴۷۹,۷۷۳
عامل‌های هوش مصنوعی
✦ Pro

Dispatching Parallel Agents

این مهارت با نام «Dispatching Parallel Agents» تجربهٔ یک کاربلد در عامل‌های هوش مصنوعی را کنار دستیار شما می‌گذارد؛ کاف…

⚡ /dispatching-parallel-agents SKILL.md
Claude / Claude Code
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
عامل‌های هوش مصنوعی
✦ Pro

Subagent-Driven Development

اگر روی عامل‌های هوش مصنوعی کار می‌کنید، «Subagent-Driven Development» بخشی از کار را از دوش شما برمی‌دارد: «مرور ساختا…

⚡ /subagent-driven-development SKILL.md
Claude / Claude Code
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
عامل‌های هوش مصنوعی
✦ Pro

Using Git Worktrees

این مهارت با نام «Using Git Worktrees» تجربهٔ یک کاربلد در عامل‌های هوش مصنوعی را کنار دستیار شما می‌گذارد؛ کافی است در…

⚡ /using-git-worktrees SKILL.md
Cline
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
عامل‌های هوش مصنوعی
✦ Pro

Verification Before Completion

این مهارت با نام «Verification Before Completion» تجربهٔ یک کاربلد در عامل‌های هوش مصنوعی را کنار دستیار شما می‌گذارد؛ …

⚡ /verification-before-completion SKILL.md
Claude / Claude Code
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
عامل‌های هوش مصنوعی
✦ Pro

Diagnosing Superpowers

«Diagnosing Superpowers» دستورالعمل دقیقی برای «مدیریت هوشمند حافظه و کانتکست» در اختیار دستیار هوش مصنوعی می‌گذارد تا …

⚡ /diagnosing-superpowers SKILL.md
Claude / Claude Code
۹۱/۱۰۰ ★ ۳۲۴,۲۹۰