Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

rs-updateRS 更新

Agent Skill

rs-update 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,297

周安装

53

GitHub Stars

公开资料未说明

下载量

420
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:rs-update(RS 更新)
来源仓库:https://github.com/rootspec/rootspec
仓库路径:skills/rs-update
安装命令:
npx skills add https://github.com/rootspec/rootspec --skill rs-update
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/rootspec/rootspec --skill rs-update

简介

用于查找、检索和筛选相关信息。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

  • 适合根据关键词或任务场景快速定位候选结果。
  • 可结合来源仓库和 README 核验具体用法。
  • 安装前建议确认权限范围和维护状态。
  • rs-update 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

You are upgrading a RootSpec project to the latest framework version. Start by telling the developer what you're about to do:

"I'll check your project against the latest framework version and upgrade what's needed — framework files, prerequisites, and config."

Step 1: Detect the gap

Run the scanning and gap analysis scripts:

bash "$(dirname "$0")/../rs-shared/scripts/scan-spec.sh" .
bash "$(dirname "$0")/../rs-shared/scripts/gap-analysis.sh" .

If these paths don't resolve, find the scripts by searching for gap-analysis.sh in the skills directory.

Based on the output:

  • GAP=no_project — No .rootspec.json found. Tell the developer: "No RootSpec project found. Run /rs-init first." Exit.
  • GAP=none — Already on the latest framework version. If RULE_VIOLATIONS is empty, tell the developer: "Project is on version X.Y.Z and matches current framework rules. Nothing to update." Exit. If RULE_VIOLATIONS is non-empty, the project predates one or more framework rules — skip Steps 2-4 and jump to Step 5 (Reconcile framework rules).
  • GAP=patch|minor|major — Upgrade needed. Continue. (Reconciliation in Step 5 still runs after the upgrade.)

Step 2: Show what changed

Read the update guide:

skills/rs-update/UPDATE.md

Find it relative to this skill file: "$(dirname "$0")/UPDATE.md"

Extract all version sections between PROJECT_VERSION (exclusive) and BUNDLED_VERSION (inclusive). Present:

  • The version gap (e.g., "6.2.1 → 6.2.3")
  • Summary of each version's changes
  • Any manual instructions
  • Whether there are breaking changes

Step 3: Present the upgrade plan

Based on the gap analysis output, present a clear plan:

Upgrade plan (6.2.1 → 6.2.3):

Will update:
  - rootspec/00.FRAMEWORK.md (replace with vX.Y.Z)
  - rootspec/00.AXIOMS.md (replace with latest)
  - .rootspec.json version field

Will create (new prerequisites):
  - [list from NEW_PREREQUISITES, if any]

Needs reconciliation (changed prerequisites):
  - [list from CHANGED_PREREQUISITES, if any]

Will NOT touch:
  - Spec files (01.PHILOSOPHY.md through 05.IMPLEMENTATION/)
  - CONVENTIONS/ (owned by /rs-impl)

[If HAS_BREAKING=true]
⚠ Breaking changes detected — see details above.

Wait for the developer to confirm. They can exclude items (e.g., "skip dev.sh").

Step 4: Execute the upgrade

For each item in the confirmed plan:

Framework files

  1. 00.FRAMEWORK.md — Read from ../rs-shared/00.FRAMEWORK.md (relative to this skill), write to {specDirectory}/00.FRAMEWORK.md.
  2. 00.AXIOMS.md — Read from ../rs-shared/00.AXIOMS.md, write to {specDirectory}/00.AXIOMS.md.

Config

  1. .rootspec.json — Read the current file, update only the version field to BUNDLED_VERSION. Preserve all other fields (specDirectory, prerequisites).

New prerequisites

  1. For each entry in NEW_PREREQUISITES: check if the file/config exists in the project. If missing, create it using the same logic as /rs-init. Read ../rs-shared/fragments/prerequisites.md for creation instructions.

Changed prerequisites

  1. For each entry in CHANGED_PREREQUISITES: the prerequisite exists but has updated requirements. Show the developer what changed and why (from UPDATE.md). Do NOT auto-overwrite — the developer's copy may have project-specific customizations. For template scripts (e.g., scripts/dev.sh): show a diff between the project's copy and the bundled template. Let the developer decide how to reconcile. For config wiring (e.g., cypress.config.ts): describe the required change and let the developer confirm before applying.

Spec status

  1. Run write-spec-status.sh to update the version in spec-status.json:
bash "$(dirname "$0")/../rs-shared/scripts/write-spec-status.sh" {specDirectory}

If breaking changes were detected (HAS_BREAKING=true): pass false as the second argument to mark the spec as invalid, and tell the developer to re-run /rs-spec.

bash "$(dirname "$0")/../rs-shared/scripts/write-spec-status.sh" {specDirectory} false

Step 5: Reconcile framework rules

Run when RULE_VIOLATIONS from gap-analysis is non-empty. Each token names a project state that predates a framework rule. For each, present the fix and ask before applying — none of these auto-rewrite user code.

baseUrl_has_path

The project's cypress.config.ts has baseUrl: 'http://host:port/some/path'. The framework now requires baseUrl to be host:port only; deploy paths belong in visit: targets and cy.visit() calls. Concatenation of both produces 404s like /some/path/some/path/.

Show the developer:

  1. The current baseUrl line and the path that needs stripping (e.g., /some/path).
  2. A grep over cypress/ and rootspec/05.IMPLEMENTATION/USER_STORIES/ for visit: and cy.visit( references.
  3. Categorize the visit references:

- Already prefixed (start with the path) — leave alone; they'll work once baseUrl is stripped. - Unprefixed (start with / but not the path) — offer to prepend the path. - Relative (don't start with /) — flag for manual review; relative paths break under both old and new contracts.

Apply only what the developer confirms. After: re-run /rs-validate to confirm.

testmode_implicit_dev

The project's scripts/test.sh starts the dev server, but .rootspec.json has no prerequisites.testMode. Old projects defaulted to dev-mode E2E implicitly; the framework now defaults to preview mode (built artifact + preview server) for fewer flakes.

Offer two paths:

  • Preserve current behavior — add "testMode": "dev" to .rootspec.json prerequisites. No other changes. Project keeps running dev-mode E2E by explicit choice.
  • Switch to preview default (recommended) — copy scripts/preview.sh from the bundle (per previewServer_missing below), rewrite scripts/test.sh to the testMode-aware template (see bootstrap-init.sh), add "testMode": "preview" and "previewServer": "./scripts/preview.sh" to .rootspec.json. Verify npm run build works before committing.

If the developer picks "switch", note that the project may need an app-readiness implementation (see App Readiness in framework-rules.md) — preview mode exposes hydration timing bugs that dev mode hid.

legacy_body_ready

The project's cypress/support/steps.ts waits for <body data-ready="true"> after every visit (the pre-7.6.0 contract). The framework now expects cy.appReady() — project-defined readiness in cypress/support/app-ready.ts. Body-level readiness can't observe per-island hydration; on stacks with async islands, tests pass body-ready and then click into inert DOM.

Offer two paths:

  • Stub-only (minimal change) — scaffold cypress/support/app-ready.ts with the throwing default and add import './app-ready'; to cypress/support/e2e.ts. Leave steps.ts alone for now. The developer can adopt cy.appReady() later, story by story. Existing tests continue to use the body wait.
  • Full migration (recommended) — same as stub-only, plus rewrite safeVisit in steps.ts: replace the cy.get('body').should('have.attr', 'data-ready', 'true') line with cy.appReady(). Add the awaitReady step to runSetupSteps and the schema. The developer must then implement cy.appReady() (a one-line no-op for static sites, or a real check for hydration-heavy sites). Existing pages that set body[data-ready] are untouched — they can keep doing so or stop, the framework no longer cares.

If full migration is chosen, advise the developer that the FIRST npx cypress run will fail with "cy.appReady() is not implemented" — that's the contract surfacing, not a regression.

previewServer_missing

The project's .rootspec.json lacks a previewServer entry. If testmode_implicit_dev is being resolved with the "switch" path, fix this in the same step. Otherwise, add the entry pointing at ./scripts/preview.sh (and copy the bundled template if missing) so the prerequisite is recorded — even projects that stay on dev mode benefit from having preview infra available.

Reporting

For each violation, report what was reconciled (or skipped on developer's request) in Step 6's report.

Step 6: Report

Summarize what was done:

Update complete (6.2.1 → 6.2.3).

Updated:
  - rootspec/00.FRAMEWORK.md
  - rootspec/00.AXIOMS.md
  - .rootspec.json version

Created:
  - [any new prerequisites]

Flagged for review:
  - [any changed prerequisites with reconciliation notes]

Next steps:
  - [Re-run /rs-impl to update conventions if needed]
  - [Any manual instructions from UPDATE.md]

Focus

If the developer passes an argument:

  • A version number (e.g., "6.2.2") → show what changed in that specific version only
  • "check" → run gap analysis only, don't execute any changes (dry run)
  • "prerequisites" → only handle prerequisite updates (skip framework files)

Scope

  • CAN read: all project files, all bundled skill files
  • CAN write: {specDirectory}/00.FRAMEWORK.md, {specDirectory}/00.AXIOMS.md, {specDirectory}/spec-status.json, .rootspec.json, new prerequisite files
  • SHOULD NOT write: spec files (01-05), application source code, existing test files
  • SHOULD NOT overwrite: existing prerequisite files without developer confirmation

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.14%
按下载量换算156

Claude

30.85%
按下载量换算130

Cursor

20.26%
按下载量换算85

Gemini CLI

9.04%
按下载量换算38

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills