What are Agent Skills?
Skills are procedural knowledge packages that enhance AI agents’ ability to accomplish specific tasks more effectively. Think of them as plugins or extensions that provide:- Domain-specific best practices
- Framework-specific patterns
- Performance optimization rules
- Security guidelines
- Common gotchas and solutions
Learn more at skills.sh/docs
Pre-configured Skills
TailStack includes three production-tested skills:Vercel React
57 performance optimization rules across 8 categories
Node.js Backend
Scalable backend patterns and best practices
Tailwind + Shadcn
Tailwind v4 + shadcn/ui production stack
1. Vercel React Best Practices
Maintained by Vercel, this skill contains 57 rules across 8 categories prioritized by impact to guide automated refactoring and code generation.Categories by Priority
| Priority | Category | Impact | Rules |
|---|---|---|---|
| 1 | Eliminating Waterfalls | CRITICAL | 5 |
| 2 | Bundle Size Optimization | CRITICAL | 5 |
| 3 | Server-Side Performance | HIGH | 7 |
| 4 | Client-Side Data Fetching | MEDIUM-HIGH | 4 |
| 5 | Re-render Optimization | MEDIUM | 12 |
| 6 | Rendering Performance | MEDIUM | 9 |
| 7 | JavaScript Performance | LOW-MEDIUM | 12 |
| 8 | Advanced Patterns | LOW | 3 |
Example Rules
Critical: Eliminating Waterfalls
Critical: Eliminating Waterfalls
Problem: Sequential
await operations create network waterfalls.Critical: Bundle Size Optimization
Critical: Bundle Size Optimization
Problem: Barrel file imports load entire libraries.
High: Server-Side Performance
High: Server-Side Performance
Rule: Use
React.cache() for per-request deduplication.When to Use
- Writing new React components or Next.js pages
- Implementing data fetching (client or server-side)
- Reviewing code for performance issues
- Refactoring existing React/Next.js code
- Optimizing bundle size or load times
2. Node.js Backend Patterns
Comprehensive guidance for building scalable, maintainable, and production-ready Node.js backend applications.Covered Topics
Layered Architecture
Controllers, Services, Repositories pattern
Middleware Patterns
Authentication, validation, rate limiting, logging
Error Handling
Custom error classes and global error handlers
Database Integration
PostgreSQL, MongoDB, transactions, connection pooling
Authentication
JWT, refresh tokens, bcrypt password hashing
Caching Strategies
Redis integration, cache decorators, TTL management
Example Patterns
Layered Architecture
Layered Architecture
Controller Layer (HTTP handling):Service Layer (Business logic):Repository Layer (Data access):
Authentication Middleware
Authentication Middleware
When to Use
- Building REST APIs or GraphQL servers
- Creating microservices with Node.js
- Implementing authentication and authorization
- Designing scalable backend architectures
- Setting up middleware and error handling
- Integrating databases (SQL and NoSQL)
3. Tailwind v4 + shadcn/ui Production Stack
Enables AI agents to correctly generate, modify, and work with components from shadcn/ui and Tailwind CSS v4.Key Features
- 4-Step Architecture: CSS variables → Tailwind mapping → base styles → automatic dark mode
- Prevents 8 Documented Errors: Common pitfalls and their solutions
- Production-Tested: Used in WordPress Auditor and other live projects
- Tailwind v4 Specific: Handles breaking changes from v3
The Four-Step Pattern
Common Errors Prevented
Error #1: tw-animate-css Import Error
Error #1: tw-animate-css Import Error
Error: “Cannot find module ‘tailwindcss-animate’”Cause: shadcn/ui deprecated
tailwindcss-animate for v4.Solution:Error #2: Colors Not Working
Error #2: Colors Not Working
Error:
bg-primary doesn’t apply stylesCause: Missing @theme inline mappingSolution: Add theme mapping block:Error #3: Build Fails with tailwind.config.ts
Error #3: Build Fails with tailwind.config.ts
Error: “Unexpected config file”Cause: v4 doesn’t use v4 configuration happens in CSS using
tailwind.config.ts (v3 legacy)Solution:@theme directive.When to Use
- Initializing React projects with Tailwind v4
- Fixing color issues or dark mode bugs
- Migrating from Tailwind v3 to v4
- Setting up shadcn/ui components
- Implementing theme switching
Supported AI Agents
TailStack includes skill configurations for:Gemini
.agents/ directoryClaude
.claude/ directoryCodex
.codex/ directoryCursor
.cursor/ directoryOpenCode
.opencode/ directoryTrae
.trae/ directorySkill Directory Structure
Using Skills with AI Agents
Claude Desktop
Claude automatically reads.claude/skills/ directories:
Cursor
Cursor reads.cursor/skills/ and applies patterns in real-time:
- Suggest optimizations while coding
- Auto-complete with best practices
- Refactor code following patterns
OpenCode
OpenCode integrates skills from.opencode/skills/:
Best Practices
Keep Skills Updated
Periodically update skill repositories to get latest patterns
Reference Official Docs
Skills complement but don’t replace official documentation
Customize for Your Stack
Fork skills and adapt them to your specific needs
Share Learnings
Contribute improvements back to skill repositories