From frontend-experts
Enforces TypeScript strict mode, ESLint rules, type safety, React patterns, naming conventions, and function length guidelines. Useful for writing or reviewing TypeScript/JavaScript frontend code.
How this skill is triggered — by the user, by Claude, or both
Slash command
/frontend-experts:typescript-styleThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill enforces TypeScript strict mode, ESLint standards, and modern patterns for frontend development.
This skill enforces TypeScript strict mode, ESLint standards, and modern patterns for frontend development.
any: Use unknown or proper types// Types/Interfaces: PascalCase
interface UserProfile { }
// Functions/variables: camelCase
function calculateTotal() { }
const userName = "john";
// Booleans: is/has/can/should prefix
const isLoading = true;
const hasPermission = false;
// Prefer union types over enums
type Status = "pending" | "active" | "completed";
// Use as const for constant objects
const HttpStatus = {
Ok: 200,
NotFound: 404,
} as const;
// Discriminated unions
type Result<T> =
| { success: true; data: T }
| { success: false; error: Error };
// Typed props
interface ButtonProps {
label: string;
onClick: () => void;
disabled?: boolean;
}
// Typed hooks
const [isOpen, setIsOpen] = useState(false);
// Typed event handlers
const handleSubmit = (e: React.FormEvent<HTMLFormElement>) => {};
any type== instead of ===npx claudepluginhub jpoutrin/product-forge --plugin frontend-expertsEnforces TypeScript type safety with strict mode, no `any`, and discriminated unions. Use when writing or reviewing TypeScript code.
Provides TypeScript best practices for type-safe code including strict mode, interfaces, discriminated unions, generics, async patterns, and null safety. Useful for type definitions and maintainable TS.
Enforces TypeScript conventions for strict, type-safe code: no `any` use unknown, interfaces vs types, literal unions over enums, discriminated unions, type narrowing with guards, branded types, and anti-pattern avoidance.