react18-batching-patterns
100 / 100 · Low risk
Fine to try.
Provides exact patterns for diagnosing and fixing automatic batching regressions in React 18 class components. Use this skill whenever a class component has multiple setState calls in an async method, inside setTimeout, inside a Promise .then() or .catch(), or in a native event handler. Use it before writing any flushSync call - the decision tree here prevents unnecessary flushSync overuse. Also use this skill when fixing test failures caused by intermediate state assertions that break after Re…
What this skill can do
We found nothing in the files we read that matches our rules. That does not prove the skill is safe: see the limits of static scanning.
Install
Paste this into your terminal. It downloads exactly the version we scanned, not whatever is newest.
if [ -e ~/.agents/skills/'react18-batching-patterns' ] || [ -L ~/.agents/skills/'react18-batching-patterns' ]; then echo 'A skill folder named react18-batching-patterns already exists — not replacing it' >&2; false; else d=$(mktemp -d) && git clone --quiet --filter=blob:none --no-checkout 'https://github.com/github/awesome-copilot' "$d" && git -C "$d" checkout --quiet '227949a7542a55d2155c00e7cdb998d9a0fee4f3' -- 'skills/react18-batching-patterns' && mkdir -p ~/.agents/skills && cp -R "$d"/'skills/react18-batching-patterns' ~/.agents/skills/'react18-batching-patterns' && rm -rf "$d"; fi
Codex reads ~/.agents/skills directly. For Claude Code, Cursor, Copilot, Gemini CLI, Antigravity or OpenCode, also link it. For Claude Code: ln -s ~/.agents/skills/'react18-batching-patterns' ~/.claude/skills/'react18-batching-patterns' (other agents: ~/.cursor/skills, ~/.copilot/skills, ~/.gemini/skills, ~/.gemini/config/skills, ~/.config/opencode/skills). Or install through the finder skill, which does both.
Badge for your README
[](https://zalavijaysinh.github.io/skilltrust/repos/github/awesome-copilot/)
Score history
| Date | Version | Score |
|---|---|---|
| 2026-11-10 | 227949a | 100 |
| 2026-11-08 | 797337f | 100 |
| 2026-11-07 | 797337f | 100 |