.agents/skills/code-change-verification/SKILL.md
Use this skill to choose the smallest credible validation set for an ioredis change, run it when feasible, and report exactly what passed, failed, or was skipped.
Inspect the diff and changed files before choosing commands.
git diff --stat, git diff --name-only, and targeted file reads.built/ and lib/utils/RedisCommander.ts as generated outputs; do not hand-edit them.Classify the change.
lib/: run focused tests plus build when the change affects exported declarations or compiled output.bin/ config, regenerate with node bin/index.js if needed, and run tsd or targeted typing tests.npm run docker:setup if infrastructure is needed, then targeted test/cluster/**/*.ts or npm run test:cluster.npm run format-check only if formatting-sensitive files changed; otherwise inspect rendered Markdown manually.npm run build and the affected script directly.Prefer focused validation before broad validation.
TS_NODE_TRANSPILE_ONLY=true NODE_ENV=test npx mocha --no-experimental-strip-types "test/unit/<file>.ts".test/helpers/*.ts only when the unit file relies on global hooks or helper setup.test/helpers/*.ts and the specific test/functional/... file.npm run build then npx tsd --files test/typing/<file>.test-d.ts when a focused file exists.npm test after focused tests pass.npm run lint or npm run format-check as appropriate.Handle generated artifacts deliberately.
bin/argumentTypes.js, bin/returnTypes.js, bin/overrides.js, bin/sortArguments.js, bin/typeMaps.js, or bin/template.ts changes command declarations, regenerate lib/utils/RedisCommander.ts with node bin/index.js.built/ is publish-facing but generated by npm run build; mention if it is intentionally not updated.Report results in handoff.
npm run build: remove built/ and compile TypeScript.npm run lint: ESLint over lib/.npm run format-check: Prettier check.npm run test:js: non-cluster Mocha suite over helpers, unit, and functional tests.npm run test:cluster: cluster Mocha suite.npm run test:tsd: build and run all tsd tests.npm test: test:js plus test:tsd.npm run docker:setup / npm run docker:teardown: start/stop Redis test infrastructure.