.kiro/skills/typescript/SKILL.md
TypeScript conventions and rules for Graph Explorer, including branded types, function style preferences, and type safety patterns.
npx skillsauth add aws/graph-explorer typescriptInstall 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.
typescript.autoClosingTagsfunction handleClick() {} over const handleClick = () => {}). Arrow functions within function scope are fine.ReturnType<typeof ...> when available (e.g., use AppStore instead of ReturnType<typeof getAppStore>)The project uses branded types from @/utils for type safety. These prevent accidental mixing of similar types at compile time.
| Type | Creator Function | Location |
| ------------------------ | ---------------------------- | --------------------------------------- |
| VertexId | createVertexId() | @/core/entities/vertex |
| VertexType | createVertexType() | @/core/entities/vertex |
| EdgeId | createEdgeId() | @/core/entities/edge |
| EdgeType | createEdgeType() | @/core/entities/edge |
| EdgeConnectionId | createEdgeConnectionId() | @/core/StateProvider/edgeConnectionId |
| ConfigurationId | createNewConfigurationId() | @/core/ConfigurationProvider/types |
| RenderedVertexId | toRenderedVertexId() | @/core/StateProvider/renderedEntities |
| RenderedEdgeId | toRenderedEdgeId() | @/core/StateProvider/renderedEntities |
| IriNamespace | splitIri() | @/utils/rdf |
| IriLocalValue | splitIri() | @/utils/rdf |
| RdfPrefix | generatePrefix() | @/utils/rdf |
| NormalizedIriNamespace | normalizeNamespace() | @/utils/rdf |
Always use the appropriate branded type instead of string when working with these identifiers.
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.
development
React component patterns, hooks, naming conventions, and the query-language translation system for Graph Explorer.