Developing React components in the Punkt design system (@oslokommune/punkt-react). Covers creating, modifying, and testing components in /packages/react/src/components/. Use when working on Punkt React source code.
78
66%
Does it follow best practices?
Impact
98%
1.13xAverage score across 3 eval scenarios
Passed
No known issues
Fix and improve this skill with Tessl
tessl review fix ./skills/punkt-react-dev/SKILL.mdNew component implementation following Punkt conventions
'use client' directive
100%
100%
Component name prefix
100%
100%
Interface name prefix
100%
100%
Extends HTML attributes
100%
100%
ref as regular prop
0%
100%
className passthrough
100%
100%
Props spread on root
100%
100%
Array class composition
100%
100%
BEM class naming
100%
100%
No inline styles
100%
100%
Named React imports only
100%
100%
Destructuring defaults
100%
100%
Test uses Vitest + Testing Library + jest-axe
100%
100%
Barrel exports updated
100%
100%
Writing component tests with Punkt testing stack
Vitest test runner
0%
100%
@testing-library/react imports
100%
100%
@testing-library/user-event import
100%
100%
jest-axe accessibility test
0%
100%
BEM class tests
100%
100%
className passthrough test
100%
100%
Ref forwarding test
100%
100%
User interaction test
100%
100%
Default prop test
100%
100%
Co-located test file
100%
100%
No console.log in test
100%
100%
No import React
100%
100%
Compound component with React Context and dev page
React Context for state sharing
100%
100%
Context consumer in children
100%
100%
Props override context
100%
25%
Pkt component naming
100%
100%
IPkt interface naming
100%
100%
'use client' directive
100%
100%
No forwardRef for simple refs
0%
100%
No inline styles
100%
100%
Named React imports only
100%
100%
BEM CSS classes
100%
100%
Dev page structure
37%
100%
Dev page default export
100%
100%
Export registration documented
100%
100%
ba01e6a
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.