From f758ad53ec4be04e93432e5f6f75fb6ee6f9bd54 Mon Sep 17 00:00:00 2001 From: neverland Date: Sat, 11 Jul 2026 21:15:24 +0800 Subject: [PATCH] docs(skills): expand staged-file migration guidance --- .../migrate-to-rstack-cli/references/lint-staged.mdx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.agents/skills/migrate-to-rstack-cli/references/lint-staged.mdx b/.agents/skills/migrate-to-rstack-cli/references/lint-staged.mdx index 960b3ff..675b08c 100644 --- a/.agents/skills/migrate-to-rstack-cli/references/lint-staged.mdx +++ b/.agents/skills/migrate-to-rstack-cli/references/lint-staged.mdx @@ -1,13 +1,15 @@ -# lint-staged Migration +# Staged-File Migration -Read this reference when the project uses the `lint-staged` binary, a lint-staged dotfile config, `lint-staged.config.*`, or a `lint-staged` key in `package.json`. +`rs staged` is powered by lint-staged and configured through `define.staged`, which supports lint-staged configuration options. + +Read this reference when the project uses `lint-staged`, `nano-staged`, a staged-file config, or a staged-file Git hook. ## Steps -1. Replace direct `lint-staged` script invocations with `rs staged`. -2. Move the lint-staged config into `define.staged` in `rstack.config.*`. +1. Replace staged-file script invocations with `rs staged`. +2. Move the staged-file config into `define.staged` in `rstack.config.*`. 3. Remove the old manifest key or config file. -4. Remove the direct `lint-staged` dependency only when no script, config, or programmatic API still uses it. +4. Remove the direct staged-file dependency only when no script, config, or programmatic API still uses it. ## Config Pattern