installskill

Skills / vercel-labs/agent-skills

vercel-react-best-practices

React and Next.js performance rules from Vercel Engineering.

Pinned commit
5a37a6329fbaCommitted 2026-11-20
Files
76225 KB
License
MIT
Snapshot taken
2026-11-28
Description from the skill
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

This is the text your agent reads to decide when to use the skill.

Install

Choose your agent. Pinned commands install exactly the commit this page describes.

Skill directory .claude/skills/Claude Code · Official docs

Does not read the shared .agents/skills directory. A skill must land in .claude/skills, or arrive inside a plugin.

GitHub CLIpinned

$ gh skill install vercel-labs/agent-skills skills/react-best-practices --agent claude-code --pin 5a37a6329fbad3666c3207392a6a7c0110e92efb

gh picks the directory for the agent, names the folder after the source directory (react-best-practices), and writes source metadata into the SKILL.md frontmatter, so the content hash below will not match. Check the github-tree-sha it records instead: it should read 343db72180d05814949fef7d46be96b5c6ee86b3.

skills CLIpinned

$ npx skills add vercel-labs/agent-skills@5a37a6329fbad3666c3207392a6a7c0110e92efb --skill vercel-react-best-practices -a claude-code --copy

Downloads and runs the skills package from npm. --copy writes real files instead of symlinks. The CLI sends anonymous telemetry unless DISABLE_TELEMETRY=1 is set, and that setting also turns off its audit lookups.

Plain gitpinned

$ tmp=$(mktemp -d)
$ git clone --quiet https://github.com/vercel-labs/agent-skills.git "$tmp"
$ git -C "$tmp" checkout --quiet 5a37a6329fbad3666c3207392a6a7c0110e92efb
$ mkdir -p .claude/skills
$ cp -R "$tmp/skills/react-best-practices" .claude/skills/vercel-react-best-practices

No extra tooling. Files land byte for byte as published in .claude/skills/vercel-react-best-practices, so the content hash below can be checked directly.

Check what landed

Run this after installing. It prints one SHA-256 for the whole directory. If your installer reported a different directory, cd there instead.

$ cd .claude/skills/vercel-react-best-practices && find . -type f -print0 | LC_ALL=C sort -z | xargs -0 shasum -a 256 | shasum -a 256

Expected99c51ec5786b76eb4690ba47a2b0e06ff7a7be43057f21036fc5025f038debd9

It matches only when the files are byte for byte as published. A difference means something changed: by the installer, by you, or upstream.

What is inside

Pattern matches in the files, each linked to its line. A match is a place to read, not a verdict, and no match is not proof of absence.

Docs · 74SKILL.md · 1Data · 1

Runs commands2

Code that spawns other processes, or shell code blocks in the instructions.

0 in scripts · 2 in docs and other text files

Network access2

Calls that fetch from or send to a remote host.

0 in scripts · 2 in docs and other text files

Installs packages3

Commands that pull and run third-party packages at use time.

0 in scripts · 3 in docs and other text files

Reads env or credentialsNo match

References to environment variables, tokens, keys or credential files.

Privileged or destructiveNo match

sudo, recursive deletes, permission changes and similar commands.

Dynamic or encoded codeNo match

eval, exec, base64 decoding and remote-script piping, which hide what runs.

Outside hosts mentioned

Hostnames of every URL in the text files.

  • react.dev×35
  • nextjs.org×17
  • vercel.com×17
  • github.com×14
  • example.com×7
  • swr.vercel.app×7
  • developer.mozilla.org×3
  • esbuild.github.io×3
  • vite.dev×3
  • webpack.js.org×3
  • www.npmjs.com×3
  • analytics.example.com×2
  • api.example.com×2
  • csstriggers.com×2
  • gist.github.com×2
  • jsfiddle.net×2
  • x.com×1

Entries worth a second look

No symlinks, submodules, hidden files, archives, compiled files or unscanned files.

File manifest

Every file in the skill directory at the pinned commit.

