diegosouzapw/awesome-omni-skill/libraries-dependencies-mastery

Claude Code and agent skill by diegosouzapw/awesome-omni-skill

Trust tier 2
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"},{"type":"config","description":"Configuration overrides"},{"type":"plugin","description":"Custom plugin integration"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Complete mastery of essential modern web development libraries and dependencies. Cover Next.js, React, TypeScript, Tailwind CSS, Firebase, Zustand, redux-toolkit, react-hook-form, Zod, shadcn/ui, lucide-react, Stripe, and more. Learn setup, integration patterns, advanced usage, performance optimization, troubleshooting, common pitfalls, and version management. Includes quick reference guides, in-depth tutorials, complete examples for e-commerce and SaaS, configuration files, type definitions, error handling, and production patterns. Master how libraries work together and solve real-world challenges.

Install

npx vskill@latest install diegosouzapw/awesome-omni-skill/libraries-dependencies-mastery

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as diegosouzapw/awesome-omni-skill/libraries-dependencies-mastery.

Libraries & Dependencies Mastery

Overview

You are an expert in modern web development libraries and their integration. This skill provides complete mastery of the essential libraries powering modern full-stack applications: Next.js, React, TypeScript, Tailwind CSS, Firebase, State Management (Zustand, Redux Toolkit), Forms (react-hook-form, Zod), UI/UX (shadcn/ui, lucide-react), and Payments (Stripe). Learn setup, configuration, integration patterns, advanced usage, performance optimization, troubleshooting, version management, and common pitfalls.

Core Library Mastery

1. Next.js 13+ Complete Mastery

Setup & Configuration:

  • Installation and project initialization
  • tsconfig.json configuration for strict TypeScript
  • next.config.js customization
  • Environment variables (.env, .env.local, .env.production)
  • Path aliases (@/ imports)
  • Monorepo setup with workspaces

App Router (Next.js 13+):

  • File-based routing structure
  • Route segments and dynamic routes ([id], [...slug])
  • Route groups and layouts ((auth), (dashboard))
  • Parallel routes and intercepting routes
  • Loading states and error boundaries
  • Not found and error.js pages
  • Middleware and request handling
  • Route handlers (GET, POST, PUT, DELETE, PATCH)
  • Server Components vs Client Components
  • Suspense and streaming
  • Data fetching patterns (fetch, cache tags)
  • Revalidation strategies (ISR, on-demand)

Performance Optimization:

  • Image optimization with next/image
  • Font optimization
  • Script optimization and loading strategies
  • Dynamic imports with React.lazy
  • Code splitting and bundle analysis
  • CSS optimization and minification
  • Compression and gzip
  • CDN configuration

Common Pitfalls & Solutions:

  • Hydration mismatches (Server vs Client)
  • Using client-only features in Server Components
  • Incorrect caching strategies
  • Image optimization issues
  • Font loading performance
  • Dynamic routes not rendering statically
  • Environment variable scope

Troubleshooting Guide:

Issue: "Cannot find module" in builds
Solution: Check tsconfig paths, clear .next folder, rebuild
Issue: Hydration mismatch error
Solution: Use dynamic imports, wrap client code, check useEffect
Issue: Images not optimizing
Solution: Use next/image, configure domains, check sizes
Issue: Build time too long
Solution: Analyze with `next/bundle-analyzer`, use dynamic imports
Issue: Environment variables undefined
Solution: Prefix with NEXT_PUBLIC_ for client, restart dev server

Version Management:

  • Upgrading from Pages Router to App Router
  • Breaking changes between versions
  • Migration guides
  • Beta features and deprecations
  • Staying updated with releases

2. React 18+ Complete Mastery

Hooks Deep Dive:

  • useState: State management, state updates, batching
  • useEffect: Side effects, cleanup, dependencies, common pitfalls
  • useContext: Context creation, avoiding prop drilling
  • useReducer: Complex state logic, reducer patterns
  • useCallback: Memoization, dependency arrays
  • useMemo: Expensive computations, memory management
  • useRef: DOM access, persistent values, .current
  • useLayoutEffect: DOM layout measurements
  • useTransition: Concurrent rendering, isPending state
  • useDeferredValue: Value debouncing, input optimization
  • useId: Unique identifiers, accessibility
  • useImperativeHandle: Custom instance values

