stylelint-config-validator for Openclaw

A specialized tool for validating Stylelint configuration files to ensure modern standards, rule accuracy, and optimal plugin usage.

charlie-morrison
v1.0.1
May 1, 2026
0
842
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install stylelint-config-validator

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install stylelint-config-validator using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is stylelint-config-validator?

The stylelint-config-validator is an essential utility for developers maintaining high-quality CSS and SCSS codebases. As part of the ecosystem of Openclaw Skills, it provides a deep-dive analysis of Stylelint configuration files, specifically targeting the transition to Stylelint 16 by identifying over 70 deprecated rules. It ensures that your styling governance is not just functional, but aligned with current best practices.

This skill eliminates the guesswork involved in complex configurations by checking for unknown keys, invalid types, and improper ordering of extends—such as the critical requirement that Prettier configurations appear last. By integrating this into your development workflow, you ensure that your linting engine is lean, modern, and free of conflicting plugins or rules.

stylelint-config-validator Use Cases

  • Migrating legacy Stylelint configurations to version 16 and above.
  • Auditing CI/CD pipelines to prevent the introduction of deprecated or unknown linting rules.
  • Debugging complex configuration inheritance and plugin conflicts in monorepos.
  • Cleaning up redundant null values and excessively disabled rules in large CSS projects.

How stylelint-config-validator Works

  1. The tool parses the specified configuration file, supporting JSON, YAML, and standard .stylelintrc formats.
  2. It performs a structural validation to ensure all root keys and property types are valid.
  3. The validator runs the configuration against a comprehensive blacklist of deprecated rules and renamed disallowed-lists.
  4. It analyzes the 'extends' and 'plugins' arrays to verify the correct order of operations and presence of required plugins.
  5. A detailed report is generated in the chosen format (text, JSON, or summary), providing actionable severity levels for every identified issue.

stylelint-config-validator Setup

The stylelint-config-validator is a lightweight Python-based tool with no external dependencies, making it perfect for Openclaw Skills environments.

# Clone or place the script in your project
# Ensure Python 3.8+ is installed

# Basic validation
python3 scripts/stylelint_validator.py lint .stylelintrc.json

# Strict mode for CI environments
python3 scripts/stylelint_validator.py validate --strict .stylelintrc

stylelint-config-validator Data Schema & Taxonomy

The skill processes configuration files and outputs structured data based on the following taxonomy:

Data Category Validation Check Description
Config Structure Unknown Keys Identifies keys that Stylelint does not recognize.
Rules Deprecation Checks against a list of 70+ removed or renamed rules.
Extends Prettier Order Ensures 'stylelint-config-prettier' is at the end of the array.
Plugins Prefix Match Validates that plugin-specific rules have the corresponding plugin declared.
Overrides Files Property Ensures override blocks are correctly targeted to files.

stylelint-config-validator Advanced Features

  • Multi-format output (JSON/Text/Summary) for easy integration with third-party dashboards and Openclaw Skills automations.
  • Custom severity filtering using the --min-severity flag to focus on critical errors only.
  • Specialized deprecated command for targeted cleanup of legacy rules.
  • Strict exit codes (0, 1, 2) specifically designed for robust shell scripting and automated failure detection.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*