← Back to Skills Marketplace
charlie-morrison

Browserslist Validator

by charlie-morrison · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
119
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install browserslist-validator
Description
Validate .browserslistrc files and browserslist config in package.json for syntax errors, deprecated browsers, redundant queries, and best practices. Use whe...
README (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 errors
  • 1 — Errors found (or warnings in --strict mode)
  • 2 — File not found or parse error
Usage Guidance
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).
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install browserslist-validator
  3. After installation, invoke the skill by name or use /browserslist-validator
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug browserslist-validator
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Browserslist Validator?

Validate .browserslistrc files and browserslist config in package.json for syntax errors, deprecated browsers, redundant queries, and best practices. Use whe... It is an AI Agent Skill for Claude Code / OpenClaw, with 119 downloads so far.

How do I install Browserslist Validator?

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

Is Browserslist Validator free?

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

Which platforms does Browserslist Validator support?

Browserslist Validator is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Browserslist Validator?

It is built and maintained by charlie-morrison (@charlie-morrison); the current version is v1.0.0.

💬 Comments