ソース情報
- リポジトリ
- mikailustuner/OmniRule
- ソースの最終更新活動
- 2026年5月8日 23:36
- 検出された SKILL.md の言語
- 英語
- スター
- 5
- フォーク
- 1
インストール方法
デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。
ソースファイルを確認
インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。
メニュー
デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。
インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
直接コマンドでは確認用 Prompt が省略されます。実行前にソースを確認してください。
npx skills add https://github.com/mikailustuner/OmniRule --skill css-variablesコマンドは1行のまま表示されます。コピー前に横へスクロールして全体を確認してください。
ローカルで確認しますか?SkillsMP が現在取得できるファイルをダウンロードできます。
Bun runtime: HTTP server, file I/O, SQLite, test runner, package manager, bundler — all-in-one JS toolchain.
Clerk: Drop-in auth UI, Organizations, User management, JWT templates, webhooks, Next.js middleware integration.
Gelişmiş masaüstü, tarayıcı ve işletim sistemi kontrol yeteneği. Görsel (koordinat tabanlı) fare/klavye otomasyonu, DOM manipülasyonu, pencere yönetimi, gelişmiş dosya, ağ ve süreç yönetimini kapsar.
SOC 職業分類に基づく
SKILL.md を表示中
| name | css-variables |
| description | Custom properties, theming, runtime changes |
| triggers | {"extensions":[".css",".scss"],"keywords":["--var","custom properties","CSS variables","design tokens","theme","var("]} |
| auto_load_when | Working with CSS custom properties or design tokens |
| agent | style-architect |
| tools | ["Read","Write","Bash"] |
Focus: Custom properties, theming, runtime changes
When to use custom properties:
├── Theming → yes
├── Responsive values → yes
├── Runtime changes → yes
├── Shared values → yes
When to use for:
├── Colors → yes
├── Spacing → yes
├── Typography → yes
├── Animations → yes
└── Breakpoints → yes (with calc)
When to avoid:
├── Static values → hardcode
├── Once-only → hardcode
├── Performance-critical → hardcode
└── Complex calculation → precalculate
When to use CSS variables:
├── Runtime theming → yes
├── Multiple themes → yes
├── User preference → yes
└── No framework → yes
When to use framework theming:
├── Design system → yes
├── Dark mode built-in → yes
├── Theme provider → yes
└── CSS-only theme → CSS variables
When to structure:
├── By category → colors/typography/spacing
├── By component → component-scoped
├── Global then scoped → yes
└── Flat → avoid for scaling
When to use global:
├── Shared values → yes
├── Defaults → yes
├── Token values → yes
└── Cross-component → yes
When to use scoped:
├── Component-specific → yes
├── Override global → yes
├── Shadow DOM → required
└── Isolation → yes
When to use --css-var-prefix:
├── Design system → yes
├── Third-party conflict → yes
├── All same prefix → consistent
└── No conflict → optional
When to change via JS:
├── User interaction → yes
├── Theme toggle → yes
├── Device preference → yes
└── Feature detection → yes
When to change via CSS:
├── Media queries → yes
├── Hover/focus → yes
├── Container queries → yes
└── @supports → yes
When to use prefers-color-scheme:
├── System dark mode → yes
├── User preference → yes
├── Fallback → yes
└── Manual toggle → also provide
When to add fallback:
├── Old browser → yes
└── Unknown support → yes
Fallback syntax:
color: var(--primary, #0066cc);
padding: var(--spacing-md, 1rem);
When to use:
├── Primitive value → yes
├── Complex value → pre-define
└── Last resort → always provide
When NOT to use:
├── Always supported → no fallback needed
├── Required value → no fallback hides
└── Empty var → use differently
When to use calc():
├── Responsive sizing → yes
├── Combining variables → yes
└── Mixed units → yes
When to use clamp():
├── Fluid sizing → yes
├── Min/max bound → yes
└── Range control → yes
When to use min()/max():
├── Responsive bounds → yes
├── Fluid typography → yes
└── Container queries → yes
When to precalculate:
├── Many calculations → slow
├── Same result → pre-calc
└── Print/offline → pre-calc
❌ Defining CSS variables inside component selectors (scope too narrow)
✅ Define tokens at :root; override per component/theme
❌ Variable names that describe appearance (--blue-500)
✅ Semantic names: --color-primary, --color-text-muted
❌ Duplicating values instead of referencing variables
✅ Reference variables everywhere — single source of truth
❌ JavaScript setting CSS variables on every frame
✅ Use CSS calc() and CSS math instead; JS for initial set only
❌ No fallback for browsers that don't support var()
✅ var(--value, fallback) — always provide fallback
| Task | Syntax | Example |
|---|---|---|
| Define token | :root { --name: value } | --spacing-4: 1rem |
| Use token | var(--name) | padding: var(--spacing-4) |
| Fallback | var(--name, fallback) | color: var(--text, #000) |
| Dark theme | [data-theme="dark"] { } | Override tokens |
| JS read | getPropertyValue | getComputedStyle(el) |
| JS set | setProperty | el.style.setProperty |