Token导航 LogoToken导航

Agent Skill · 研究检索

faststore-theming(快速商店主题)

faststore-theming 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

faststore-theming 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 51,212。

总安装 588周安装 24GitHub Stars 25下载 188核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/vtex/skills --skill faststore-theming

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

faststore-theming 提供 FastStore 店面视觉样式的统一调整与设计令牌管理支持。适用于在 Codex、Claude、Cursor、Gemini CLI 中修改颜色、字体、间距与组件局部样式。

所有样式定义应存放于 src/themes/ 或通过 custom-theme.scss 引入,保持主题可复用性。组件行为或逻辑变更应使用 faststore-overrides 技能,避免在此混入 JavaScript 代码。建议使用 [data-fs-*] 属性定位元素,替代直接类名选择器以保证未来兼容性。

来源仓库内路径:skills/faststore-theming

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/vtex/skills --skill faststore-theming;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

faststore-theming 怎么安装?

在终端执行 npx skills add https://github.com/vtex/skills --skill faststore-theming。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

faststore-theming 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

faststore-theming 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

faststore-theming 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

faststore-theming 用的人多吗?

公开数据是累计安装 588 次,近一周安装 24 次,下载 188 次,GitHub 25 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

faststore-theming 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
faststore-theming

快速商店主题 · 本页

58825需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

FastStore Theming & Design Tokens

When this skill applies

Use this skill when:

  • You need to change the visual appearance of a FastStore storefront — colors, typography, spacing, borders, or component-specific styles.
  • You are working with files in src/themes/ or creating custom-theme.scss.
  • You need to customize individual component styles using local tokens and [data-fs-*] data attributes.
  • You are setting up a brand identity on top of the Brandless default theme.

Do not use this skill for:

  • Changes that require replacing a component, injecting logic, or modifying behavior — use the faststore-overrides skill.
  • Client-side state management — use the faststore-state-management skill.
  • Data fetching or API extensions — use the faststore-data-fetching skill.

Decision rules

  • Use theming as the first approach before considering overrides — it is lighter and more maintainable.
  • Use global tokens (:root scope) when the change should propagate store-wide (e.g., brand colors, font families).
  • Use local tokens ([data-fs-*] scope) when the change applies to a single component (e.g., button background color).
  • Use [data-fs-*] data attributes to target components — never use .fs-* class names or generic tag selectors.
  • Place all theme files in src/themes/ with custom-theme.scss as the entry point — files elsewhere are not discovered.
  • Reference design tokens via var(--fs-*) instead of hardcoding hex colors, pixel sizes, or font values.
  • Use CSS modules for custom (non-FastStore) components to avoid conflicting with FastStore's structural styles.

Hard constraints

Constraint: Use Design Tokens — Not Inline Styles

MUST use design tokens (global or local) to style FastStore components. MUST NOT use inline style={} props on FastStore components for theming purposes.

Why this matters Inline styles bypass the design token hierarchy, cannot be overridden by themes, do not participate in responsive breakpoints, and create maintenance nightmares. They also defeat CSS caching since styles are embedded in HTML. Design tokens ensure consistency and allow store-wide changes from a single file.

