Skip to content

chore(skills): add project React performance guidance - #147

Merged
Asaf-prog merged 4 commits into
mainfrom
codex/add-react-performance-skill
Oct 18, 2026
Merged

Asaf-prog merged 4 commits into
mainfrom
codex/add-react-performance-skill

Conversation

@Asaf-prog

Copy link
Copy Markdown
Collaborator

Register Vercel React Best Practices in the canonical .ai skill system. Vendor 70 upstream rules and generate the Codex and Claude adapters.

Register Vercel React Best Practices in the canonical .ai skill system.
Vendor 70 upstream rules and generate the Codex and Claude adapters.
@Asaf-prog
Asaf-prog requested a review from AmitAvital1 October 14, 2026 20:46
@Asaf-prog Asaf-prog self-assigned this Oct 14, 2026
Comment thread .ai/references/vercel-react-best-practices/rules/js-cache-function-results.md Outdated
Comment thread .ai/references/vercel-react-best-practices/rules/bundle-conditional.md Outdated
Comment thread .ai/references/vercel-react-best-practices/rules/server-cache-lru.md Outdated
Comment thread .ai/references/vercel-react-best-practices/rules/advanced-event-handler-refs.md Outdated

@AmitAvital1 AmitAvital1 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requesting changes for the line-level correctness and security issues noted in this review.

Seven vendored Vercel rules taught incorrect or unsafe patterns:

- rendering-usetransition-loading: transitions do not cancel requests, so
  ignore stale responses instead of letting them overwrite newer results.
- js-cache-function-results: cache only pure functions, bounded by size;
  context-dependent caches need explicit invalidation.
- bundle-conditional: a typeof window guard in an effect does not affect
  bundling; effects never run during server rendering.
- server-cache-lru: key shared caches by tenant and scope, and check
  authorization on every request.
- rendering-hydration-no-flicker: the pre-hydration class change is still a
  mismatch; mark it with suppressHydrationWarning.
- async-api-routes: mark early-started promises handled and return before
  dependent work when authentication fails.
- advanced-event-handler-refs: Effect Events are not stable references.

The skill now records these local corrections against the upstream revision.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Asaf-prog
Asaf-prog requested a review from AmitAvital1 October 16, 2026 12:58
Comment thread .ai/references/vercel-react-best-practices/rules/js-cache-storage.md Outdated
Comment thread .ai/references/vercel-react-best-practices/rules/bundle-preload.md Outdated
Comment thread .ai/references/vercel-react-best-practices/rules/server-after-nonblocking.md Outdated

@AmitAvital1 AmitAvital1 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Five previous threads are resolved. Two earlier issues remain incomplete, and three new line-level correctness issues were found in the full re-review.

- rendering-hydration-no-flicker: the title and label no longer claim the
  pattern avoids a hydration mismatch; the mismatch is marked as intentional.
- server-cache-lru: only an unexported loader touches the shared cache, and
  the exported function authorizes the caller before any cached value.
- js-cache-storage: invalidation resets the cookie cache, cookie values may
  contain "=", and the rule explains that cookie changes raise no event.
- bundle-preload: removes the typeof window guard and its false bundling
  claim, matching bundle-conditional.
- server-after-nonblocking: awaits the logging in after(), stops logging the
  session cookie, and notes that after() work is lost if the process stops.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Asaf-prog
Asaf-prog requested a review from AmitAvital1 October 17, 2026 11:17
Comment thread .ai/references/vercel-react-best-practices/rules/advanced-use-latest.md Outdated
Comment thread .ai/references/vercel-react-best-practices/rules/async-defer-await.md Outdated

@AmitAvital1 AmitAvital1 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Four reported issues are fixed and resolved. The re-review found two remaining correctness inconsistencies plus a repository-wide whitespace failure in the added rule files; details are in the line threads.

- server-cache-lru: build the cache key with JSON.stringify, so IDs that
  contain a separator cannot collide across tenants.
- advanced-use-latest: drop the "stable callback" claim; Effect Events get a
  new identity every render and stay out of dependency arrays.
- Remove trailing whitespace from the copied rules; git diff --check against
  main is now clean.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Asaf-prog
Asaf-prog requested a review from AmitAvital1 October 17, 2026 14:29

@AmitAvital1 AmitAvital1 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All remaining review findings are fixed and verified. The full re-review found no additional blocking issues; generation and Git whitespace checks are clean, and GitHub CI is the merge gate.

@Asaf-prog
Asaf-prog merged commit 7754711 into main Oct 18, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants