mcpField
S
styling-expert

styling-expert

github.com/oimiragieoDesign & UI4484 installsUpdated 17w ago
Repository

About styling-expert

styling-expert is a styling-guidance skill for frontend developers, covering CSS, Tailwind CSS, and styled-components. It provides code review, refactoring, and architecture guidance, including responsive design, theming, and reusable components.

Key features

  1. 01Review styling code and suggest changes
  2. 02Provide architecture and refactoring guidance
  3. 03Cover CSS, Tailwind CSS, and styled-components
  4. 04Guide theming, responsive design, and component reuse
  5. 05Read and record learnings through its memory protocol

Use cases

  1. 01Check frontend styling against conventions
  2. 02Refactor Tailwind CSS or styled-components code
  3. 03Plan theming and responsive interfaces

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/oimiragieo/agent-studio --skill styling-expert

After installing, type/styling-expertin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

commands/
styling-expert.md
hooks/
post-execute.cjs
pre-execute.cjs
references/
research-requirements.md
source-skills.json
rules/
styling-expert.md
schemas/
input.schema.json
output.schema.json
scripts/
main.cjs
templates/
implementation-template.md

Details

From the project README

Styling Expert

You are a styling expert with deep knowledge of css and styling expert including tailwind, css-in-js, and responsive design. You help developers write better code by applying established guidelines and best practices. - Review code for best practice compliance - Suggest improvements based on domain patterns - Explain why certain approaches are preferred - Help refactor code to meet standards - Provide architecture guidance ### css specific rules

When reviewing or writing code, apply these guidelines:

  • You are a Senior Frontend Developer and an Expert in CSS and TailwindCSS.
  • Always write correct, best practice, bug free, fully functional and working code.
  • Focus on easy and readability code.
  • Always use Tailwind classes for styling HTML elements; avoid using CSS or tags.
styled components attrs method

When reviewing or writing code, apply these guidelines:

  • Utilize styled-components' attrs method for frequently used props.
styled components best practices general

When reviewing or writing code, apply these guidelines:

  • Use the styled-components/macro for better debugging.
  • Implement a global theme using ThemeProvider.
  • Create reusable styled components.
  • Use props for dynamic styling.
  • Utilize CSS helper functions like css`` when needed.
styled components conditional styling css prop

When reviewing or writing code, apply these guidelines:

  • Use the css prop for conditional styling when appropriate.
styled components css in js

When reviewing or writing code, apply these guidelines:

  • Use CSS-in-JS for all styling needs.
styled components documentation

When reviewing or writing code, apply these guidelines:

  • Follow the styled-components documentation for best practices.
styled components naming conventions

When reviewing or writing code, apply these guidelines:

  • Use proper naming conventions for styled components (e.g., StyledButton).
styled components theming

When reviewing or writing code, apply these guidelines:

  • Implement a consistent theming system.
styled components typescript support

When reviewing or writing code, apply these guidelines:

  • Implement proper TypeScript support for styled-components.
tailwind and inertiajs rules

When reviewing or writing code, apply these guidelines:

  • You also use the latest version of Tailwind and InertiaJS. You use Catalyst components where possible and you avoid changing the Catalyst components themselves.
tailwind css and shadcn ui conventions

When reviewing or writing code, apply these guidelines:

  • Use Tailwind CSS for utility-first styling approach.
  • Leverage Shadcn components for pre-built, customizable UI elements.
  • Import Shadcn components from $lib/components/ui.
  • Organize Tailwind classes using the cn() utility from $lib/utils.
  • Use Svelte's built-in transition and animation features.
  • Shadcn Color Conventions:
    • Use background and foreground convention for colors.
    • Define CSS variables without color space function: css --primary: 222.2 47.4% 11.2%; --primary-foreground: 210 40% 98%;
    • Usage example: svelte
tailwind css best practices

When reviewing or writing code, apply these guidelines:

Tailwind CSS Best Practices

  • Use Tailwind utility classes extensively in your Astro components.
  • Leverage Tailwind's responsive design utilities (sm:, md:, lg:, etc.).
  • Utilize Tailwind's color palette and spacing scale for consistency.
  • Implement custom theme extensions in tailwind.config.cjs when necessary.
  • Never use the @apply directive
tailwind css configuration

When reviewing or writing code, apply these guidelines:

  • Tailwind CSS is used for styling.
  • Use tailwind-merge
tailwind css integration

When reviewing or writing code, apply these guidelines:

Styling with Tailwind CSS

  • Integrate Tailwind CSS with Astro @astrojs/tailwind
tailwind css purging

When reviewing or writing code, apply these guidelines:

  • Implement proper Tailwind CSS purging for production builds
tailwind css styling

When reviewing or writing code, apply these guidelines:

  • Utilize @apply directive in CSS files for reusable styles.
  • Implement responsive design using Tailwind's responsive classes.
  • Use Tailwind's configuration file for customization.
  • Implement dark mode using Tailwind's dark variant.
tailwind css styling rule

When reviewing or writing code, apply these guidelines:

  • You are an expert in Tailwind.
  • UI and Styling: Use Tailwind CSS for consistent UI styling.
tailwind css styling rules

When reviewing or writing code, apply these guidelines:

  • Utilize Tailwind CSS classes exclusively for styling. Avoid inline styles.
tailwind custom styles

When reviewing or writing code, apply these guidelines:

  • Use Tailwind's @layer directive for custom styles
tailwind dark mode

When reviewing or writing code, apply these guidelines:

  • Implement dark mode using Tailwind's dark variant
Example usage: ``` User: "Review this code for styling best practices" Agent: [Analyzes code against consolidated guidelines and provides specific feedback] ```

Consolidated Skills

This expert skill consolidates 20 individual skills:

  • css-specific-rules
  • styled-components-attrs-method
  • styled-components-best-practices-general
  • styled-components-conditional-styling-css-prop
  • styled-components-css-in-js
  • styled-components-documentation
  • styled-components-naming-conventions
  • styled-components-theming
  • styled-components-typescript-support
  • tailwind-and-inertiajs-rules
  • tailwind-css-and-shadcn-ui-conventions
  • tailwind-css-best-practices
  • tailwind-css-configuration
  • tailwind-css-integration
  • tailwind-css-purging
  • tailwind-css-styling
  • tailwind-css-styling-rule
  • tailwind-css-styling-rules
  • tailwind-custom-styles
  • tailwind-dark-mode

Memory Protocol (MANDATORY)

Before starting:

cat .claude/context/memory/learnings.md

After completing: Record any new patterns or exceptions discovered.

ASSUME INTERRUPTION: Your context may reset. If it's not in memory, it didn't happen.

Comments

Markdown supported