.agents/skills/docs-sync/SKILL.md
Use this skill to decide whether an ioredis change needs documentation, update the right docs, and keep examples aligned with tested behavior.
For broad documentation audits, option/API coverage checks, or unclear documentation scope, also read references/doc-coverage-checklist.md before deciding what to update.
Inspect the changed behavior.
Find the documentation surface.
README.md: primary user-facing guide, examples, feature overview, options, and common workflows.lib/redis/RedisOptions.ts: RedisOptions, CommonRedisOptions, option JSDoc, and DEFAULT_REDIS_OPTIONS.lib/cluster/ClusterOptions.ts: ClusterOptions, cluster option JSDoc, and DEFAULT_CLUSTER_OPTIONS.lib/connectors/StandaloneConnector.ts and lib/connectors/SentinelConnector/types.ts: connection option types that contribute to public constructor options.docs/: generated TypeDoc output from public source comments.examples/: runnable snippets that should match current API behavior.lib/index.ts and public TypeDoc comments: exported API documentation surface.test/typing/: executable documentation for TypeScript signatures.Update docs when the change affects users.
bin/, regenerate lib/utils/RedisCommander.ts, and document only if README/docs mention related command groups or if the change affects command typing, return mapping, or examples.lib/index.ts: update TypeDoc comments and typing tests when the exported type or class is part of the supported API.Keep examples honest.
Verify documentation changes.
npm run docs when the change affects generated docs.node bin/index.js before validating generated typings.npm run format-check only when relevant files are covered by Prettier.lib/index.ts?RedisOptions, CommonRedisOptions, ClusterOptions, standalone connection options, or Sentinel connection options?If any answer is yes, update docs or explicitly explain why existing docs already cover it.