← 返回 Skills 市场
Browserslist Validator
作者
charlie-morrison
· GitHub ↗
· v1.0.0
· MIT-0
119
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install browserslist-validator
功能描述
Validate .browserslistrc files and browserslist config in package.json for syntax errors, deprecated browsers, redundant queries, and best practices. Use whe...
使用说明 (SKILL.md)
Browserslist Validator
Validate .browserslistrc files and browserslist entries in package.json for syntax errors, deprecated browsers, redundant queries, and best practices.
Commands
# Full validation (all rules)
python3 scripts/browserslist_validator.py validate .browserslistrc
# Validate browserslist in package.json
python3 scripts/browserslist_validator.py validate package.json
# Quick syntax-only check
python3 scripts/browserslist_validator.py check .browserslistrc
# Estimate coverage
python3 scripts/browserslist_validator.py coverage .browserslistrc
# Explain each query in human-readable form
python3 scripts/browserslist_validator.py explain .browserslistrc
# JSON output
python3 scripts/browserslist_validator.py validate .browserslistrc --format json
# One-line PASS/WARN/FAIL summary
python3 scripts/browserslist_validator.py validate .browserslistrc --format summary
# Strict mode (warnings become errors)
python3 scripts/browserslist_validator.py validate .browserslistrc --strict
# Target environment
python3 scripts/browserslist_validator.py validate .browserslistrc --env production
Rules (20)
| # | Category | Severity | Rule |
|---|---|---|---|
| S1 | Syntax | E | File not found or unreadable |
| S2 | Syntax | E | Empty config (no queries) |
| S3 | Syntax | E | Invalid query syntax / unknown browser name |
| S4 | Syntax | W | Duplicate queries |
| B1 | Browsers | W | Dead/deprecated browser (IE, Blackberry, etc.) |
| B2 | Browsers | W | Browser with \x3C0.01% global usage |
| B3 | Browsers | E | Browser version does not exist (e.g. Chrome 999) |
| B4 | Browsers | E | Unknown browser name |
| Q1 | Queries | W | Redundant query (covered by broader query) |
| Q2 | Queries | W | Conflicting queries (e.g. > 1% and \x3C 0.5%) |
| Q3 | Queries | E | not dead without any positive query |
| Q4 | Queries | W | Empty result after not negation |
| C1 | Coverage | W | Very low total coverage (\x3C80%) |
| C2 | Coverage | W | Very high coverage (>99.5%, may include dead browsers) |
| C3 | Coverage | I | No mobile browser coverage hint |
| C4 | Coverage | I | No country-specific override detected |
| P1 | Best Practices | W | IE queries present (recommend dropping IE) |
| P2 | Best Practices | W | Unreasonably old versions (last 20 versions) |
| P3 | Best Practices | W | all query used (too broad) |
| P4 | Best Practices | W | Version pinning instead of range (Chrome 90) |
Output Formats
- text (default): Human-readable with
[E]/[W]/[I]severity prefix - json: Machine-readable structured output
- summary: Single-line
PASS/WARN/FAIL
Exit Codes
0— No errors1— Errors found (or warnings in--strictmode)2— File not found or parse error
安全使用建议
This skill appears to do exactly what it claims: a Python-based validator for browserslist configs. Before running: ensure you trust the source of the skill (it contains an executable script), have Python 3 available, and run the validator only on files you intend to analyze (it reads files you point it at). If you want extra assurance, open and review scripts/browserslist_validator.py locally (it contains no network calls or hidden endpoints in the provided content).
功能分析
Type: OpenClaw Skill
Name: browserslist-validator
Version: 1.0.0
The browserslist-validator skill bundle is a legitimate utility for auditing frontend browser targeting configurations. The core logic in scripts/browserslist_validator.py uses regex-based parsing and embedded datasets to validate .browserslistrc and package.json files without any network activity, external command execution, or sensitive data access. The SKILL.md instructions are well-defined and align strictly with the tool's stated purpose.
能力评估
Purpose & Capability
Name/description (browserslist validation) matches the delivered assets: SKILL.md documents commands that run the included Python validator and there are no unrelated environment variables, binaries, or install steps requested.
Instruction Scope
SKILL.md instructs the agent to run the included script against .browserslistrc or package.json. The script reads provided files and produces validation output; the instructions do not ask the agent to read other unrelated files, contact external endpoints, or exfiltrate data.
Install Mechanism
There is no install spec (instruction-only skill + bundled script). No network downloads, package installs, or archive extraction are required.
Credentials
The skill requires no environment variables, credentials, or config paths. The bundled script operates on local files supplied by the user (as expected for a linters/validator).
Persistence & Privilege
always is false and the skill does not request elevated or persistent presence. It does not modify other skills or system-wide settings in the provided materials.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install browserslist-validator - 安装完成后,直接呼叫该 Skill 的名称或使用
/browserslist-validator触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: validate .browserslistrc and package.json browserslist config. 20 rules across syntax, browsers, queries, coverage, best practices. 4 commands, 3 output formats.
元数据
常见问题
Browserslist Validator 是什么?
Validate .browserslistrc files and browserslist config in package.json for syntax errors, deprecated browsers, redundant queries, and best practices. Use whe... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 119 次。
如何安装 Browserslist Validator?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install browserslist-validator」即可一键安装,无需额外配置。
Browserslist Validator 是免费的吗?
是的,Browserslist Validator 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Browserslist Validator 支持哪些平台?
Browserslist Validator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Browserslist Validator?
由 charlie-morrison(@charlie-morrison)开发并维护,当前版本 v1.0.0。
推荐 Skills