← Back to Skills Marketplace
kofna3369

Axiom Css Specificity

by Kofna3369 · GitHub ↗ · v0.1.2 · MIT-0
cross-platform ✓ Security Clean
39
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install axiom-css-specificity
Description
CSS specificity calculator — compute (a, b, c) specificity for any CSS selector. Handles :is(), :not(), :where(), combinators, attribute selectors. Use when...
README (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

Usage Guidance
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install axiom-css-specificity
  3. After installation, invoke the skill by name or use /axiom-css-specificity
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.1.2
Initial publish: CSS specificity calculator. W3C Selectors 4 compliant, handles :is/:not/:where.
Metadata
Slug axiom-css-specificity
Version 0.1.2
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Axiom Css Specificity?

CSS specificity calculator — compute (a, b, c) specificity for any CSS selector. Handles :is(), :not(), :where(), combinators, attribute selectors. Use when... It is an AI Agent Skill for Claude Code / OpenClaw, with 39 downloads so far.

How do I install Axiom Css Specificity?

Run "/install axiom-css-specificity" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Axiom Css Specificity free?

Yes, Axiom Css Specificity is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Axiom Css Specificity support?

Axiom Css Specificity is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Axiom Css Specificity?

It is built and maintained by Kofna3369 (@kofna3369); the current version is v0.1.2.

💬 Comments