/cortex-web:reactfrom cortex-web
Applies opinionated React 18/19 conventions for Server Components, hooks, Suspense, state management, and performance memoization.
Ships in cortex-web. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
House conventions for React 18/19. Apply them to components you are writing or changing — don't refactor untouched files to match unless asked.
'use client' only where you need it — state, effects, event handlers, browser APIs. Push the boundary as far down the tree as it will go: every component above a 'use client' marker also ships to the browser. Everything crossing that boundary must be serializable — a function, a class instance, or a Date inside a prop object fails at runtime, not at build.setCount(count + 1) inside a useEffect(…, []) captures count from the first render forever and silently sets 1 every tick; setCount(c => c + 1) always sees current state.useEffect bugs are an effect that should never have existed.memo, useMemo, and useCallback each cost a comparison and add code to read. They earn their place when a child is genuinely expensive or is itself memoised and a new reference would defeat it — not as a default wrapper.useState locally, lifted only as far as the shared ancestor. Reach for Zustand when genuinely global client state exists; TanStack Query for server state, because cache invalidation and refetching are its job and hand-rolling them in effects goes wrong quietly.useActionState and <form action> for mutations, useOptimistic for immediate feedback, use() to read a promise or context conditionally. ref is a normal prop — forwardRef is no longer needed. useFormStatus only reports on a form above it, so the submit button reading pending state has to be its own component nested inside the <form> — calling it in the component that renders the form always returns pending: false.useTransition when a keystroke triggers expensive work. Update the input urgently and mark the derived work as a transition, so React can interrupt it; without this, typing into a field that filters a large list feels broken even though nothing is.<button> brings focus handling, keyboard activation, and role for free; a <div role="button"> means reimplementing all three correctly.getByRole('button', { name: /submit/i }) fails when the control stops being reachable the way a user reaches it — which is the bug you want the test to catch. getByTestId passes regardless and is the fallback for elements with no accessible name.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub alexander-danilenko/cortex-claude-code-plugins --plugin cortex-web5 skills in this plugin
/javascriptApply these opinionated JavaScript conventions whenever writing or reviewing JS or Node: ESM-first packaging, choosing between Promise combinators, error handling that doesn't swallow failures, AbortController for cancellation, keeping the event loop unblocked, and reaching for platform APIs before dependencies./nestjsOpinionated house conventions for NestJS backends — module boundaries and layering, provider wiring and injection scopes, guards/interceptors/pipes/filters, DTOs and validation, domain exceptions, config, and the Nest 11 / Express 5 behaviour that compiles cleanly and fails at runtime. Use whenever the code is NestJS (`@nestjs/*` in package.json, or `@Module`/`@Injectable`/`@Controller`/`@Cron` in the file), including when the question sounds like plain TypeScript, an OOP refactor, a code review, or an ops problem — the Nest-specific answer differs from the generic one. Typical asks: scaffolding a module, adding a controller, provider, or endpoint, wiring an enhancer, a boot-time DI or circular-import failure, a response leaking entity fields despite `@Exclude()`, a cron job firing on every replica, upgrading NestJS, or reviewing a Nest diff. Not for plain Express or Fastify, Angular, frontend, SQL, or CI.Other plugins' skills for the same job