From 3d7b767e931a7a63075fd5e524af3f570404c598 Mon Sep 17 00:00:00 2001 From: neverland Date: Fri, 4 Sep 2026 21:28:44 +0800 Subject: [PATCH] docs: add Rstack CLI documentation skill --- .agents/skills/rstack-cli-docs/SKILL.md | 25 +++++++++++++++++++++++++ skills-lock.json | 11 +++++++++++ 2 files changed, 36 insertions(+) create mode 100644 .agents/skills/rstack-cli-docs/SKILL.md create mode 100644 skills-lock.json diff --git a/.agents/skills/rstack-cli-docs/SKILL.md b/.agents/skills/rstack-cli-docs/SKILL.md new file mode 100644 index 0000000..811b1ae --- /dev/null +++ b/.agents/skills/rstack-cli-docs/SKILL.md @@ -0,0 +1,25 @@ +--- +name: rstack-cli-docs +description: Consult installed, version-matched Rstack docs only for user-facing `rs` command behavior, `rstack.config.*` semantics, or public `rstack` APIs. Do not use for purely internal implementation, tests, performance, or repository maintenance. +--- + +# Rstack CLI docs + +Rstack CLI is the `rstack` package, exposed through the `rs` binaries. It provides one CLI, one +config file, and a consistent workflow for the Rstack JavaScript toolchain. + +It covers web app, library, docs, test, lint, formatting, Git hook, and staged-file workflows. + +## Read installed docs when this skill applies + +When this skill applies, find and read the relevant Markdown documentation shipped with the installed `rstack` package. + +Model knowledge can be outdated; the installed documentation is the source of truth for the project's Rstack version. + +1. Start with `node_modules/rstack/docs/llms.txt`, then read only the linked pages relevant to the task before proposing or making changes. + +2. For exact CLI flags and behavior, also run `rs -h` or `rs -h` when supported. + +If the bundled docs are not available at that path, locate the installed `rstack` package. + +If they are still unavailable, verify that `rstack` is installed, and use CLI help plus the online [Rstack documentation](https://rstack.rs/) as a fallback. diff --git a/skills-lock.json b/skills-lock.json new file mode 100644 index 0000000..8687fc7 --- /dev/null +++ b/skills-lock.json @@ -0,0 +1,11 @@ +{ + "version": 1, + "skills": { + "rstack-cli-docs": { + "source": "rstackjs/rstack-cli", + "sourceType": "github", + "skillPath": ".agents/skills/rstack-cli-docs/SKILL.md", + "computedHash": "8b5451af88d29195dc2f257543013ad66aa14a7791e401ab4cffdb11941cf27a" + } + } +}