Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ node_modules
dist/
dist-*/
/packages/rstack/docs/
/packages/rstack/skills/
test-results
doc_build

Expand Down
1 change: 1 addition & 0 deletions packages/rstack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"binding.d.cts",
"dist",
"docs",
"skills",
"types",
"THIRD_PARTY_NOTICES.md"
],
Expand Down
10 changes: 10 additions & 0 deletions packages/rstack/rslib.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { resolve } from 'node:path';
import { defineConfig } from '@rslib/core';
import prettierPkgJson from 'prettier/package.json' with { type: 'json' };
import pkgJson from './package.json' with { type: 'json' };
Expand Down Expand Up @@ -40,6 +41,15 @@ export default defineConfig({
},
},
output: {
copy: [
{
from: resolve(
import.meta.dirname,
'../../.agents/skills/rstack-cli-docs',
),
to: resolve(import.meta.dirname, 'skills/rstack-cli-docs'),
},
],
// Rstack always passes an explicit config object to lint-staged, so its
// optional YAML config loader is not used.
externals: ['jiti', 'yaml'],
Expand Down
4 changes: 3 additions & 1 deletion website/docs/en/guide/ai.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ Rstack CLI provides domain-specific Agent Skills that help coding agents give mo

The [rstack-cli-docs](https://github.com/rstackjs/rstack-cli/tree/main/.agents/skills/rstack-cli-docs) Skill helps coding agents consult version-matched documentation for Rstack CLI commands, configuration, and public APIs.

Install it with the [skills](https://www.npmjs.com/package/skills) package:
This Skill ships with the `rstack` npm package. If you use pnpm 12.11.0 or later, run `pnpm approve` and select `rstack`. pnpm then links the Skill into your project's agent skills directory. See [Agent Skills in pnpm](https://pnpm.io/agent-skills) for details.

You can also install it with the [skills](https://www.npmjs.com/package/skills) package:

<PackageManagerTabs
command="skills add rstackjs/rstack-cli --skill rstack-cli-docs"
Expand Down
4 changes: 3 additions & 1 deletion website/docs/zh/guide/ai.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ Rstack CLI 提供面向特定领域的 Agent Skills,帮助 Coding Agent 更准

[rstack-cli-docs](https://github.com/rstackjs/rstack-cli/tree/main/.agents/skills/rstack-cli-docs) Skill 帮助 Coding Agent 查阅与当前版本匹配的 Rstack CLI 命令、配置和公共 API 文档。

使用 [skills](https://www.npmjs.com/package/skills) 包安装该 Skill:
`rstack` npm 包已内置这个 Skill。如果你使用 pnpm 12.11.0 或更高版本,可以在项目中运行 `pnpm approve`,选择 `rstack` 即可启用它。有关 Skill 的链接方式和目录设置,请参阅 [pnpm 的 Agent Skills 文档](https://pnpm.io/agent-skills)。

也可以使用 [skills](https://www.npmjs.com/package/skills) 包安装该 Skill:

<PackageManagerTabs
command="skills add rstackjs/rstack-cli --skill rstack-cli-docs"
Expand Down
Loading