Token导航 LogoToken导航

Agent Skill · 研究检索

dark-mode-check(深色模式检查)

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

dark-mode-check 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 49,936。

总安装 635周安装 27GitHub Stars 7,498下载 222核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:dark-mode-check(深色模式检查)
来源仓库:https://github.com/anyproto/anytype-ts
仓库路径:skills/dark-mode-check
安装命令:
npx skills add https://github.com/anyproto/anytype-ts --skill dark-mode-check
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/anyproto/anytype-ts --skill dark-mode-check

这个 Skill 是做什么的

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

dark-mode-check 审计 Anytype-TS 代码库中深色模式的样式正确性,检测硬编码颜色等问题。适用于检查组件是否适配深色主题、验证新组件是否遵循配色规范。自动识别缺失图标变体、内联覆盖与 CSS 变量缺口,提升主题一致性。安装前应确认项目使用 Anytype-TS 框架,并确保主题选择器配置正确。

适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/dark-mode-check

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

dark-mode-check 怎么安装?

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

dark-mode-check 支持哪些 AI 工具?

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

dark-mode-check 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

dark-mode-check 是免费的吗?

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

dark-mode-check 用的人多吗?

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

dark-mode-check 安全吗?

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

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 来源仓库有 7,498 星,维护活跃度相对可查。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

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

适不适合你

更适合

  • 已经在用 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调用外部服务未明确有提醒
dark-mode-check

深色模式检查 · 本页

6357,498只读未明确通过

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

SKILL.md 原文

Dark Mode Check Skill

Audit styles and components for dark mode correctness in the Anytype-TS codebase. Catches hardcoded colors, missing icon variants, inline dark overrides, and CSS variable gaps.

When to Use

Activate this skill when the user:

  • Asks to check dark mode styles for a component or file
  • Wants to verify a new component works correctly in dark mode
  • Asks to audit dark mode across the codebase or a folder
  • Adds new styles and wants to ensure they follow theming patterns
  • Reports a visual bug that only appears in dark mode

Architecture Reference

Theme Selector

Dark mode is activated by the class themeDark on the <html> element:

html.themeDark { ... }
  • Set via S.Common.setThemeClass() in src/ts/store/common.ts
  • Applied by U.Common.addBodyClass('theme', 'dark') in src/ts/lib/util/common.ts
  • Values: 'dark', 'light', 'system' (system defers to nativeThemeIsDark)

CSS Variable System

Light mode defaults: src/scss/_vars.scss Dark mode overrides: src/scss/theme/dark/common.scss (lines 5-82)

Core variable families:

FamilyExamplesPurpose
--color-text-*primary, secondary, tertiary, inversionText colors
--color-shape-*primary, secondary, tertiary, highlight-dark/medium/lightBorders, dividers
--color-bg-*primary, secondary, loader, greyBackgrounds
--color-control-*accent, active, inactive, bgInteractive elements
--color-system-*accent-125, accent-50, accent-25, selectionSystem accents
--color-light-*grey, yellow, orange, red, pink, purple, blue, ice, teal, limeTag/highlight colors (light variants)
--color-very-light-*Same set as aboveEven lighter tag/highlight variants
--color-dark-*Same set as aboveDark tag/highlight variants

Dark Mode File Organization

src/scss/theme/dark/
├── common.scss    (~485 lines) - CSS variables + shared overrides + icon paths
├── page.scss      (~236 lines) - Page-specific dark styles
├── block.scss     (~250 lines) - Block component dark styles
├── menu.scss      (~315 lines) - Menu dark styles
├── popup.scss     (~116 lines) - Popup/modal dark styles
└── widget.scss    (~87 lines)  - Widget dark styles

All are imported via src/scss/common.scss.

Icon Theming

Dark mode icons live in src/img/theme/dark/ mirroring src/img/icon/:

$themePath: '~img/theme/dark';

html.themeDark {
    .icon.buttonAdd { background-image: url('#{$themePath}/icon/block/add0.svg'); }
    .icon.buttonAdd:hover { background-image: url('#{$themePath}/icon/block/add1.svg'); }
}

Convention: name0.svg = default, name1.svg = hover/active.

In TypeScript, dynamic icon paths use S.Common.getThemePath():

// Returns 'theme/dark/' or ''
const path = `./img/${S.Common.getThemePath()}icon/file/${type}.svg`;

Dark Shadow Mixin

// In dark/common.scss
@mixin shadow {
    box-shadow: 0px 4px 16px rgb(0 0 0 / 20%), 0px 0px 0px 1px #393933 inset;
}

Review Checklist

When auditing a file or component for dark mode correctness, check every item below.

1. Hardcoded Colors

