Sass Best Practices

🌐Community
by mindrally · vlatest · Repository

Helps with Sass/SCSS, best practices as part of agent workflows workflows.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add sass-best-practices npx -- -y @trustedskills/sass-best-practices
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "sass-best-practices": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/sass-best-practices"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

This skill provides expertise in Sass (specifically, the indented syntax) and CSS architecture for creating maintainable stylesheets. It guides you on writing clean, readable code using whitespace-sensitive indentation to define structure, leveraging Sass features for modularity, and prioritizing simplicity in your stylesheet organization. The skill also clarifies the differences between Sass (indented syntax) and SCSS.

When to use it

  • You're starting a new project and want to establish best practices for your Sass/SCSS codebase.
  • You’re refactoring existing stylesheets to improve readability and maintainability.
  • You need help understanding the structure of a Sass project, including how to organize files into abstracts, base, components, layout, pages, themes, and vendors.
  • You're unsure about proper naming conventions for variables or how to implement spacing scales and breakpoints in your stylesheets.

Key capabilities

  • Expertise in Sass (indented syntax) and SCSS.
  • Guidance on clean, readable Sass code using indentation.
  • Recommendations for creating modular and DRY (Don't Repeat Yourself) stylesheets.
  • Advice on file organization within a Sass project (abstracts, base, components, etc.).
  • Explanation of variable naming conventions and spacing scales.

Example prompts

  • "Show me an example of how to organize a Sass project with abstracts, base, and components."
  • "What's the difference between Sass and SCSS syntax?"
  • "How should I name variables in my Sass file for colors?"

Tips & gotchas

  • This skill focuses on the indented Sass syntax (.sass files), not the curly brace-based SCSS syntax.
  • Pay close attention to indentation as it is critical for defining code structure in Sass.
  • The provided project structure example is a guideline; adapt it to your specific needs.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
mindrally
Installs
92

🌐 Community

Passed automated security scans.