Skip to content

Commit e2a1e06

Browse files
committed
docs(skills): simplify bundled docs lookup
1 parent c82b29c commit e2a1e06

1 file changed

Lines changed: 7 additions & 13 deletions

File tree

  • .agents/skills/rstack-cli-best-practices

‎.agents/skills/rstack-cli-best-practices/SKILL.md‎

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,17 @@ Before any Rstack work, find and read the relevant Markdown documentation shippe
1111
installed `rstack` package. Model knowledge and summaries in this skill can be outdated; the
1212
installed documentation is the source of truth for the project's Rstack version.
1313

14-
1. Resolve the documentation root from the project or workspace directory:
14+
1. Read only the pages relevant to the task under `node_modules/rstack/dist/docs` before proposing
15+
or making changes.
1516

16-
```sh
17-
node -p "require('node:path').join(require('node:path').dirname(require.resolve('rstack/package.json')), 'dist/docs')"
18-
```
19-
20-
The usual location is `node_modules/rstack/dist/docs`.
21-
22-
2. Read only the pages relevant to the task before proposing or making changes. If the correct
23-
page is unclear, start with the documentation index and search the documentation root with
24-
`rg -n "<keyword>" <docs-root>`.
17+
2. If the correct page is unclear, start with the documentation index and search the documentation
18+
root with `rg -n "<keyword>" <docs-root>`.
2519

2620
3. For exact CLI flags and behavior, also run `rs -h` or `rs <command> -h` when supported.
2721

28-
If the package or bundled documentation cannot be resolved, verify that `rstack` is installed,
29-
report the installed version, and use CLI help plus the online Rstack documentation as a fallback.
30-
Do not guess from model memory.
22+
If the bundled docs are not available at that path, locate the installed `rstack` package. If they
23+
are still unavailable, verify that `rstack` is installed, report the installed version, and use CLI
24+
help plus the online Rstack documentation as a fallback. Do not guess from model memory.
3125

3226
## Documentation map
3327

0 commit comments

Comments
 (0)