Component Patterns:

  • Functional components with hooks
  • Custom hooks development and reusability
  • Compound components
  • Render props pattern
  • Higher-order components
  • Provider pattern
  • Controlled vs uncontrolled components
  • Composition over inheritance

Performance Optimization:

  • React.memo for preventing rerenders
  • useCallback with dependencies
  • useMemo for expensive operations
  • Lazy loading with React.lazy and Suspense
  • Code splitting strategies
  • List rendering with keys (importance of stable keys)
  • Avoiding unnecessary renders
  • Profiler API for performance measurement

Concurrent Features:

  • Suspense boundaries
  • useTransition for non-blocking updates
  • useDeferredValue for value debouncing
  • Streaming and progressive rendering
  • Automatic batching of state updates

Common Pitfalls & Solutions:

  • Missing dependency in useEffect
  • Stale closures in hooks
  • Memory leaks in useEffect
  • Infinite loops with useEffect
  • Using hooks conditionally
  • Not returning cleanup functions
  • Incorrect memo dependencies
  • State batching confusion

Troubleshooting Guide:

Issue: Infinite loop in useEffect
Solution: Check dependencies, add return cleanup function
Issue: Stale state in callback
Solution: Include state in dependencies or use useCallback
Issue: Memory leak warning
Solution: Add cleanup function to useEffect, unsubscribe
Issue: Component rerending unnecessarily
Solution: Use React.memo, useCallback, useMemo
Issue: Hydration error with useId
Solution: Use proper key prop, wrap in Suspense

3. TypeScript Complete Mastery

Fundamentals:

  • Primitive types (string, number, boolean, null, undefined)
  • Union types and intersection types
  • Type literals and literal types
  • Enums and const assertions
  • Type aliases vs interfaces
  • Extending types and interfaces
  • Optional properties (?) and nullish coalescing (??)

Advanced Types:

  • Generic types and constraints
  • Conditional types (extends ? :)
  • Mapped types (Record, Partial, Required, etc.)
  • Utility types (Pick, Omit, Exclude, Extract, etc.)
  • Discriminated unions for exhaustive checking
  • Type guards and type predicates (is keyword)
  • Const type parameters
  • Template literal types

React + TypeScript:

  • Component prop typing
  • Event handler typing
  • Ref typing with Ref<HTMLInputElement>
  • useState with initial values and TypeScript
  • useReducer with typed actions
  • useContext with typed values
  • Custom hook typing
  • Children prop typing

Common Patterns:

typescript
// Discriminated union
type Action =
| { type: 'ADD'; payload: Item }
| { type: 'REMOVE'; payload: string };
// Generic component
function List<T extends { id: string }>(props: { items: T[] }) {}
// Type guard
function isString(value: unknown): value is string {
return typeof value === 'string';
}
// Utility type usage
type User = { name: string; age: number; email: string };
type UserPreview = Pick<User, 'name' | 'age'>;

Configuration:

  • tsconfig.json strict mode
  • CompilerOptions for strict type checking
  • Path mapping and aliases
  • Module resolution settings
  • Declaration file generation

Common Pitfalls & Solutions:

  • Type inference failures
  • Type assertion misuse
  • Any type overuse
  • Incorrect generic constraints
  • Missing type definitions
  • Circular type dependencies

Troubleshooting Guide:

Issue: Type 'X' is not assignable to type 'Y'
Solution: Check property names, use type assertion carefully, review interfaces
Issue: Cannot find name 'X'
Solution: Check imports, verify tsconfig paths, check node_modules
Issue: Property 'X' doesn't exist on type 'Y'
Solution: Check types, update interfaces, verify external package types
Issue: Generic type 'T' is too complex
Solution: Add constraints, break into simpler types, use keyof

4. Tailwind CSS Complete Mastery

Core Concepts:

  • Utility-first CSS methodology
  • JIT (Just-In-Time) compilation
  • Responsive design with breakpoints (sm, md, lg, xl, 2xl)
  • Hover, focus, and other state variants
  • Dark mode implementation (class and prefers-color-scheme)
  • Custom configuration (colors, spacing, fonts)
  • Arbitrary values ([width: 343px])
  • CSS layers and specificity

Configuration & Customization:

javascript
// tailwind.config.ts
import type { Config } from 'tailwindcss'
export default {
content: [
'./app/**/*.{js,ts,jsx,tsx}',
'./components/**/*.{js,ts,jsx,tsx}',
],
theme: {
extend: {
colors: {
primary: '#your-color',
},
spacing: {
'128': '32rem',
},
},
},
plugins: [],
} satisfies Config

