Skill Creator

djankies

100 published skills · 0 GitHub stars across the catalog. View on GitHub ↗

avoiding-angle-bracket-assertions

djankies's avatarfrom djankies

Avoid angle-bracket type assertions (<Type>) and use 'as Type' syntax instead

avoiding-any-types

djankies's avatarfrom djankies

Teaches when and how to use unknown instead of any type in TypeScript. Use when working with TypeScript code that has any types, needs type safety, handling external data, or when designing APIs. Critical for preventing type safety violations.

avoiding-non-null-assertions

djankies's avatarfrom djankies

Avoid non-null assertion operator (!) and use type-safe alternatives instead

diagnosing-type-errors

djankies's avatarfrom djankies

Analyze TypeScript errors and provide detailed diagnostics with root cause analysis and specific fix recommendations

hashing-passwords

djankies's avatarfrom djankies

CRITICAL security skill teaching proper credential and password handling. NEVER store passwords, use bcrypt/argon2, NEVER accept third-party credentials. Use when handling authentication, passwords, API keys, or any sensitive credentials.

refactoring-inline-types

djankies's avatarfrom djankies

Refactor inline types into reusable, well-organized type definitions using interfaces, type aliases, and generics

resolving-type-errors

djankies's avatarfrom djankies

Resolve all TypeScript errors using root cause analysis, targeted fixes, and mandatory validation

reviewing-type-safety

djankies's avatarfrom djankies

Code review skill that checks TypeScript type safety, exported for use by cross-cutting review plugin

sanitizing-user-inputs

djankies's avatarfrom djankies

Sanitizing and validating user input to prevent XSS, injection attacks, and security vulnerabilities in TypeScript applications

using-generics

djankies's avatarfrom djankies

Teaches generic constraints, avoiding any in generic defaults, and mapped types in TypeScript. Use when creating reusable functions, components, or types that work with multiple types while maintaining type safety.

using-runtime-checks

djankies's avatarfrom djankies

Teaches how to validate external data at runtime using Zod and other validation libraries in TypeScript. Use when working with APIs, JSON parsing, user input, or any external data source where runtime validation is needed.

using-type-guards

djankies's avatarfrom djankies

Teaches how to write custom type guards with type predicates and use built-in type narrowing in TypeScript. Use when working with unknown types, union types, validating external data, or implementing type-safe runtime checks.

validating-external-data

djankies's avatarfrom djankies

Validating external data from APIs, JSON parsing, user input, and any untrusted sources in TypeScript applications

validating-type-assertions

djankies's avatarfrom djankies

Teaches when type assertions are safe versus dangerous in TypeScript. Use when considering using 'as' keyword, type casting, or when working with external data that might use assertions instead of proper validation.

configuring-vitest-4

djankies's avatarfrom djankies

Configure Vitest 4.x with correct pool architecture, coverage settings, and multi-project setup. Use when creating or modifying vitest.config files or setting up test infrastructure.

migrating-to-vitest-4

djankies's avatarfrom djankies

Migrate from Vitest 2.x/3.x to 4.x with pool options, coverage config, workspace to projects, and browser mode updates. Use when upgrading Vitest versions or encountering deprecated patterns.

reviewing-vitest-config

djankies's avatarfrom djankies

Review Vitest configuration for deprecated patterns and best practices. Use when reviewing test configuration or vitest setup.

using-browser-mode

djankies's avatarfrom djankies

Set up Vitest browser mode with Playwright or WebDriverIO providers, use page and userEvent APIs, test components. Use when testing browser-specific code or UI components.

writing-vitest-tests

djankies's avatarfrom djankies

Write Vitest tests with describe/test blocks, expect assertions, vi mocking, async testing, and parameterized tests. Use when creating or modifying test files.

customizing-errors

djankies's avatarfrom djankies

Handle Zod validation errors with unified error API, custom messages, error formatting, and user-friendly display

integrating-zod-frameworks

djankies's avatarfrom djankies

Integrate Zod v4 with React Hook Form, Next.js, Express, tRPC, and other frameworks for type-safe validation

migrating-v3-to-v4

djankies's avatarfrom djankies

Complete migration guide from Zod v3 to v4 covering all breaking changes and upgrade patterns

optimizing-performance

djankies's avatarfrom djankies

Optimize Zod validation performance with safeParse, bulk array validation, schema reuse, and passthrough patterns

reviewing-patterns

djankies's avatarfrom djankies

Review Zod schemas for correctness, performance, and v4 best practices