← 返回 Skills 市场
zhouqicf

can i use

作者 周祺 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
70
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install caniuse
功能描述
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...
使用说明 (SKILL.md)

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) or css-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:

  1. Show the compatibility table as returned by caniuse

  2. 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
  3. Call out important notes if the output includes numbered notes (these often contain critical info about prefixes, flags, or partial implementations)

  4. 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":

  1. Check the mapping table above — many features have specific caniuse names (e.g., :has()css-has)

  2. Try common prefixes:

    • CSS properties: try css- prefix (e.g., css-grid, css-variables)
    • MDN data: try mdn- prefix for JS features
  3. Try variations:

    • Remove special characters: :has()has or css-has
    • Use hyphens: "container queries" → container-queries
  4. 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.

安全使用建议
This skill is a simple instruction-only wrapper for the caniuse CLI and appears safe and coherent. Before installing the suggested npm package yourself, verify you trust the package name (@bramus/caniuse-cli) and your environment's npm/global-install policy (global installs may require elevated privileges). Note that the agent will attempt to run shell commands (which is expected here); if you prefer, run `caniuse` locally and paste results instead of installing anything in a sensitive environment.
功能分析
Type: OpenClaw Skill Name: caniuse Version: 1.0.0 The skill provides browser compatibility lookups using the `caniuse` CLI tool. It is classified as suspicious because the instructions in `SKILL.md` direct the agent to execute shell commands using unsanitized user input (`caniuse <feature-name>`), which presents a shell injection vulnerability. While the functionality is aligned with its stated purpose and the recommended dependency (`@bramus/caniuse-cli`) is legitimate, the lack of input validation poses a risk if the agent processes malicious user queries.
能力评估
Purpose & Capability
Name/description (querying browser compatibility) match the SKILL.md: it only directs use of the caniuse CLI and provides feature-name mappings. Nothing requested (env vars, binaries, configs) is outside that purpose.
Instruction Scope
Runtime instructions are narrowly scoped to checking for the caniuse binary and running `caniuse <feature>`, mapping user terms to caniuse feature names, and formatting results. The instructions do not ask the agent to read unrelated files, environment variables, or exfiltrate data.
Install Mechanism
There is no install spec (instruction-only). The SKILL.md suggests installing `@bramus/caniuse-cli` via npm if missing, which is a reasonable, transparent recommendation rather than an automated download.
Credentials
The skill requests no environment variables or credentials. The only implicit requirement is the availability of the caniuse CLI (or the ability to install it), which is proportional to the task.
Persistence & Privilege
always is false and the skill has no install-time persistence or requests to modify other skills or system-wide settings. It does not require elevated or permanent privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install caniuse
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /caniuse 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
caniuse skill 1.0.0 – Initial Release - Provides browser compatibility queries for CSS/JS features via caniuse-cli. - Includes detailed mapping of common feature names to caniuse queries. - Offers installation guidance if caniuse-cli is missing. - Explains how to present results and highlight key compatibility findings. - Gives fallback instructions if a feature is not found in the database.
元数据
Slug caniuse
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 70 次。

如何安装 can i use?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install caniuse」即可一键安装,无需额外配置。

can i use 是免费的吗?

是的,can i use 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

can i use 支持哪些平台?

can i use 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 can i use?

由 周祺(@zhouqicf)开发并维护,当前版本 v1.0.0。

💬 留言讨论