Rule: No raw hex (#xxx), rgb(), or rgba() values should appear in dark mode blocks unless they are truly one-off (e.g., a specific gradient stop with no variable equivalent).

Search pattern:

grep -E '#[0-9a-fA-F]{3,8}|rgb\(|rgba\(' src/scss/theme/dark/*.scss

Known violations (for reference):

  • src/scss/theme/dark/block.scss — .label {color: #464646;}, bgColor-* classes with hardcoded hex
  • src/scss/theme/dark/common.scss — shadow mixin #393933, vault #393939, iconWrap #4f4f4f/#000000, markup highlight #044062
  • src/scss/theme/dark/menu.scss — bgColor-* palette, .connected::before #294b0e, .error::before #581f0c
  • src/scss/theme/dark/page.scss — .btn.light.bg {background-color: #fff;}

Action: Flag each hardcoded color. Suggest the closest CSS variable or recommend creating a new one.

2. Inline Dark Overrides Outside Theme Folder

Rule: Dark mode style overrides belong in src/scss/theme/dark/. They should NOT be placed inline in component SCSS files using html.themeDark & or html.themeDark.component.

Search pattern:

grep -rn 'html\.themeDark\|\.themeDark' src/scss/ --include='*.scss' | grep -v 'src/scss/theme/dark/'

Known violations:

  • src/scss/popup/aiOnboarding.scss — Lines 69-91, inline html.themeDark & block with hardcoded rgba() colors
  • src/scss/form/button.scss — Dark mode button overrides
  • src/scss/page/main/settings.scss — Dark mode settings overrides

Action: Flag inline dark overrides. Recommend moving them to the appropriate file in src/scss/theme/dark/.

3. Missing Icon Dark Variants

Rule: Every icon that appears in the UI must have a dark variant in src/img/theme/dark/ if its default color doesn't work on dark backgrounds.

Check process:

  1. Find all .icon.* classes that set background-image in light mode SCSS
  2. Verify each has a corresponding entry in src/scss/theme/dark/common.scss or other dark theme files
  3. Verify the SVG file exists in src/img/theme/dark/icon/

Search patterns:

# Find icon background-image declarations in light mode
grep -rn 'background-image.*icon/' src/scss/ --include='*.scss' | grep -v 'theme/dark'

# Find dark mode icon overrides
grep -rn 'background-image.*themePath' src/scss/theme/dark/

Action: For each icon missing a dark variant, flag it and check whether the default icon color (typically #B6B6B6 or #252525) needs adjustment for dark backgrounds.

4. Dynamic Icon Paths in TypeScript

Rule: Any TypeScript code building icon paths must use S.Common.getThemePath() for theme awareness.

Search pattern:

grep -rn "img/icon/" src/ts/ --include='*.tsx' --include='*.ts' | grep -v 'getThemePath'

Action: Flag any hardcoded icon paths that bypass theme detection.

5. New CSS Properties Without Variable Usage

Rule: When adding new color/background/border properties, always use CSS variables from _vars.scss (which get overridden in dark mode). Never introduce raw color values.

Colors that MUST use variables:

  • color -> use --color-text-*
  • background / background-color -> use --color-bg-* or --color-shape-*
  • border-color -> use --color-shape-*
  • box-shadow -> use variables or the @include shadow mixin in dark mode

6. !important Overuse

Rule: Avoid !important in dark mode overrides. If needed, it usually signals a specificity problem that should be fixed by adjusting selectors.

Search pattern:

grep -cn '!important' src/scss/theme/dark/*.scss

Action: Flag excessive !important usage. Suggest selector specificity fixes.

7. Missing Dark Mode Handling for New Components

When reviewing a new component, verify:

  1. All color properties use CSS variables (auto-handled by dark mode)
  2. Any custom colors have corresponding overrides in src/scss/theme/dark/
  3. Icons have dark variants if needed
  4. Shadows use the dark mode mixin or variables
  5. No opacity hacks that look wrong on dark backgrounds
  6. Borders use --color-shape-* variables
  7. Hover/active states work visually on dark backgrounds

Output Format

Structure findings as:

## Dark Mode Audit: [file/component name]

### Critical Issues
[Issues that cause visible problems in dark mode]

### Hardcoded Colors
| File:Line | Value | Suggested Variable |
|-----------|-------|--------------------|
| ... | ... | ... |

### Missing Icon Variants
| Icon Class | Light Path | Dark Path (missing) |
|------------|------------|---------------------|
| ... | ... | ... |

### Inline Dark Overrides (should be in theme/dark/)
| File:Line | Selector |
|-----------|----------|
| ... | ... |

### Variable Usage Gaps
[Properties that should use CSS variables but don't]

### Recommendations
[Specific actions to fix each issue]

Quick Reference: Available Dark Mode Variables

Text

--color-text-primary --color-text-secondary --color-text-tertiary --color-text-inversion

Backgrounds

--color-bg-primary --color-bg-primary-90 --color-bg-secondary --color-bg-loader --color-bg-grey

Shapes / Borders

--color-shape-primary --color-shape-secondary --color-shape-tertiary --color-shape-highlight-dark --color-shape-highlight-medium --color-shape-highlight-light --color-shape-highlight-light-solid

Controls

--color-control-accent --color-control-active --color-control-inactive --color-control-bg

System

--color-system-accent-125 --color-system-accent-50 --color-system-accent-25 --color-system-selection

Color Palette (tags/highlights)

Each available in --color-light-*, --color-very-light-*, and --color-dark-* variants: grey yellow orange red pink purple blue ice teal lime

平台分布

Codex

35.22%
按下载量换算78

Claude

31.63%
按下载量换算70

Cursor

18.63%
按下载量换算41

Gemini CLI

9.88%
按下载量换算22

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

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

继续浏览同类 Skills