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
6 changes: 6 additions & 0 deletions .agents/skills/migrate-to-rstack-cli/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ Read every matching reference before editing. Load only the tools present in the

Rsbuild, Rslib, Rstest, Rslint, and Prettier remain transitive `rstack` dependencies. Remove obsolete direct dependencies and imports from the migrated scope; do not expect their names to disappear from the lockfile.

### Ignore cleanup

After migrating lint or formatting, remove exclusions from lint `ignores` and fmt `ignorePatterns` when the same paths are already covered by effective `.gitignore` rules; both commands read `.gitignore` automatically. For fmt, also remove `package-lock.json` and `pnpm-lock.yaml` from `ignorePatterns`; `rs fmt` ignores them by default.

Keep negations and fmt exclusions that must apply to explicitly passed files, which bypass `.gitignore`.

### Combined checks

After migrating lint and formatting commands, prefer the shorter combined command when behavior is equivalent:
Expand Down
2 changes: 0 additions & 2 deletions .agents/skills/migrate-to-rstack-cli/references/prettier.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ Read this reference when the project uses the `prettier` CLI or API, `package.js
8. Delete old config and ignore files only after their behavior is represented in `define.fmt`.
9. Remove direct dependencies only when no script, config, API call, plugin peer requirement, or other tool still needs them.

`rs fmt` ignores `package-lock.json` and `pnpm-lock.yaml` by default. Drop redundant ignore entries during migration, but keep intentional negations.

Rstack creates `.rstack/cache/.gitignore` by default. Do not list `.rstack/cache` in the root `.gitignore`; add explicit rules only for custom cache paths.

`rs fmt` does not read Prettier configuration files, `.prettierignore`, or `.editorconfig`.
Expand Down