Detection If you see style={{ or style={ on FastStore native components (components imported from @faststore/ui or @faststore/core) → warn that this bypasses the theming system. Suggest using design tokens or CSS modules instead. Exception: inline styles are acceptable on fully custom components that are not part of the FastStore UI library.

Correct

// src/themes/custom-theme.scss
// Override the BuyButton's primary background color using design tokens
[data-fs-buy-button] {
  --fs-button-primary-bkg-color: #e31c58;
  --fs-button-primary-bkg-color-hover: #c4174d;
  --fs-button-primary-text-color: var(--fs-color-text-inverse);

  [data-fs-button-wrapper] {
    border-radius: var(--fs-border-radius-pill);
  }
}

Wrong

// WRONG: Using inline styles on a FastStore component
import { BuyButton } from '@faststore/ui'

function ProductActions() {
  return (
    <BuyButton
      style={{ backgroundColor: '#e31c58', color: 'white', borderRadius: '999px' }}
    >
      Add to Cart
    </BuyButton>
  )
  // Inline styles bypass the design token hierarchy.
  // They cannot be changed store-wide from the theme file.
  // They do not respond to dark mode or other theme variants.
}

Constraint: Place Theme Files in src/themes/

MUST place custom theme SCSS files in the src/themes/ directory. The primary theme file must be named custom-theme.scss.

Why this matters FastStore's build system imports theme files from src/themes/custom-theme.scss. Files placed elsewhere will not be picked up by the build and your token overrides will have no effect. There will be no error — the default Brandless theme will render instead.

Detection If you see token override declarations (variables starting with --fs-) in SCSS files outside src/themes/ → warn that these may not be applied. If the file src/themes/custom-theme.scss does not exist in the project → warn that no custom theme is active.

Correct

// src/themes/custom-theme.scss
// Global token overrides — applied store-wide
:root {
  --fs-color-main-0: #003232;
  --fs-color-main-1: #004c4c;
  --fs-color-main-2: #006666;
  --fs-color-main-3: #008080;
  --fs-color-main-4: #00b3b3;

  --fs-color-accent-0: #e31c58;
  --fs-color-accent-1: #c4174d;
  --fs-color-accent-2: #a51342;

  --fs-text-face-body: 'Inter', -apple-system, system-ui, BlinkMacSystemFont, sans-serif;
  --fs-text-face-title: 'Poppins', var(--fs-text-face-body);

  --fs-text-size-title-huge: 3.5rem;
  --fs-text-size-title-page: 2.25rem;
}

// Component-specific token overrides
[data-fs-price] {
  --fs-price-listing-color: #cb4242;
}

Wrong

// src/styles/my-theme.scss
// WRONG: This file is in src/styles/, not src/themes/
// FastStore will NOT import this file. Token overrides will be ignored.
:root {
  --fs-color-main-0: #003232;
  --fs-color-accent-0: #e31c58;
}

// Also WRONG: Creating a theme in the project root
// ./theme.scss — this will not be discovered by the build system

Constraint: Use Data Attributes for Component Targeting

MUST use FastStore's data-fs-* data attributes to target components in theme SCSS files. MUST NOT use class names or tag selectors to target FastStore native components.

Why this matters FastStore components use data attributes as their public styling API (e.g., data-fs-button, data-fs-price, data-fs-hero). Class names are implementation details that can change between versions. Using data attributes ensures your theme survives FastStore updates. Each component documents its available data attributes in the customization section of its docs.

Detection If you see CSS selectors targeting .fs-* class names or generic tag selectors (button, h1, div) to style FastStore components → warn about fragility. Suggest using [data-fs-*] selectors instead.

Correct

// src/themes/custom-theme.scss
// Target the Hero section using its data attribute
[data-fs-hero] {
  --fs-hero-text-size: var(--fs-text-size-title-huge);
  --fs-hero-heading-weight: var(--fs-text-weight-bold);

  [data-fs-hero-heading] {
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  [data-fs-hero-image] {
    border-radius: var(--fs-border-radius);
    filter: brightness(0.9);
  }
}

Wrong

// src/themes/custom-theme.scss
// WRONG: Targeting by class names — these are internal and may change
.fs-hero {
  font-size: 3.5rem;
}

.fs-hero h1 {
  text-transform: uppercase;
}

// WRONG: Using generic tag selectors
section > div > h1 {
  font-weight: bold;
}
// These are fragile selectors that break when FastStore restructures its HTML.

Preferred pattern

Recommended file layout:

src/
└── themes/
    └── custom-theme.scss    ← main entry point (auto-imported by FastStore)

Minimal custom theme:

// src/themes/custom-theme.scss
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@600;700;800&display=swap');

// Global Token Overrides
:root {
  --fs-color-main-0: #003232;
  --fs-color-main-1: #004c4c;
  --fs-color-accent-0: #e31c58;
  --fs-color-accent-1: #c4174d;

  --fs-text-face-body: 'Inter', -apple-system, system-ui, sans-serif;
  --fs-text-face-title: 'Poppins', var(--fs-text-face-body);
}

// Component-specific overrides
[data-fs-button] {
  --fs-button-border-radius: var(--fs-border-radius-pill);

  &[data-fs-button-variant="primary"] {
    --fs-button-primary-bkg-color: var(--fs-color-accent-0);
    --fs-button-primary-bkg-color-hover: var(--fs-color-accent-1);
    --fs-button-primary-text-color: var(--fs-color-text-inverse);
  }
}

[data-fs-price] {
  --fs-price-listing-color: #cb4242;
  --fs-price-listing-text-decoration: line-through;
}

[data-fs-navbar] {
  --fs-navbar-bkg-color: var(--fs-color-main-0);
  --fs-navbar-text-color: var(--fs-color-text-inverse);
}

For custom (non-FastStore) components, use CSS modules to avoid conflicts:

// src/components/CustomBanner.module.scss
.customBanner {
  display: flex;
  align-items: center;
  gap: var(--fs-spacing-3); // Still reference FastStore tokens for consistency
  padding: var(--fs-spacing-4);
  background-color: var(--fs-color-main-0);
  color: var(--fs-color-text-inverse);
  border-radius: var(--fs-border-radius);
}

Common failure modes

  • Using !important declarations — creates specificity dead-ends and defeats the cascading nature of design tokens. Use the correct token at the correct selector specificity instead.
  • Hardcoding hex colors, pixel sizes, and font values directly in component styles instead of referencing var(--fs-*) tokens. Changes cannot propagate store-wide.
  • Creating a parallel CSS system (Tailwind, Bootstrap, custom global stylesheet) that conflicts with FastStore's structural styles and doubles the CSS payload.
  • Placing theme files outside src/themes/ — they will not be discovered by the build system.
  • Targeting FastStore components with .fs-* class names or generic tag selectors instead of [data-fs-*] data attributes.

Review checklist

  • Is the theme file located in src/themes/custom-theme.scss?
  • Are global token overrides placed in :root scope?
  • Are component-level overrides using [data-fs-*] data attribute selectors?
  • Are all values referencing design tokens via var(--fs-*) instead of hardcoded values?
  • Is there no use of !important declarations?
  • Could this change be achieved without overrides (is theming sufficient)?
  • Are custom component styles scoped with CSS modules to avoid conflicts?

Reference

平台分布

Codex

37.67%
按下载量换算71

Claude

29.08%
按下载量换算55

Cursor

21.36%
按下载量换算40

Gemini CLI

9.29%
按下载量换算17

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills