Token导航 LogoToken导航TokenDH.com
前端设计执行命令github未标认证来源可访问clear审计通过

dart-sass飞镖萨斯

Agent Skill

dart-sass 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,198

周安装

48

GitHub Stars

347

下载量

388
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:dart-sass(飞镖萨斯)
来源仓库:https://github.com/teachingai/full-stack-skills
仓库路径:skills/dart-sass
安装命令:
npx skills add https://github.com/teachingai/full-stack-skills --skill dart-sass
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/teachingai/full-stack-skills --skill dart-sass

简介

dart-sass 提供 Sass/SCSS 编译能力,支持变量、嵌套、混入等高级 CSS 预处理功能。

  • 适用于前端项目样式开发、构建系统集成或需要将 Sass 输出为 CSS 的场景。
  • 支持 source map 生成、watch 模式与 CLI 命令调用,可与 Dart/Flutter 工程无缝协作。
  • 使用前请确认已安装 Dart Sass 或通过 npm 获取 sass 二进制,并配置好编译路径。
  • 涉及生产部署时应启用压缩选项,避免未优化样式文件拖慢页面加载速度。

SKILL.md

When to use this skill

Use this skill whenever the user wants to:

  • Install and configure Dart Sass
  • Compile Sass/SCSS files to CSS
  • Use Sass syntax features (variables, nesting, mixins, functions, etc.)
  • Work with Sass modules and imports
  • Integrate Sass into build tools or workflows
  • Use Sass CLI commands
  • Configure Sass compilation options
  • Use Sass in JavaScript or Dart projects
  • Optimize Sass compilation performance
  • Handle Sass source maps

How to use this skill

To use Dart Sass:

  1. Install Dart Sass:

- Load examples/getting-started/installation.md for installation instructions - Load examples/getting-started/basic-usage.md for basic usage examples - Load examples/getting-started/compiling-modes.md for different compilation modes

  1. Learn Sass syntax:

- Load examples/syntax/variables.md for variable usage - Load examples/syntax/nesting.md for nesting syntax - Load examples/syntax/mixins.md for mixins - Load examples/syntax/functions.md for functions - Load examples/syntax/operators.md for operators - Load examples/syntax/at-rules.md for at-rules

  1. Use advanced features:

- Load examples/features/modules.md for module system - Load examples/features/imports.md for imports - Load examples/features/control-flow.md for control flow - Load examples/features/built-in-modules.md for built-in modules - Load examples/features/source-maps.md for source maps - Load examples/features/custom-functions.md for custom functions

  1. Reference the API documentation when needed:

- api/js-api.md - JavaScript API reference - api/dart-api.md - Dart API reference - api/cli-api.md - CLI command reference

  1. Use templates for quick start:

- templates/basic-project.md - Basic Sass project template - templates/modular-project.md - Modular Sass project template - templates/build-integration.md - Build tool integration template

Doc mapping (one-to-one with official documentation)

Examples and Templates

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:

  • Identify the topic from the user's request
  • Load the appropriate example file from the mapping above
  • Follow the instructions, syntax, and best practices in that file
  • Adapt the code examples to your specific use case

To use templates:

  • Reference templates in templates/ directory for common scaffolding
  • Adapt templates to your specific needs and coding style

Inline Quick Start

# 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 Reference

  • JavaScript API: api/js-api.md - JavaScript API for compiling Sass (compile, compileString, etc.)
  • Dart API: api/dart-api.md - Dart API for compiling Sass
  • CLI API: api/cli-api.md - Command-line interface options and usage

Best Practices

  1. Use @use instead of @import: The @import rule is deprecated, use @use and @forward instead
  2. Organize with modules: Use the module system to organize and share code
  3. Optimize compilation: Use appropriate output style (compressed for production)
  4. Source maps: Enable source maps for development, disable for production
  5. Watch mode: Use --watch for development to automatically recompile on changes
  6. Load paths: Use --load-path to simplify import paths
  7. Performance: Use Dart Sass for best performance (faster than Ruby Sass)
  8. Version control: Don't commit compiled CSS files, only commit Sass source files

Troubleshooting

  • @import deprecation warning: Replace @import with @use and @forward; update variable references to use namespaces
  • Compilation errors: Check for missing semicolons, unmatched braces, or invalid nesting
  • Missing module: Verify @use path is correct relative to the file; use --load-path for shared directories
  • Slow compilation: Use --watch during development; consider splitting large files into partials

Resources

Keywords

dart-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 函数

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

29.16%
按下载量换算113

Antigravity

20.43%
按下载量换算79

Gemini CLI

17.81%
按下载量换算69

OpenCode

13.47%
按下载量换算52

trae

7.03%
按下载量换算27

windsurf

3.29%
按下载量换算13

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/teachingai/full-stack-skills --skill dart-sass;npx skills add teachingai/full-stack-skills --skill "dart-sass" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills