MCP Development
coollabsio/coolify
A skill your agent uses for Laravel MCP development. An agent skill from coollabsio/coolify.
优化 subPages 演示页面中的样式,将硬编码的颜色、字号、间距、圆角等替换为 wot-ui 设计系统语义变量。允许直接使用已全局注入的 variable.scss Sass 变量,也允许使用 CSS 自定义属性;不需要额外引入 variable.scss。消除手写的暗色模式覆盖块,统一使用语义变量实现自适应主题。同时将 class 命名统一为 BEM 规范。
$ npx skills add wot-ui/wot-ui --skill optimize-page-styles -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install wot-ui/wot-ui optimize-page-styles --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/wot-ui/wot-ui.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/optimize-page-styles .claude/skills/optimize-page-styles && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "optimize-page-styles" agent skill from https://github.com/wot-ui/wot-ui/tree/main/.agents/skills/optimize-page-styles into .claude/skills/optimize-page-styles/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "optimize-page-styles", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/wot-ui/wot-ui/tree/main/.agents/skills/optimize-page-stylesType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add wot-ui/wot-ui --skill optimize-page-styles -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install wot-ui/wot-ui optimize-page-styles --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/wot-ui/wot-ui.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/optimize-page-styles .agents/skills/optimize-page-styles && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "optimize-page-styles" agent skill from https://github.com/wot-ui/wot-ui/tree/main/.agents/skills/optimize-page-styles into .agents/skills/optimize-page-styles/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "optimize-page-styles", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add wot-ui/wot-ui --skill optimize-page-styles -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install wot-ui/wot-ui optimize-page-styles --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/wot-ui/wot-ui.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/optimize-page-styles .cursor/skills/optimize-page-styles && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "optimize-page-styles" agent skill from https://github.com/wot-ui/wot-ui/tree/main/.agents/skills/optimize-page-styles into .cursor/skills/optimize-page-styles/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "optimize-page-styles", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/wot-ui/wot-ui.git --path .agents/skills/optimize-page-styles--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add wot-ui/wot-ui --skill optimize-page-styles -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install wot-ui/wot-ui optimize-page-styles --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/wot-ui/wot-ui.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/optimize-page-styles .gemini/skills/optimize-page-styles && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "optimize-page-styles" agent skill from https://github.com/wot-ui/wot-ui/tree/main/.agents/skills/optimize-page-styles into .gemini/skills/optimize-page-styles/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "optimize-page-styles", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install wot-ui/wot-ui optimize-page-stylesInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add wot-ui/wot-ui --skill optimize-page-styles -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/wot-ui/wot-ui.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/optimize-page-styles .github/skills/optimize-page-styles && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "optimize-page-styles" agent skill from https://github.com/wot-ui/wot-ui/tree/main/.agents/skills/optimize-page-styles into .github/skills/optimize-page-styles/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "optimize-page-styles", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add wot-ui/wot-ui --skill optimize-page-styles -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install wot-ui/wot-ui optimize-page-styles --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/wot-ui/wot-ui.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/optimize-page-styles .opencode/skills/optimize-page-styles && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "optimize-page-styles" agent skill from https://github.com/wot-ui/wot-ui/tree/main/.agents/skills/optimize-page-styles into .opencode/skills/optimize-page-styles/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "optimize-page-styles", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
optimize-page-styles优化 subPages 演示页面中的样式,将硬编码的颜色、字号、间距、圆角等替换为 wot-ui 设计系统语义变量。允许直接使用已全局注入的 variable.scss Sass 变量,也允许使用 CSS 自定义属性;不需要额外引入 variable.scss。消除手写的暗色模式覆盖块,统一使用语义变量实现自适应主题。同时将 class 命名统一为 BEM 规范。
Optimize Page Styles is an agent skill from wot-ui/wot-ui. 优化 subPages 演示页面中的样式,将硬编码的颜色、字号、间距、圆角等替换为 wot-ui 设计系统语义变量。允许直接使用已全局注入的 variable.scss Sass 变量,也允许使用 CSS 自定义属性;不需要额外引入 variable.scss。消除手写的暗色模式覆盖块,统一使用语义变量实现自适应主题。同时将 class 命名统一为 BEM 规范。
Its SKILL.md is about 4.9k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Frontend & Design, covering CSS and styling and Design tokens. The repository describes itself as: 一个轻量、美观、AI友好的 uni-app 组件库。 The licence is MIT.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 0abe2c2. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are scss, html and bash).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Optimize Page Styles loads about 4.9k tokens when it runs. Until then it costs about 51 tokens; SKILL.md has 990 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from wot-ui/wot-ui at commit 0abe2c2, republished under its MIT licence (© wot-ui). 990 words, ~4,928 tokens.
.claude/skills/optimize-page-styles/SKILL.md (or your agent's skills folder).本 Skill 用于将 src/subPages 中演示页面的硬编码样式替换为 src/uni_modules/wot-ui/styles/variable.scss 中定义的语义变量,并将 class 命名统一为 BEM(Block Element Modifier)规范。
<style> 块里的样式优化和 class 命名规范化(同时修改 <template> 中对应的 class 属性)。variable.scss——项目已全局注入相关变量,样式中可直接使用 $text-main、$spacing-main、$radius-large 等 Sass 变量,也可使用 var(--wot-xxx)。subPages 中的 class 命名必须遵循 BEM 规范,与组件库本身的命名约定保持一致。
| 要素 | 格式 | 分隔符 | 说明 |
|---|---|---|---|
| Block(块) | block-name | — | 独立的功能模块,使用 kebab-case |
| Element(元素) | block-name__element | __(双下划线) | 块的组成部分,不能脱离块独立存在 |
| Modifier(修饰符) | block-name--modifier | --(双连字符) | 块或元素的变体/状态 |
项目 BEM 配置(
_config.scss):$elementSeparator: '__',$modifierSeparator: '--',$state-prefix: 'is-'
每个 subPage 使用 page-<component> 作为顶层 Block,例如:
page-popup、page-button、page-card、page-tabs页面内自定义的功能区域使用独立的 Block,例如:
user-card、info-card、moment-card、list-group、footer-groupBEM 配合 SCSS & 嵌套,避免重复书写 Block 名称:
// ✅ 正确:使用 & 嵌套
.user-card {
display: flex;
&__avatar {
width: $n-88;
}
&__title {
font-size: $typography-body-size-extra-large;
}
&--highlighted {
border: $stroke-main solid $primary-6;
}
}
// ❌ 错误:平级重复写 Block 名
.user-card { ... }
.user-card__avatar { ... }
.user-card__title { ... }| 反模式 | 问题 | 修正 |
|---|---|---|
.content | 太泛,无 Block 归属 | .page-tabs__content 或 .<block>__content |
.title | 太泛,全局易冲突 | .page-popup__title 或 .<block>__title |
.large | 语义不清 | .page-tabs__content--large |
.section | 太泛 | .page-tabs__section |
.footer | 太泛 | .page-form__footer |
.block | 太泛 | .page-transition__block |
.demo-button | 缺少页面 Block 前缀 | .page-form__action 或保持在 Block 作用域内 |
.demo-row | 缺少页面 Block 前缀 | .page-button__row |
.demo-container | 缺少页面 Block 前缀 | .page-sticky__container |
.nested-popup-content | 连字符连接而非 BEM | .nested-popup__content |
.nested-title | 扁平命名,应归属 Block | .nested-popup__title |
.nested-desc | 扁平命名 | .nested-popup__desc |
.nested-buttons | 扁平命名 | .nested-popup__buttons |
.custom-txt | 扁平命名 | .page-popup__text 或 .<block>__text |
.custom-container | 太泛 | .page-sticky__box |
| 场景 | 推荐 Element 名 |
|---|---|
| 头像 | __avatar |
| 图片 | __image |
| 标题 | __title |
| 描述/副标题 | __desc |
| 内容区 | __content |
| 底部区域 | __footer |
| 操作区 | __action |
| 标签 | __label / __tag |
| 元数据 | __meta |
| 行/列 | __row / __col |
| 图片容器 | __image-box |
| 按钮组 | __buttons |
| 文本 | __text |
| 场景 | 推荐 Modifier 名 |
|---|---|
| 尺寸 | --small / --large |
| 对齐 | --left / --right / --center |
| 状态 | --active / --disabled / --highlighted |
| 变体 | --plain / --round |
与组件库保持一致,使用 is- 前缀:
is-active、is-disabled、is-open语义变量定义在 src/uni_modules/wot-ui/styles/variable.scss。项目已全局注入这些 Sass 变量及对应的 CSS 自定义属性,页面中无需 @use 或 @import。
优先级按使用场景区分:
<style lang="scss"> 中优先使用全局 Sass 变量color: $text-main;、gap: $spacing-loose;、border-radius: $radius-large;var(--wot-xxx)。custom-style、运行时拼接样式中使用 CSS 自定义属性custom-style="margin-left: var(--wot-spacing-main);"var(--wot-xxx)。| 类别 | 变量前缀 / 示例 | 说明 |
|---|---|---|
| 文字色 | --wot-text-main / --wot-text-secondary / --wot-text-auxiliary / --wot-text-disabled / --wot-text-placeholder / --wot-text-white | 主文本、次要文本、辅助文本、禁用、占位、白色文本 |
| 图标色 | --wot-icon-main / --wot-icon-secondary / --wot-icon-auxiliary | 与文字色同级 |
| 填充色 | --wot-filled-bottom / --wot-filled-content / --wot-filled-strong / --wot-filled-extra-strong / --wot-filled-oppo / --wot-filled-zero | 容器背景色按强度分级 |
| 边框色 | --wot-border-main / --wot-border-light / --wot-border-strong / --wot-border-extra-strong / --wot-border-white / --wot-border-zero | 边框按强度分级 |
| 分割线色 | --wot-divider-main / --wot-divider-light / --wot-divider-strong | 分割线色 |
| 主色 | --wot-primary-1 ~ --wot-primary-10 | 品牌主色 10 级 |
| 危险色 | --wot-danger-main / hover / clicked / disabled / particular / surface | 危险状态色 |
| 成功色 | --wot-success-main / hover / ... | 成功状态色 |
| 警告色 | --wot-warning-main / hover / ... | 警告状态色 |
| 反馈色 | --wot-feedback-hover / --wot-feedback-active / --wot-feedback-accent | 交互反馈色 |
| 遮罩/透明 | --wot-opacfilled-main-cover / --wot-opacfilled-light-cover / --wot-opacfilled-tooltip-toast-cover | 遮罩与蒙层 |
| 间距 | --wot-spacing-zero ~ --wot-spacing-ultra-spacious | 元素间距 |
| 内边距 | --wot-padding-zero ~ --wot-padding-ultra-spacious | 内边距 |
| 圆角 | --wot-radius-zero / small / main / large / extra-large / super-large / ultra-large / radius-full | 圆角 |
| 字号 | --wot-typography-label-size-* / --wot-typography-body-size-* / --wot-typography-title-size-* | 字号分 label/body/title 三级 |
| 行高 | --wot-typography-label-line-height-size-* / --wot-typography-body-line-height-size-* / --wot-typography-title-line-height-size-* | 行高对应字号级别 |
| 字重 | --wot-font-weight-regular / medium / semibold / bold / ... | 字重 |
| 边框宽度 | --wot-stroke-zero / light / main / blod | 边框线宽 |
| 基础尺寸 | --wot-n-0 ~ --wot-n-375 / --wot-n-full | 基础数字(px) |
| 透明度 | --wot-opacity-disabled / dimmer / oveylay / backdrop / main | 透明度 |
| 基础颜色 | --wot-base-black / --wot-base-white / --wot-base-transparent | 黑/白/透明 |
| 色阶颜色 | --wot-blue-1 ~ --wot-blue-10 / red / green / orange / yellow / coolgrey / ... | 原始色阶(优先用语义变量) |
| 语义名 | 默认值 |
|---|---|
zero | 0px |
ultra-tight | 2px |
super-tight | 4px |
extra-tight | 6px |
tight | 8px |
main | 10px |
loose | 12px |
extra-loose | 16px |
super-loose | 20px |
ultra-loose | 24px |
spacious | 28px |
extra-spacious | 32px |
super-spacious | 40px |
ultra-spacious | 48px |
| 语义名 | 默认值 |
|---|---|
zero | 0px |
small | 2px |
main | 4px |
large | 8px |
extra-large | 12px |
super-large | 16px |
ultra-large | 20px |
radius-full | 9999px |
Label 级(说明文字、标注)
| 语义名 | 默认值 |
|---|---|
super-small | 9px |
extra-small | 10px |
small | 11px |
main | 12px |
large | 14px |
Body 级(正文)
| 语义名 | 默认值 |
|---|---|
main | 14px |
large | 15px |
extra-large | 16px |
super-large | 17px |
ultra-large | 18px |
Title 级(标题)
| 语义名 | 默认值 |
|---|---|
main | 18px |
large | 20px |
extra-large | 24px |
使用 grep 查找当前目标 subPage 文件中的硬编码样式和非 BEM class 名:
# 找出硬编码颜色、字号、间距、圆角等的位置
grep -n 'color:.*#\|font-size:.*[0-9]\(px\|rpx\)\|padding:.*[0-9]\(px\|rpx\)\|margin:.*[0-9]\(px\|rpx\)\|background.*:.*#\|border.*:.*#\|gap:.*[0-9]\(px\|rpx\)\|border-radius:.*[0-9]\(px\|rpx\)\|font-weight:.*[0-9]' <target-file>
# 找出所有 class 名,检查是否符合 BEM
grep -n 'class="' <target-file>对每个硬编码值,按以下优先级选择替换方案:
color: black / color: #000 / color: #1D1F29 → color: $text-main(或 var(--wot-text-main))color: #666 / color: #4E5369 → color: $text-auxiliarycolor: #999 / color: #A9ACB8 → color: $text-placeholdercolor: #333 / color: #272B3B → color: $text-secondarycolor: white / color: #fff → color: $text-whitebackground: #fff / background-color: #ffffff → background: $filled-oppo (白色容器背景)background: #f7f8fa / 浅灰背景 → background: $filled-bottombackground: #f2f3f5 → background: $filled-contentborder-color: #eee / 浅灰边框 → border-color: $border-lightbackground: #0083ff / 主色蓝 → background: $primary-69px → $typography-label-size-super-small10px → $typography-label-size-extra-small11px → $typography-label-size-small12px → $typography-label-size-main14px(用于标注/辅助文字) → $typography-label-size-large 或 $typography-body-size-main(用于正文)15px → $typography-body-size-large16px → $typography-body-size-extra-large17px → $typography-body-size-super-large18px → $typography-body-size-ultra-large 或 $typography-title-size-main(标题)20px → $typography-title-size-large24px → $typography-title-size-extra-largefont-weight: 400 / normal → $font-weight-regularfont-weight: 500 / 600 → $font-weight-mediumfont-weight: 700 / bold → $font-weight-semibold 或 $font-weight-bold0px → $spacing-zero(若差异不大可保持 0)2px → $spacing-ultra-tight4px → $spacing-super-tight6px → $spacing-extra-tight8px → $spacing-tight10px → $spacing-main12px → $spacing-loose15px → 取近似 $spacing-extra-loose(16px)或保留16px → $spacing-extra-loose20px → $spacing-super-loose24px → $spacing-ultra-loose28px → $spacing-spacious32px → $spacing-extra-spacious40px → $spacing-super-spacious48px → $spacing-ultra-spacious$padding-* 系列2px → $radius-small4px → $radius-main8px → $radius-large12px → $radius-extra-large16px → $radius-super-large20px → $radius-ultra-large9999px / 50%(胶囊) → $radius-full0.5px → $stroke-light1px → $stroke-main2px → $stroke-bold$n-*审查 <template> 中所有 class 属性和 <style> 中所有选择器,将不符合 BEM 规范的 class 名统一重命名。
操作要点:
page-<component>(如 page-popup、page-tabs)。.content → .page-tabs__content,.title → .page-popup__title。.nested-popup-content → .nested-popup__content。-- 分隔:如 .footer-group.right → .footer-group--right(已遵循的保持)。<template> 和 <style>——class 重命名必须在模板和样式中同步修改,保持一致。&__element / &--modifier 嵌套写法,减少重复。page-xxx 下,与页面 Block 并列即可。语义变量(如 --wot-text-main、--wot-filled-oppo)在 light/dark 主题切换时会自动重新映射。
如果原文件中有以下模式:
.wot-theme-dark {
.xxx {
color: $-dark-color;
background: $-dark-background2;
}
}替换了硬编码颜色为语义变量后,这些 .wot-theme-dark 覆盖块应当被删除,因为语义变量已经自动适配暗色主题。
判断规则:
.wot-theme-dark 块中的覆盖仅仅是将浅色硬编码值换成暗色值(与语义变量的 dark theme 映射一致),则删除此块。.wot-theme-dark 块中有其他非颜色相关的样式覆盖(如布局调整),则保留。@use 引入替换为 CSS 自定义属性后,如果原文件样式块中有以下引入:
@use '../../uni_modules/wot-ui/styles/variable.scss' as *;可以删除该引入,因为 Sass 变量与 CSS 自定义属性都已全局可用,不需要通过 SCSS @use 引入。
注意:即使文件中继续使用 SCSS
$variable形式,也不需要为variable.scss额外添加@use。只有在文件依赖其他未全局注入的 SCSS 模块时,才保留对应引入。
<template> 和 <style>——两处同时修改,保持一致。<script> 中的逻辑。20rpx = 10px → $spacing-main;如果是在字符串内联样式中,则写成 var(--wot-spacing-main)。height: 250vh、width: 100vw、极特殊的像素值),保留原值不做替换。line-height: 1.4 / line-height: 1.5 等无单位的行高倍数,如果当前元素使用的 font-size 有对应的语义字号(如 $typography-body-size-main),则应将其 line-height 一并替换为同级别的行高变量(如 $typography-body-line-height-size-main)。如果没有对应的 font-size,则保留原值不做替换。替换完成后检查:
<template> 中的 class 名与 <style> 中的选择器完全匹配。$token 或 var(--wot-xxx) 写法正确,无拼写错误。.wot-theme-dark 覆盖。transition、animation-duration)、z-index、opacity 数值(除非有对应变量)、视口单位(vh、vw)、百分比(50%、100%)保持原值。@use variable.scss / @import variable.scss。$text-main、$filled-oppo、$primary-6,或对应的 --wot-* CSS 变量),而非底层色阶变量(如 $blue-6 / --wot-blue-6)。底层色阶只在语义层没有合适选项时使用。custom-style 中的内联样式也在范围内:如果 <template> 中 custom-style="padding: 20px;" 等有硬编码值,同样可以替换,但要注意内联样式的写法是 CSS 字符串,不是 SCSS,因此这里应使用 var(--wot-xxx)。template:
<view class="page-sticky page-sticky__stage">
<view class="demo-container">...</view>
<view class="custom-container">...</view>
</view>style:
.page-sticky {
&__stage {
height: 250vh;
}
}
.wot-theme-dark {
.custom-container {
background: $-dark-background2;
}
}
.demo-container {
padding: 15px 0;
color: #666;
}
.custom-container {
height: 120px;
width: 100vw;
background-color: #ffffff;
}template:
<view class="page-sticky page-sticky--stage">
<view class="page-sticky__container">...</view>
<view class="page-sticky__box">...</view>
</view>style:
.page-sticky {
&--stage {
height: 250vh;
}
&__container {
padding: var(--wot-padding-extra-loose) 0;
color: var(--wot-text-auxiliary);
}
&__box {
height: 120px;
width: 100vw;
background-color: var(--wot-filled-oppo);
}
}
/* .wot-theme-dark 块已删除:语义变量自动适配暗色主题 */变更要点:
page-sticky__stage → page-sticky--stage(stage 是修饰符而非子元素).demo-container → .page-sticky__container(归入 Block).custom-container → .page-sticky__box(归入 Block).wot-theme-dark 覆盖块template:
<text class="custom-txt">...</text>
<view class="nested-popup-content">
<text class="nested-title">...</text>
<text class="nested-desc">...</text>
<view class="nested-buttons">...</view>
</view>style:
.page-popup {
.custom-txt {
color: black;
font-size: 40rpx;
border-radius: 32rpx;
}
.nested-popup-content {
display: flex;
flex-direction: column;
gap: 20rpx;
}
.nested-title {
color: black;
font-size: 36rpx;
font-weight: bold;
}
.nested-desc {
color: #666;
font-size: 28rpx;
margin: 10rpx 0;
}
.nested-buttons {
display: flex;
gap: 20rpx;
margin-top: 20rpx;
}
}
.wot-theme-dark {
.page-popup {
.custom-txt,
.nested-title {
color: $-dark-color;
}
.nested-desc {
color: $-dark-color3;
}
}
}template:
<text class="page-popup__text">...</text>
<view class="nested-popup">
<text class="nested-popup__title">...</text>
<text class="nested-popup__desc">...</text>
<view class="nested-popup__buttons">...</view>
</view>style:
.page-popup {
&__text {
color: var(--wot-text-main);
font-size: var(--wot-typography-title-size-large);
border-radius: var(--wot-radius-super-large);
}
}
.nested-popup {
display: flex;
flex-direction: column;
gap: var(--wot-spacing-main);
&__title {
color: var(--wot-text-main);
font-size: var(--wot-typography-title-size-main);
font-weight: var(--wot-font-weight-bold);
text-align: center;
}
&__desc {
color: var(--wot-text-auxiliary);
font-size: var(--wot-typography-body-size-main);
margin: var(--wot-spacing-extra-tight) 0;
}
&__buttons {
display: flex;
gap: var(--wot-spacing-main);
margin-top: var(--wot-spacing-main);
}
}
/* .wot-theme-dark 块已删除:语义变量自动适配暗色主题 */变更要点:
.custom-txt → .page-popup__text(归入页面 Block).nested-popup-content → .nested-popup(提升为独立 Block).nested-title/desc/buttons → .nested-popup__title/desc/buttons(成为 Block 的 Element).wot-theme-dark 覆盖块template:
<view class="content">内容</view>
<view class="large">内容</view>
<view class="section">...</view>
<view class="title">标题</view>style:
.tabs-theme-item {
margin-bottom: 20px;
&__label {
margin-bottom: 10px;
padding-left: 15px;
font-size: 14px;
color: #666;
}
}
.content {
height: 120px;
text-align: center;
}
.large {
line-height: 320px;
text-align: center;
}
.title {
font-size: 32rpx;
padding: 24rpx 0;
}template:
<view class="page-tabs__content">内容</view>
<view class="page-tabs__content page-tabs__content--large">内容</view>
<view class="page-tabs__section">...</view>
<view class="page-tabs__title">标题</view>style:
.tabs-theme-item {
margin-bottom: var(--wot-spacing-super-loose);
&__label {
margin-bottom: var(--wot-spacing-main);
padding-left: var(--wot-padding-extra-loose);
font-size: var(--wot-typography-body-size-main);
color: var(--wot-text-auxiliary);
}
}
.page-tabs {
&__content {
height: 120px;
text-align: center;
&--large {
line-height: 320px;
}
}
&__section {
// ...
}
&__title {
font-size: var(--wot-typography-body-size-extra-large);
padding: var(--wot-padding-loose) 0;
}
}变更要点:
.content → .page-tabs__content.large → .page-tabs__content--large(Modifier).title → .page-tabs__title.section → .page-tabs__section.page-tabs Block 内© wot-ui, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/optimize-page-styles of wot-ui/wot-ui.
Open the folder on GitHubat commit 0abe2c2
Optimize Page Styles next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Optimize Page Styles this skillwot-ui/wot-ui | 384 | — | ~4.9k | Automated safety check: Pass | MIT | |
| MCP Developmentcoollabsio/coolify | 63k | 1 repos | ~949 | Automated safety check: Pass | MIT | |
| Transitions PolishJakubantalik/transitions.dev | 4.6k | 2 repos | ~3.2k | Automated safety check: Pass | Custom licence | |
| Web Style ExtractorLucent-Snow/style-extractor | 453 | — | ~3.8k | Automated safety check: Pass | None | |
| Liuguang Banlan UIsickn33/agentic-awesome-skills | 47k | 1 repos | ~2.5k | Automated safety check: Pass | MIT | |
| Tailwind Design SystemSuFxGIT/scoutarr | 114 | 5 repos | ~5.6k | Automated safety check: Pass | None |
coollabsio/coolify
A skill your agent uses for Laravel MCP development. An agent skill from coollabsio/coolify.
Jakubantalik/transitions.dev
Audits existing UI animations against the transitions.dev motion-token scale and suggests tokens for duration, distance, scale, blur and easing.
Lucent-Snow/style-extractor
Extracts evidence-backed style guides and motion appendices from websites, keeping reusable visual language and stripping product-specific content.
sickn33/agentic-awesome-skills
Implements an interface in one of two named color modes, iridescent white or colorful black, from a parameterized starter that reports measured color intensity.
SuFxGIT/scoutarr
Build scalable design systems with Tailwind CSS v4, design tokens, component libraries, and responsive patterns.
Manavarya09/design-extract
Extract the full design language from any website URL. An agent skill from Manavarya09/design-extract.
wot-ui/wot-ui
在 wot-ui 项目中创建新组件骨架与必要注册点。用户要求从零创建组件源码、补齐 types.vue.scss 结构或注册全局组件类型时调用;不负责 Demo 页、测试和文档迁移。
wot-ui/wot-ui
为组件创建演示页面并统一组织结构。用户要求新建/重构组件 Demo、统一展示顺序或用 demo-group 与 demo-group-item 编排时调用。
wot-ui/wot-ui
为新组件或新特性快速生成符合设计系统规范的 SCSS 变量定义代码,或检查现有变量是否合规. An agent skill from wot-ui/wot-ui.
wot-ui/wot-ui
为 wot-ui 生成单文件主题 SCSS,并在 App.vue 中挂载语义变量. An agent skill from wot-ui/wot-ui.
wot-ui/wot-ui
统一 Vue 与 wot-ui 组件源码中的注释和命名规范。用户要求规范组件 Props 注释、函数命名、类型说明、变量命名或在创建组件后补齐代码注释时调用;不负责 Demo、测试和文档迁移。
wot-ui/wot-ui
迁移组件 Markdown 文档到新规范。用户明确要求迁移文档结构、重排 Demo 章节、合并 Attributes/Options 列、迁移最低版本标记或升级旧文档格式时调用;不用于仅做一致性核对。
Categories
优化 subPages 演示页面中的样式,将硬编码的颜色、字号、间距、圆角等替换为 wot-ui 设计系统语义变量。允许直接使用已全局注入的 variable.scss Sass 变量,也允许使用 CSS 自定义属性;不需要额外引入 variable.scss。消除手写的暗色模式覆盖块,统一使用语义变量实现自适应主题。同时将 class 命名统一为 BEM 规范。. Optimize Page Styles is an agent skill from wot-ui/wot-ui.
Optimize Page Styles fits situations like: tasks that involve CSS and styling; tasks that involve Design tokens.
Run `npx skills add wot-ui/wot-ui --skill optimize-page-styles -a claude-code`. Or copy the skill folder (.agents/skills/optimize-page-styles in wot-ui/wot-ui) into .claude/skills/optimize-page-styles in your project. Claude Code loads it when a task matches its description.
Run `npx skills add wot-ui/wot-ui --skill optimize-page-styles -a codex`. Or copy the skill folder (.agents/skills/optimize-page-styles in wot-ui/wot-ui) into .agents/skills/optimize-page-styles in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add wot-ui/wot-ui --skill optimize-page-styles -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/optimize-page-styles, .gemini/skills/optimize-page-styles, .github/skills/optimize-page-styles and .opencode/skills/optimize-page-styles in your project.
SKILL.md names no scripts, command-line tools or credentials: Optimize Page Styles is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Optimize Page Styles is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 4.9k tokens (SKILL.md is roughly 20k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Optimize Page Styles: MCP Development (coollabsio/coolify, 63k stars), Transitions Polish (Jakubantalik/transitions.dev, 4.6k stars), Web Style Extractor (Lucent-Snow/style-extractor, 453 stars) and Liuguang Banlan UI (sickn33/agentic-awesome-skills, 47k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
wot-ui (a GitHub organization) maintains it in wot-ui/wot-ui, which has 384 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on September 25, 2026.
Source: wot-ui/wot-ui on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.