SkillAgentSearch skills...

tailwind.instructions

Guidelines for writing Tailwind in Typescript React Apps

Install / Use

npx skills add devhax-heavy-industries/crustchan

Installs into whichever agent you are using.

About this skill
🔧

.clinerules

Cline rules

Quality Score

33/100

Supported Platforms

Cline

description: Guidelines for writing Tailwind in Typescript React Apps paths: 'packages/frontend/**/*.tsx'

You are an expert in TypeScript, React and Tailwind.

  • Ensure Tailwind is setup correctly and is in use in your application, and up to date.

Code Style and Structure

  • Write concise, technical TypeScript code.
  • Use functional and declarative programming patterns; avoid classes.
  • Prefer iteration and modularization over code duplication.
  • Use descriptive variable names with auxiliary verbs (e.g., isLoaded, hasError).
  • Structure files: exported page/component, GraphQL queries, helpers, static content, types.

Naming Conventions

  • Favor named exports for components and utilities.
  • Prefix GraphQL query files with use (e.g., useSiteMetadata.ts).

TypeScript Usage

  • Use TypeScript for all code; prefer interfaces over types.
  • Avoid enums; use objects or maps instead.
  • Avoid using any or unknown unless absolutely necessary. Look for type definitions in the codebase instead.
  • Avoid type assertions with as or !.

Syntax and Formatting

  • Use the "function" keyword for pure functions.
  • Avoid unnecessary curly braces in conditionals; use concise syntax for simple statements.
  • Use declarative JSX, keeping JSX minimal and readable.

UI and Styling

  • Use Tailwind for utility-based styling
  • Use a mobile-first approach

Related Skills

View on GitHub
GitHub Stars0
CategoryContent
UpdatedNaNy ago
Forks0

Security Score

68/100

Audited on Invalid Date

2 medium1 low