Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Standardized guidelines and patterns for Frontend State React Context.
.claude/skills/valec3-frontend-state-react-context/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-13 | ✗→✓ | ▲ Improved | -43% | 0% |
| case-03 | ✗→✓ | ▲ Improved | -30% | 0% |
| case-08 | ✗→✓ | ▲ Improved | -20% | 0% |
| case-15 | ✓→✓ | = Same ✓ | 9% | 0% |
| case-01 | ✓→✓ | = Same ✓ | -45% | 0% |
createContexttypescriptimport { createContext, useContext, useState } from 'react'; interface ThemeContextType { theme: 'light' | 'dark'; toggleTheme: () => void; } const ThemeContext = createContext<ThemeContextType | null>(null); export function ThemeProvider({ children }: { children: React.ReactNode }) { const [theme, setTheme] = useState<'light' | 'dark'>('light'); const value = useMemo(() => ({ theme, toggleTheme: () => setTheme(t => t === 'light' ? 'dark' : 'light') }), [theme]); return ( <ThemeContext.Provider value={value}> {children} </ThemeContext.Provider> ); } export function useTheme() { const context = useContext(ThemeContext); if (!context) throw new Error('useTheme must be used within ThemeProvider'); return context; }
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-13 | fail→pass | 16,266 | 10,072 | -38% | 1 | 1 | 0% | 3,409 | 1,955 | -43% | 0 | 0 | — |
case-15 | pass→pass | 11,471 | 12,359 | +8% | 1 | 1 | 0% | 1,992 | 2,171 | +9% | 0 | 0 | — |
case-01 | pass→pass | 14,751 | 6,490 | -56% | 1 | 1 | 0% | 3,184 | 1,741 | -45% | 0 | 0 | — |
case-02 | pass→pass | 12,822 | 8,576 | -33% | 1 | 1 | 0% | 2,634 | 1,782 | -32% | 0 | 0 | — |
case-03 | fail→pass | 11,884 | 7,757 | -35% | 1 | 1 | 0% | 2,555 | 1,794 | -30% | 0 | 0 | — |
case-04 | pass→pass | 14,900 | 5,708 | -62% | 1 | 1 | 0% | 1,702 | 1,388 | -18% | 0 | 0 | — |
case-16 | pass→pass | 8,137 | 4,867 | -40% | 1 | 1 | 0% | 1,796 | 1,337 | -26% | 0 | 0 | — |
case-05 | pass→pass | 9,780 | 7,834 | -20% | 1 | 1 | 0% | 1,865 | 2,025 | +9% | 0 | 0 | — |
case-06 | pass→pass | 9,246 | 7,266 | -21% | 1 | 1 | 0% | 1,926 | 1,856 | -4% | 0 | 0 | — |
case-07 | pass→pass | 14,414 | 10,290 | -29% | 1 | 1 | 0% | 2,533 | 2,336 | -8% | 0 | 0 | — |
case-08 | fail→pass | 10,453 | 9,823 | -6% | 1 | 1 | 0% | 2,044 | 1,626 | -20% | 0 | 0 | — |
case-14 | pass→pass | 8,851 | 9,153 | +3% | 1 | 1 | 0% | 1,763 | 1,812 | +3% | 0 | 0 | — |
case-09 | pass→pass | 10,152 | 6,780 | -33% | 1 | 1 | 0% | 2,041 | 1,771 | -13% | 0 | 0 | — |
case-10 | pass→pass | 8,280 | 5,782 | -30% | 1 | 1 | 0% | 1,745 | 1,619 | -7% | 0 | 0 | — |
case-11 | pass→pass | 4,924 | 4,258 | -14% | 1 | 1 | 0% | 1,023 | 1,139 | +11% | 0 | 0 | — |
case-12 | pass→pass | 11,270 | 8,701 | -23% | 1 | 1 | 0% | 1,826 | 1,756 | -4% | 0 | 0 | — |
case-17 | pass→pass | 15,172 | 8,112 | -47% | 1 | 1 | 0% | 2,744 | 2,041 | -26% | 0 | 0 | — |
case-18 | pass→pass | 11,982 | 7,406 | -38% | 1 | 1 | 0% | 2,246 | 1,712 | -24% | 0 | 0 | — |
case-19 | pass→pass | 7,836 | 5,126 | -35% | 1 | 1 | 0% | 1,623 | 1,413 | -13% | 0 | 0 | — |
case-20 | pass→pass | 12,902 | 10,170 | -21% | 1 | 1 | 0% | 2,191 | 2,138 | -2% | 0 | 0 | — |
case-21 | pass→pass | 16,533 | 11,494 | -30% | 1 | 1 | 0% | 3,275 | 2,823 | -14% | 0 | 0 | — |
case-22 | pass→pass | 7,729 | 5,447 | -30% | 1 | 1 | 0% | 1,446 | 1,180 | -18% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +14 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.