/install caniuse
Browser Compatibility Query
Query browser compatibility data for web features using the caniuse CLI tool.
Prerequisites Check
Before querying, verify caniuse-cli is installed:
which caniuse || echo "NOT_INSTALLED"
If not installed, tell the user:
caniuse-cli is not installed. Install it with:
npm install -g @bramus/caniuse-cli
Querying Compatibility
Run the caniuse command with the feature name:
caniuse \x3Cfeature-name>
Feature name formats:
- Hyphenated:
caniuse viewport-units - Quoted phrases:
caniuse "viewport units" - With special chars:
caniuse @property
Common feature name mappings (user term → caniuse query):
:has()selector →css-has:where()selector →css-where:is()selector →css-matches-pseudo- container queries →
css-container-queries(size) orcss-container-queries-style(style) - CSS nesting →
css-nesting - subgrid →
subgrid - aspect-ratio →
css-aspect-ratio - gap in flexbox →
flexbox-gap - CSS grid →
css-grid - flexbox →
flexbox
JS/API features:
- ES modules →
es6-module - async/await →
async-functions - optional chaining →
mdn-javascript_operators_optional_chaining - fetch API →
fetch - service workers →
serviceworkers - WebGPU →
webgpu
Presenting Results
After running the command:
-
Show the compatibility table as returned by caniuse
-
Highlight key findings:
- Which major browsers fully support it
- Any browsers with partial support (note the limitations)
- Browsers that don't support it at all
-
Call out important notes if the output includes numbered notes (these often contain critical info about prefixes, flags, or partial implementations)
-
Give practical advice based on the results:
- If widely supported: "Safe to use in production"
- If partial support: "Works but check the notes for limitations"
- If poor support: "Consider a polyfill or fallback"
Handling Unknown Features
If caniuse returns "Nothing was found":
-
Check the mapping table above — many features have specific caniuse names (e.g.,
:has()→css-has) -
Try common prefixes:
- CSS properties: try
css-prefix (e.g.,css-grid,css-variables) - MDN data: try
mdn-prefix for JS features
- CSS properties: try
-
Try variations:
- Remove special characters:
:has()→hasorcss-has - Use hyphens: "container queries" →
container-queries
- Remove special characters:
-
If still not found, tell the user:
This feature might not be in the caniuse database, or uses a different name. Check https://caniuse.com to find the correct feature name.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install caniuse - After installation, invoke the skill by name or use
/caniuse - Provide required inputs per the skill's parameter spec and get structured output
What is can i use?
Query browser compatibility for CSS/JS features using caniuse-cli. Use when user asks about browser support, compatibility, "can I use X", "does X work in IE... It is an AI Agent Skill for Claude Code / OpenClaw, with 70 downloads so far.
How do I install can i use?
Run "/install caniuse" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is can i use free?
Yes, can i use is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does can i use support?
can i use is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created can i use?
It is built and maintained by 周祺 (@zhouqicf); the current version is v1.0.0.