← 返回 Skills 市场
39
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install axiom-css-specificity
功能描述
CSS specificity calculator — compute (a, b, c) specificity for any CSS selector. Handles :is(), :not(), :where(), combinators, attribute selectors. Use when...
使用说明 (SKILL.md)
axiom-css-specificity
Version: 0.1.2 Axioma Tools
Computes CSS specificity per W3C Selectors Level 4.
What this skill does
- Computes (a, b, c) tuple per W3C spec
- Handles :is(), :not(), :where() (where() = 0)
- Handles attribute selectors, pseudo-classes
- Supports combinators (>, +, ~, descendant)
- JSON output with breakdown
When to use this skill
- ✅ Debug CSS specificity conflicts
- ✅ Audit CSS for overly-broad selectors
- ✅ Compare specificity of two rules
- ❌ Render CSS (use a browser)
- ❌ Support CSS preprocessor syntax (SCSS/Less)
Usage
python3 axiom_css_specificity.py "body div#main .item:first-child"
python3 axiom_css_specificity.py --compare "a" "div.menu a"
from axiom_css_specificity import compute_specificity
compute_specificity('div#main a:hover') # (0, 2, 2)
Validation
| Check | Status |
|---|---|
| Unit tests | 18 cases |
| Performance | \x3C100ms |
| Security | Pure stdlib, no injection |
| Determinism | Byte-to-byte stable |
| License | Apache-2.0 |
Last updated: 2026-06-14
安全使用建议
Reasonable to install if you want a local CSS specificity helper. Be aware that the documentation references compute_specificity while the code exports calculate, so importing may require using calculate instead.
能力评估
Purpose & Capability
The artifacts consistently describe a CSS selector specificity calculator, and the Python code implements selector parsing, comparison, JSON output, examples, and tests using standard-library modules.
Instruction Scope
Runtime instructions are narrowly scoped to calculating and comparing CSS selector specificity; there are minor documentation mismatches around the import name and one compare example, but they are functional accuracy issues rather than security concerns.
Install Mechanism
The package contains markdown documentation, one Python utility, tests, and generated summaries; there are no install hooks, package manager scripts, shell installers, or automatic execution paths.
Credentials
The code uses re, sys, argparse, and json, takes selectors from CLI arguments, prints results, and does not access files, network, credentials, environment secrets, or external services.
Persistence & Privilege
No persistence, background process, privilege escalation, credential handling, or mutation of user data is present in the inspected artifacts.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install axiom-css-specificity - 安装完成后,直接呼叫该 Skill 的名称或使用
/axiom-css-specificity触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.2
Initial publish: CSS specificity calculator. W3C Selectors 4 compliant, handles :is/:not/:where.
元数据
常见问题
Axiom Css Specificity 是什么?
CSS specificity calculator — compute (a, b, c) specificity for any CSS selector. Handles :is(), :not(), :where(), combinators, attribute selectors. Use when... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 39 次。
如何安装 Axiom Css Specificity?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install axiom-css-specificity」即可一键安装,无需额外配置。
Axiom Css Specificity 是免费的吗?
是的,Axiom Css Specificity 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Axiom Css Specificity 支持哪些平台?
Axiom Css Specificity 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Axiom Css Specificity?
由 Kofna3369(@kofna3369)开发并维护,当前版本 v0.1.2。
推荐 Skills