Advanced Patterns:

  • Responsive design strategies
  • Component extraction with @apply
  • Conditional styling with clsx/classnames
  • Dark mode toggling
  • Custom plugins
  • CSS variables integration
  • Animation and transition utilities
  • Theme switching with CSS custom properties

Performance Optimization:

  • Purging unused styles in production
  • Content configuration for tree-shaking
  • CSS size analysis
  • Critical CSS inline optimization
  • Lazy loading stylesheets
  • CSS compression

Common Pitfalls & Solutions:

  • Utility conflicts and specificity issues
  • Unresponsive images with Tailwind sizing
  • Dark mode not working properly
  • Build process including unused classes
  • Custom color not applying
  • Conflicting CSS and Tailwind classes

Troubleshooting Guide:

Issue: Styles not applying in production
Solution: Check content paths, rebuild, check purge config
Issue: Dark mode not toggling
Solution: Set darkMode: 'class' in config, add class to html
Issue: Custom colors not available
Solution: Update tailwind.config.ts theme.extend.colors
Issue: Build size too large
Solution: Verify content paths, use JIT, remove unused plugins
Issue: Responsive styles not working
Solution: Use correct breakpoint prefix (sm:, md:), check cascade

5. Firebase Complete Mastery

Setup & Configuration:

typescript
// lib/firebase.ts
import { initializeApp } from 'firebase/app';
import { getAuth } from 'firebase/auth';
import { getFirestore } from 'firebase/firestore';
import { getStorage } from 'firebase/storage';
const firebaseConfig = {
apiKey: process.env.NEXT_PUBLIC_FIREBASE_API_KEY,
authDomain: process.env.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN,
projectId: process.env.NEXT_PUBLIC_FIREBASE_PROJECT_ID,
storageBucket: process.env.NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET,
messagingSenderId: process.env.NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID,
appId: process.env.NEXT_PUBLIC_FIREBASE_APP_ID,
};
const app = initializeApp(firebaseConfig);
export const auth = getAuth(app);
export const db = getFirestore(app);
export const storage = getStorage(app);

Authentication:

  • Email/password signup and signin
  • OAuth providers (Google, GitHub, Facebook)
  • User profile management
  • Custom claims for authorization
  • Session persistence
  • Token refresh and expiration
  • MFA setup and verification
  • Anonymous authentication

Firestore Database:

  • Collection references and document references
  • CRUD operations (create, read, update, delete)
  • Real-time listeners with cleanup
  • Batch writes and transactions
  • Query operations (where, orderBy, limit)
  • Pagination with startAt/endAt
  • Subcollections vs root collections
  • Data modeling and normalization

Cloud Storage:

  • File upload with progress tracking
  • Download URLs and signed URLs
  • File deletion and management
  • Access control and security rules
  • Image optimization strategies
  • Resumable uploads for large files

Offline Persistence:

  • Local caching configuration
  • Sync with server on reconnection
  • Offline-first strategies
  • Conflict resolution

Common Pitfalls & Solutions:

  • Security rules blocking access
  • Missing .onSnapshot cleanup
  • Querying with unstable data
  • Creating too many subcollections
  • Not validating data before writes
  • Inconsistent authentication state
  • Storage rules preventing uploads

Troubleshooting Guide:

Issue: "Permission denied" errors
Solution: Check Security Rules, verify auth state, check custom claims
Issue: onSnapshot not updating
Solution: Verify listener attached, check firestore rules, cleanup properly
Issue: File upload failing
Solution: Check storage rules, verify file path, check bucket permissions
Issue: Auth state undefined on refresh
Solution: Wait for onAuthStateChanged before rendering, use loading state
Issue: Realtime listener consuming quota
Solution: Limit listeners, use oncemore, implement cleanup

6. State Management: Zustand & Redux Toolkit

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
39
Repository forks
13
7-day trend score
18

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 10 May 2026, 6 months ago.

Extension points

  • hookPre/post lifecycle hooks
  • configConfiguration overrides
  • pluginCustom plugin integration

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/diegosouzapw/awesome-omni-skill/libraries-dependencies-mastery/badge)](https://verified-skill.com/skills/diegosouzapw/awesome-omni-skill/libraries-dependencies-mastery)

Something wrong with this skill or its page? Tell us.