skills/build-skills/dart-sass/SKILL.md
Provides comprehensive guidance for Dart Sass including Sass syntax, compilation, mixins, functions, and best practices. Use when the user asks about Dart Sass, needs to compile Sass to CSS, use Sass features, or work with Sass in projects.
npx skillsauth add teachingai/agent-skills dart-sassInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill whenever the user wants to:
To use Dart Sass:
Install Dart Sass:
examples/getting-started/installation.md for installation instructionsexamples/getting-started/basic-usage.md for basic usage examplesexamples/getting-started/compiling-modes.md for different compilation modesLearn Sass syntax:
examples/syntax/variables.md for variable usageexamples/syntax/nesting.md for nesting syntaxexamples/syntax/mixins.md for mixinsexamples/syntax/functions.md for functionsexamples/syntax/operators.md for operatorsexamples/syntax/at-rules.md for at-rulesUse advanced features:
examples/features/modules.md for module systemexamples/features/imports.md for importsexamples/features/control-flow.md for control flowexamples/features/built-in-modules.md for built-in modulesexamples/features/source-maps.md for source mapsexamples/features/custom-functions.md for custom functionsReference the API documentation when needed:
api/js-api.md - JavaScript API referenceapi/dart-api.md - Dart API referenceapi/cli-api.md - CLI command referenceUse templates for quick start:
templates/basic-project.md - Basic Sass project templatetemplates/modular-project.md - Modular Sass project templatetemplates/build-integration.md - Build tool integration templateexamples/ → https://sass-lang.com/documentation/This skill includes detailed examples organized to match the official documentation structure. All examples are in the examples/ directory (see mapping above).
To use examples:
To use templates:
templates/ directory for common scaffolding# Install
npm install --save-dev sass
# Compile once
npx sass src/styles.scss dist/styles.css
# Watch for changes
npx sass --watch src/styles.scss:dist/styles.css
# Production (compressed)
npx sass src/styles.scss dist/styles.css --style=compressed --no-source-map
// src/styles.scss — using @use module system
@use 'sass:math';
@use './variables' as vars;
.container {
max-width: vars.$max-width;
padding: math.div(vars.$spacing, 2);
}
@mixin responsive($breakpoint) {
@media (min-width: $breakpoint) { @content; }
}
.hero {
font-size: 1.5rem;
@include responsive(768px) {
font-size: 2rem;
}
}
api/js-api.md - JavaScript API for compiling Sass (compile, compileString, etc.)api/dart-api.md - Dart API for compiling Sassapi/cli-api.md - Command-line interface options and usage@import with @use and @forward; update variable references to use namespaces@use path is correct relative to the file; use --load-path for shared directories--watch during development; consider splitting large files into partialsdart-sass, sass, scss, css preprocessor, sass compiler, sass syntax, sass modules, sass mixins, sass functions, sass variables, sass nesting, @use, @forward, @import, @include, @mixin, @function, sass:math, sass:color, sass:string, source maps, sass cli, sass api, 样式预处理器, Sass 编译器, Sass 语法, Sass 模块, Sass 混合, Sass 函数
development
Guidance for Next.js using the official docs at nextjs.org/docs. Use when the user needs Next.js concepts, configuration, routing, data fetching, or API reference details.
tools
Provides comprehensive guidance for Flask framework including routing, templates, forms, database integration, extensions, and deployment. Use when the user asks about Flask, needs to create web applications, implement routes, or build Python web services.
development
Provides comprehensive guidance for FastAPI framework including routing, request validation, dependency injection, async operations, OpenAPI documentation, and database integration. Use when the user asks about FastAPI, needs to create REST APIs, or build high-performance Python web services.
development
Provides comprehensive guidance for Django framework including models, views, templates, forms, admin, REST framework, and deployment. Use when the user asks about Django, needs to create web applications, implement models and views, or build Django REST APIs.