Agent SkillsUsefulSoftwareCo/executor › wrdn-effect-atom-reactivity-keys

wrdn-effect-atom-reactivity-keys

GitHub

用于修复 lint 报错的 useAtomSet 写入突变调用,通过添加 reactivityKeys 明确指定失效读取范围,确保数据更新时 UI 正确刷新。

.agents/skills/wrdn-effect-atom-reactivity-keys/SKILL.md UsefulSoftwareCo/executor

Trigger Scenarios

lint 提示 useAtomSet 突变缺少无效化键 需要为写入操作指定精确的数据失效范围

Install

npx skills add UsefulSoftwareCo/executor --skill wrdn-effect-atom-reactivity-keys -g -y
More Options

Non-standard path

npx skills add https://github.com/UsefulSoftwareCo/executor/tree/main/.agents/skills/wrdn-effect-atom-reactivity-keys -g -y

Use without installing

npx skills use UsefulSoftwareCo/executor@wrdn-effect-atom-reactivity-keys

指定 Agent (Claude Code)

npx skills add UsefulSoftwareCo/executor --skill wrdn-effect-atom-reactivity-keys -a claude-code -g -y

安装 repo 全部 skill

npx skills add UsefulSoftwareCo/executor --all -g -y

预览 repo 内 skill

npx skills add UsefulSoftwareCo/executor --list

SKILL.md

Frontmatter
{
    "name": "wrdn-effect-atom-reactivity-keys",
    "description": "Add reactivityKeys to effect-atom write mutation calls. Use when lint flags a useAtomSet mutation call that mutates data without invalidation keys.",
    "allowed-tools": "Read Grep Glob Bash"
}

Effect-atom write mutations must say which reads they invalidate.

Fix Shape

  • Find the useAtomSet(...) write mutation call.
  • Add reactivityKeys to the mutation payload at the call site.
  • Use the narrowest keys that cover the rows/lists affected by the write.
  • Keep read-only probe/preview OAuth flows out of this pattern.
  • If the mutation should update UI immediately, check whether wrdn-effect-atom-optimistic also applies.

Good

await updateSource({
  params: { scopeId, sourceId },
  payload,
  reactivityKeys: [["sources", scopeId]],
});

Version History

  • fd4fb02 Current 2026-07-05 10:55

Same Skill Collection

.agents/skills/stack/SKILL.md
.agents/skills/wrdn-effect-atom-optimistic/SKILL.md
.agents/skills/wrdn-effect-promise-exit/SKILL.md
.agents/skills/wrdn-effect-raw-fetch-boundary/SKILL.md
.agents/skills/wrdn-effect-schema-boundaries/SKILL.md
.agents/skills/wrdn-effect-schema-inferred-types/SKILL.md
.agents/skills/wrdn-effect-typed-errors/SKILL.md
.agents/skills/wrdn-effect-value-inferred-types/SKILL.md
.agents/skills/wrdn-effect-vitest-tests/SKILL.md
.agents/skills/wrdn-package-boundaries/SKILL.md
.agents/skills/wrdn-typescript-type-safety/SKILL.md
.claude/skills/emulate/SKILL.md
.claude/skills/prod-telemetry/SKILL.md
.claude/skills/self-contained-modals/SKILL.md
.skills/cli-release/SKILL.md
.skills/effect-atom-optimistic-updates/SKILL.md
.skills/effect-http-testing/SKILL.md
.skills/effect-use-pattern/SKILL.md
.skills/graphite/SKILL.md
.skills/warden-security-review/SKILL.md

Metadata

Files
0
Version
8bc037d
Hash
20d3b8e6
Indexed
2026-07-05 10:55

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-17 03:26
浙ICP备14020137号-1 $Carte des visiteurs$