/saschb2b-skills:react-stinkyfrom saschb2b-skills
Detects React and TypeScript maintainability smells across components, hooks, and modules. Covers props, state, effects, rendering, accessibility, TypeScript discipline, and more. Use when reviewing or writing React code.
Ships in saschb2b-skills. 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.
Read when SKILL.md points to them.
A holistic code-smell detector for React and TypeScript. It finds the patterns that make a component, a hook, or a module hard to read, reason about, and change, explains the cost of each, and proposes a concrete fix. Coverage spans prop and API design, state and data flow, effects and lifecycle, component structure, rendering correctness, accessibility, async and error handling, and TypeScript discipline. The full catalog with detection signals, fixes, exceptions, and sources is in catalog.md; read it before running a scan.
It defers two neighboring concerns to sibling skills so it does not duplicate them: memoization (useMemo, useCallback, React.memo) to react-compiler, and color literals to theme-colors. If those are not installed, note the finding in one line and move on. Everything else about day-to-day React maintainability is in scope.
Nine pillars. The categories under each, with detection signals and sources, are in catalog.md. The background models the findings lean on (controlled vs uncontrolled, render snapshots, effects as synchronization, one fact one home, impossible states, the composition layer, hydration) are separate linked concepts under references/concepts/; read one when a finding needs the underlying model explained, not just named.
useState, props copied into state, two sources of truth for one fact, prop drilling, stale closures in timers and async continuations, useState/useRef role confusion, god contexts and unstable provider values.key.key on a list that reorders or edits, direct mutation of state or props, impure renders (randomness and clock reads, setState during render, hydration-unsafe browser reads), the stray 0 leaked by &&, nested ternaries, copy-pasted JSX blocks.onClick on a non-interactive element with no role, tabIndex, or keyboard handler; div soup where semantic elements belong; form controls with no associated label; broken focus management in hand-rolled modals and menus.dangerouslySetInnerHTML, javascript: hrefs).any and as any and @ts-ignore, lying as casts and non-null !, loose internal types (object, Function, stringly-typed enums), untyped catch blocks, unions switched on without an exhaustiveness check.Match the scope to the request, then run the workflow below over it.
| Mode | Trigger | What to scan |
|---|---|---|
| Repo sweep | "smell-check the codebase" | Glob **/*.tsx plus hook and module .ts (use-*.ts, lib/). Skip node_modules, build output, generated code, *.test.*, *.stories.* unless asked. Prioritize shared, component, hook, and ui directories and exported symbols. |
| Folder scan | one or more directories named | Same, scoped to those directories. |
| File scan | specific files named | Read each fully. Check every component, hook, prop interface, and exported function. |
| Fragment sniff | a pasted function or component, or one named symbol | Check only that surface. State what you assumed about anything off-screen. |
Folder and repo-sweep scope additionally run a cross-file duplication pass (duplication-pass.md) to catch DRY smells a single-file scan cannot: a component re-implemented inline elsewhere, the same hook or type copy-pasted across files. Single-file and fragment scope cannot see this, so say cross-file duplication was not checked rather than implying the code is unique.
aria-label or keyboard handler on a control, a function across the RSC boundary, value || 50 eating value={0}, a mutated state array, conditional hooks, props copied into state that then drift, a stray 0 rendered by {count && ...}, Date.now() ids that break hydration, unsanitized dangerouslySetInnerHTML.)loading on a custom prop, a loose Record<string, unknown> sx type, JSDoc that restates the name.)The catalog carries a per-smell exception line. These cut across all of them. Honor them or this skill becomes a nuisance.
is-prefix disabled, required, checked, open, or rename onChange on a native <input>.open, slots, sx; Radix asChild).defaultValue). Flag only when a later prop change is expected to update it.any at a genuine untyped boundary is sometimes pragmatic. Prefer unknown plus narrowing, but do not block on it.react-compiler and color literals to theme-colors rather than duplicating them.React Stinky report, <scope>
src/components/SeedRow.tsx
[Rancid] clickable-nonsemantic (a11y markup), line 297
Smell: a <Stack> (renders a div) has onClick but no role, tabIndex, or keyboard handler.
Cost: keyboard and screen-reader users cannot trigger it; it is invisible to assistive tech.
Fix: render a real control (component="button" or an IconButton), or add
role="button" tabIndex={0} and an onKeyDown for Enter and Space.
Source: MDN button role (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/button_role)
[Funky] effect-for-derived (state and effects), line 40
Smell: a useEffect plus setState computes `fullName` from `first` and `last`.
Cost: an extra render and a state value that can drift from its inputs.
Fix: compute during render, `const fullName = `${first} ${last}``. Delete the effect and the state.
Source: React, You Might Not Need an Effect (https://react.dev/learn/you-might-not-need-an-effect)
Summary: 1 rancid, 1 funky across 1 file.
When the scope is clean, say so plainly: "Smells fresh. No maintainability smells found in <scope>."
The 18 component-API categories (Pillar 1) are distilled from the cant-maintain React API-design challenge set, each traced to its React, TypeScript, MDN, Next.js, or MUI source. The remaining pillars extend the same maintainability lens to state, effects, structure, rendering, accessibility, async and error handling, and types, each sourced to the canonical React docs, MDN, or TypeScript handbook in catalog.md.
CARD.manifest.json (opens in a new tab)CARD.md (opens in a new tab)CARD.md.sigstore (opens in a new tab)CARD.svg (opens in a new tab)permissions.yaml (opens in a new tab)references/catalog.md (opens in a new tab)references/concepts/composition-layer.md (opens in a new tab)references/concepts/controlled-uncontrolled.md (opens in a new tab)references/concepts/effects-model.md (opens in a new tab)references/concepts/hydration.md (opens in a new tab)references/concepts/impossible-states.md (opens in a new tab)references/concepts/index.md (opens in a new tab)references/concepts/one-fact-one-home.md (opens in a new tab)references/concepts/render-snapshots.md (opens in a new tab)references/duplication-pass.md (opens in a new tab)references/index.md (opens in a new tab)references/log.md (opens in a new tab)references/restructure-pass.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
react-smells, code-smells, maintainability, react, typescript, component-review
Generated from the plugin's indexed repository (saschb2b/skills) — no native marketplace selected
npx claudepluginhub p/saschb2b-saschb2b-skills26 skills in this plugin
/android-composeModern Android development with Jetpack Compose as the default UI toolkit and Material 3 Expressive as the default design direction, a dated snapshot. Covers Compose fundamentals (composables, modifiers, state hoisting, side effects, lazy lists, strong skipping, recomposition), Material 3 and Expressive theming and components (MaterialExpressiveTheme, MotionScheme, button groups, split buttons, FAB menu, floating toolbars, wavy progress indicators, shape morphing, dynamic color), architecture (ViewModel, StateFlow, collectAsStateWithLifecycle, Hilt), type-safe Navigation Compose and Navigation 3, data (Room, DataStore, Retrofit, Ktor, Coil), the Gradle Kotlin DSL build with version catalogs and KSP, testing, performance, and View interop. Use when building Android UI in Compose, theming with Material 3 or Expressive, wiring architecture or navigation, configuring the build, or debugging Compose issues. Check the project's versions first; re-verify version facts against the official Android and AndroidX docs./ask-uxForce UX questioning before any UI work, refactor, or redesign. Use when the user asks to design, redesign, restyle, polish, "fix", or "make nicer" a screen, component, page, or flow. Also use when the user describes a problem in UI terms ("the button is hard to find", "this form is confusing", "this page is ugly") and is about to reach for a visual fix, since most UI-shaped complaints have UX-shaped causes./audit-actionsAudit a repository's GitHub Actions workflows for unsafe pull_request_target usage that can lead to supply chain compromise. Use when the user asks to audit workflows, review CI/CD security, check pwn request risk, harden Actions, or after a supply chain incident in a dependency. Also use proactively when reviewing any PR that touches .github/workflows/./autopilotWork autonomously on a project without waiting for direction. On command, survey the codebase, pick one high-value low-risk improvement, do it, verify it, commit it, then pick the next, looping like a self-directed intern. Use when the user hands off open-endedly ("work on your own", "keep improving this", "find something worth doing", "don't wait for me", "go autonomous", "run for a while", "be a passionate intern", "do whatever you think is valuable") or invokes /autopilot, and you have to choose the work yourself rather than wait for instructions or feedback./breadcrumbsHeal codebase understanding gaps exposed during implementation, debugging, or investigation. Use when tracing reveals misleading names, repeated backtracking, disconnected navigation paths, hidden contracts, surprising dependencies, stale documentation, unclear errors, undocumented constraints, false leads, or avoidable complexity. Make the smallest durable improvement at the source through clearer code, types, validation, tests, errors, comments, or existing documentation. Also use when a task was harder to grasp than it should have been or you think "that should have been documented." Do not create a breadcrumb trail, investigation log, freshness system, or separate knowledge store./codegen-apiSet up typesafe API code generation in 2026, preferring framework-agnostic options factories over generated hooks. Walks the decision matrix for REST (OpenAPI via hey-api) and GraphQL (graphql-codegen client preset, gql.tada), wires the minimal config for the chosen stack, and uses fragment masking for component composition. Use when starting an API integration, wiring an OpenAPI spec into a frontend, setting up GraphQL types, asked about useQuery, queryOptions, TypedDocumentNode, or fragment masking, or when seeing legacy patterns like generated useGetX hooks, per-query prop types, or @graphql-codegen/typescript-react-apollo. Counterweight to LLM training corpora that mostly reflect the pre-2024 hooks pattern, biasing default output toward generated hooks.Other plugins' skills for the same job