// Enforce elite code quality standards for F3 Workout Builder. Use when writing code, reviewing changes, fixing bugs, or creating new features. Keywords: code quality, TypeScript, testing, coverage, lint, types.
This skill enforces the project's strict code quality requirements. Every piece of code must meet these standards before being considered complete.
any TypesEvery variable, parameter, and return value MUST be explicitly typed.
// CORRECT
function processExercise(exercise: Exercise): ProcessedExercise {
const result: ProcessedExercise = transform(exercise);
return result;
}
// WRONG - Will fail ESLint
function processExercise(exercise: any) {
// NO!
const result = transform(exercise);
return result;
}
ALL functions must declare their return type.
// CORRECT
const handlePress = (item: Exercise): void => {
onSelect(item);
};
// WRONG
const handlePress = (item: Exercise) => {
// Missing return type!
onSelect(item);
};
All new code requires comprehensive tests covering:
All interactive elements need accessibility attributes:
<Pressable
accessibilityRole="button"
accessibilityLabel="Add exercise to workout"
accessibilityHint="Double tap to add this exercise"
>
Run the full quality check:
npm run check:all
This runs:
npm run lint - ESLint with strict TypeScript rulesnpm run format - Prettier formattingnpm run typecheck - TypeScript compilationnpm test - All unit testsuseMemo or extract to constantsAlways reference checklist.md for the complete verification checklist.
component-dev - Component creation patternszustand-testing - Store testing patternsf3-domain - F3 terminology for UI textcode-reviewer - Automated quality reviewtest-generator - Generate missing testssecurity-auditor - Security vulnerability checks