Content hash
99c51ec5786b76eb4690ba47a2b0e06ff7a7be43057f21036fc5025f038debd9
Git tree SHA
343db72180d05814949fef7d46be96b5c6ee86b3
PathKindSizeSHA-256
AGENTS.mdDocs106 KBfc93e7421177bbf8…
README.mdDocs3.3 KB9eafb2123d3b8b2a…
SKILL.mdSKILL.md7.1 KB71ed7794962fa6e8…
metadata.jsonData921 Bc4e18bac3290fbe1…
rules/_sections.mdDocs1.5 KB01c59969e4e867f0…
rules/_template.mdDocs631 B99df2a3ea088c6c2…
rules/advanced-effect-event-deps.mdDocs1.8 KB55ed8f9f27a1bff8…
rules/advanced-event-handler-refs.mdDocs1.4 KBa3097edeecfb2ff6…
rules/advanced-init-once.mdDocs958 B3e4dc22173eb0e2b…
rules/advanced-use-latest.mdDocs1.0 KB8a3f64dfe5a77d15…
rules/async-api-routes.mdDocs1.1 KB523338540d73427d…
rules/async-cheap-condition-before-await.mdDocs1.2 KB03107c1f70a293cd…
rules/async-defer-await.mdDocs2.2 KBf3c142d090615abd…
rules/async-dependencies.mdDocs1.3 KB16ef469f877e30c6…
Show all files (76)
rules/async-parallel.mdDocs654 B6d2f841896279e97…
rules/async-suspense-boundaries.mdDocs2.5 KBde05fedac2eb7ae5…
rules/bundle-analyzable-paths.mdDocs2.3 KB62090b5c815fd71b…
rules/bundle-barrel-imports.mdDocs2.7 KBe648f6d54525f07a…
rules/bundle-conditional.mdDocs949 B09c8259c3efb04fc…
rules/bundle-defer-third-party.mdDocs920 B3719fb47b191e8db…
rules/bundle-dynamic-imports.mdDocs791 B401817a7369f315f…
rules/bundle-preload.mdDocs1.1 KBd1f7cc28da7cd5ab…
rules/client-event-listeners.mdDocs1.9 KB242a873349febc1c…
rules/client-localstorage-schema.mdDocs1.9 KB0fb7cdf9dc93fdf2…
rules/client-passive-event-listeners.mdDocs1.6 KB1f35016f9053de69…
rules/client-swr-dedup.mdDocs1.1 KB644652c39c6cc00d…
rules/js-batch-dom-css.mdDocs3.2 KB480b891b9eaf96e9…
rules/js-cache-function-results.mdDocs1.9 KB3daaa11d24f4295c…
rules/js-cache-property-access.mdDocs532 B73e47431e74878a9…
rules/js-cache-storage.mdDocs1.6 KB11b826b0433898c1…
rules/js-combine-iterations.mdDocs753 B71add08aeeb43091…
rules/js-early-exit.mdDocs1.1 KB925ce5ce87f33471…
rules/js-flatmap-filter.mdDocs1.4 KB9e5b166a41914d97…
rules/js-hoist-regexp.mdDocs1.0 KBf9e9aef2f7c2307d…
rules/js-index-maps.mdDocs837 B5df1bdc2cfabb2c9…
rules/js-length-check-first.mdDocs1.7 KB8b54a311c826b299…
rules/js-min-max-loop.mdDocs2.2 KB87dfb67e2f39df6a…
rules/js-request-idle-callback.mdDocs2.6 KBee08f83905b4011a…
rules/js-set-map-lookups.mdDocs532 Ba7fd781a6ba9ad49…
rules/js-tosorted-immutable.mdDocs1.7 KBd0a5e1b0fec48a0a…
rules/rendering-activity.mdDocs564 B1e5e7eaf3555e61d…
rules/rendering-animate-svg-wrapper.mdDocs1.2 KB9c6ae0ca7a51434e…
rules/rendering-conditional-render.mdDocs980 B2ec2fa23c4148285…
rules/rendering-content-visibility.mdDocs815 B64eee6d5b916fe74…
rules/rendering-hoist-jsx.mdDocs1.0 KB93b229560fae9200…
rules/rendering-hydration-no-flicker.mdDocs2.3 KBdc7ab358c67c177b…
rules/rendering-hydration-suppress-warning.mdDocs872 B915bacb934e2927d…
rules/rendering-resource-hints.mdDocs2.5 KB351b1095d641717b…
rules/rendering-script-defer-async.mdDocs1.8 KB4cea07b7875ba7fc…
rules/rendering-svg-precision.mdDocs588 Bed468533f6e95f62…
rules/rendering-usetransition-loading.mdDocs2.0 KB3a1249c3f13026b6…
rules/rerender-defer-reads.mdDocs973 B234050a77faf50cb…
rules/rerender-dependencies.mdDocs824 B17eb5830956fb564…
rules/rerender-derived-state-no-effect.mdDocs1.2 KBcb11ec76f50aa7b6…
rules/rerender-derived-state.mdDocs728 B1c326bb67b01fb08…
rules/rerender-functional-setstate.mdDocs2.9 KB5e68df6b2ae8058e…
rules/rerender-lazy-state-init.mdDocs2.0 KB4ae844740f266fc8…
rules/rerender-memo-with-default-value.mdDocs1.1 KB81c47476564ad8a7…
rules/rerender-memo.mdDocs1.1 KB1f258990c2f27ff6…
rules/rerender-move-effect-to-event.mdDocs1.2 KBabc2cbf167bee056…
rules/rerender-no-inline-components.mdDocs2.1 KB1cc32907a7702725…
rules/rerender-simple-expression-in-memo.mdDocs1018 B5bdcf2d1558ba520…
rules/rerender-split-combined-hooks.mdDocs1.8 KB6f45d703343484ef…
rules/rerender-transitions.mdDocs1.0 KB60f4033909a62df5…
rules/rerender-use-deferred-value.mdDocs1.8 KB8c3579576a61a949…
rules/rerender-use-ref-transient-values.mdDocs1.7 KBf1a649af9d1d0b5c…
rules/server-after-nonblocking.mdDocs2.0 KBd0b8d24a3db9f0f6…
rules/server-auth-actions.mdDocs2.6 KBa2ca8aa102839251…
rules/server-cache-lru.mdDocs1.3 KB1924b64561841923…
rules/server-cache-react.mdDocs2.2 KBfddeea6c870bb3da…
rules/server-dedup-props.mdDocs2.0 KBc2747424cdac46be…
rules/server-hoist-static-io.mdDocs4.3 KB5abea4dd882b1366…
rules/server-no-shared-module-state.mdDocs1.7 KB4d869bf1cd2f1632…
rules/server-parallel-fetching.mdDocs1.5 KB569a2e9fc04f9606…
rules/server-parallel-nested-fetching.mdDocs992 Bad5d9656984d4a95…
rules/server-serialization.mdDocs996 Bf4c7d68b29c82381…

Spec and portability

Checked against the Agent Skills specification.

Frontmatter
Parses as YAML
Name matches directory
Novercel-react-best-practices ≠ react-best-practices. Installed as vercel-react-best-practices.
Name uses lowercase letters, digits and hyphens
Yes
Description length
329limit 1,024 characters
SKILL.md body
142 linesthe spec suggests under 500 lines
Fields outside the spec
None
License field
MIT
License file
None declared
Repository license
None declared

Change history

No changes recorded since the first snapshot on 2026-11-28.