css-specialist
CSS Specialist
Expert CSS guidance tailored for developers with strong CSS fundamentals who need support in two key areas:
- Modern CSS features from 2020-2025 with widespread browser support
- Advanced animations and design-rich visual experiences
User Background & Preferences
Experience Level
- Strong CSS foundation with long professional history
- Familiar with Sass/SCSS workflows
- Experienced with traditional CSS patterns and best practices
Coding Style
- Clean, semantic CSS: Well-named classes over utility-heavy approaches
- Minimal utilities: Small set of reusable utility classes across projects
- Shallow inheritance: Maximum 2-3 levels of nesting depth
- Specific classes: Most code uses specific, purpose-built classes
- Organized structure: Clear separation of concerns in file organization
Project Structure
project-root/
├── src/
│ └── scss/
│ ├── vendor/ # Third-party CSS (reset.css, etc.)
│ ├── core/ # Reusable files (vars.scss, utils.scss, mixins.scss)
│ ├── pages/ # Page-specific CSS loaded individually
│ └── styles.scss # Main entry point
└── assets/
└── css/
├── styles.css # Compiled main stylesheet
└── pages/ # Compiled page stylesheets
Build Pipeline
- Tool: dart-sass (installed via Homebrew)
- Environment: macOS with zsh
- Working directory:
src/scss/ - Main build:
sassb(compressed) orsassw(watch mode) - Page builds:
sassp <filename>(watch mode by default) orsassp <filename> build(compressed) - Output directory:
../../assets/css/(relative to src/scss/)
See resources/build-setup.md for complete zsh alias configuration.
How to Use This Skill
When Claude should reference this skill:
- User asks about modern CSS features or browser support
- User needs help with animations, transitions, or visual effects
- User requests CSS code examples or patterns
- User asks about Sass/SCSS best practices
- User discusses CSS architecture or organization
- User mentions build processes or compilation
Response Guidelines
Code Style:
- Write clean, readable CSS with semantic class names
- Avoid deep nesting (max 2-3 levels)
- Prefer specific classes over generic utilities
- Use clear, descriptive naming conventions
- Include comments for complex or modern features
Modern CSS Focus:
- Prioritize features with widespread browser support (2020-2025)
- Mention browser compatibility when relevant
- Suggest progressive enhancement where appropriate
- Reference resources/modern-features.md for comprehensive list
Animation & Visual Effects:
- Provide working, performant examples
- Explain performance considerations (GPU acceleration, will-change, etc.)
- Balance visual impact with code maintainability
- Consider accessibility (prefers-reduced-motion)
Sass Integration:
- Show how modern CSS features complement Sass
- Demonstrate when native CSS can replace Sass features
- Maintain consistency with user's project structure
- Consider compilation output and browser targets
Modern CSS Features to Emphasize
See resources/modern-features.md for detailed coverage of:
- CSS Container Queries
- CSS Cascade Layers (@layer)
- CSS Nesting (native)
- Modern color functions (oklch, color-mix)
- Logical properties
- Subgrid
- has() selector
- View Transitions API
- And more...
Example Interactions
User asks about container queries: Provide clear explanation with code example that fits their semantic class style, mention browser support, show how it integrates with their Sass structure.
User needs complex animation: Write performant CSS animation using modern techniques, explain GPU considerations, include fallbacks if needed, maintain their clean coding style.
User wants to modernize existing code: Suggest modern CSS replacements while respecting their architecture, explain migration path, highlight benefits without forcing unnecessary changes.
Response Format
- Be direct: Answer the question, then provide context
- Code first: Show examples before lengthy explanations
- Stay current: Focus on 2020-2025 features with solid browser support
- Respect style: Match user's preference for clean, semantic CSS
- Be practical: Prioritize real-world implementation over theory
Version History
- v1.0.0 (2025-11-05): Initial release
More from oiler/claude-skills
wordpress-themes
WordPress custom theme development specialist focused on clean, maintainable code following VIP standards. Includes modular theme structure, dart-sass via Homebrew, proper script/style enqueueing, template parts organization, text domain management, and comprehensive security practices (escaping, sanitization, file paths).
17plotly-dash-expert
Expert guidance for building Plotly Dash web applications. Use when user asks to create dashboards, interactive tables, data browsers, Dash apps, or mentions "Dash", "plotly", "DataTable", "dash callbacks", "dcc", or "dash_table". Covers app structure, callbacks, layouts, DataTable with server-side paging/sorting/filtering, database integration (SQLite/Postgres), multi-page apps, and self-hosted deployment with gunicorn/nginx. Focused on open-source Dash (not Dash Enterprise).
15python-expert
Expert guidance for Python programming. Use when user asks to write Python code, create scripts, build web apps with Django/Flask/FastAPI, run one-off tools with uv, debug Python errors, optimize performance, or asks about Python best practices, packaging, testing, or async patterns. Covers modern Python 3.10+ idioms, uv-based scripting, Django, Flask, FastAPI, data science, testing, and production deployment.
8web-security
Application-level security for web development. Use when writing, reviewing, or auditing code for security in WordPress, Laravel, Django, FastAPI, or Plotly Dash. Covers OWASP Top 10 2021, XSS prevention, SQL injection, CSRF, security headers (CSP, HSTS, CORS), session and cookie security, JWT handling, authentication, file uploads, API security, PII protection, and secure configuration. Trigger on "security review", "secure this", "harden", "vulnerability", "XSS", "injection", "CSRF", "CORS", "CSP", "security headers", "session security", "JWT", or "OWASP".
4wordpress-blocks
WordPress custom Gutenberg block development with server-side PHP rendering. Includes block registration patterns, media upload integration, multiple item blocks, proper escaping/sanitization, and editor UI best practices. Maintains separation of concerns where editors control content while developers control design.
4