.kiro/skills/react/SKILL.md
React component patterns, hooks, naming conventions, and the query-language translation system for Graph Explorer.
npx skillsauth add aws/graph-explorer reactInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
useMemo, useCallback, and React.memo are unnecessary in most cases and should be avoided unless profiling shows a specific needsrc/modules/ contain all related components, hooks, and utilitiesGraphViewer.tsx)use prefix (e.g., useGraphData.ts)The translation system is not used for locale/language translations. Instead, it swaps UI labels based on the active connection's query language. Each query language (Gremlin, openCypher, SPARQL) has its own JSON file in src/hooks/translations/ that maps keys to display strings (e.g., "node-type" → "Node Label" in Gremlin vs "Class" in SPARQL).
Key files:
src/hooks/useTranslations.ts — useTranslations() hook returns a t function scoped to the current query enginesrc/hooks/translations/gremlin-translations.jsonsrc/hooks/translations/openCypher-translations.jsonsrc/hooks/translations/sparql-translations.jsonUsage:
const t = useTranslations();
// t("node-type") → "Node Label" (Gremlin) or "Class" (SPARQL)
Key naming conventions:
node-type, edge-connections)node-expand.no-selection-title)development
TypeScript conventions and rules for Graph Explorer, including branded types, function style preferences, and type safety patterns.
tools
Testing standards, patterns, and utilities for Graph Explorer including Vitest, DbState, renderHookWithState, test data factories, SPARQL test helpers, and backward compatibility testing for persisted data.
development
Tailwind CSS v4 styling rules, responsive design patterns, and data attribute conventions for Graph Explorer.
data-ai
Schema storage and discovery in Graph Explorer, including SchemaStorageModel persistence, edge connections, incremental schema growth, and related Jotai atoms.