Rollup Config Validator for Openclaw

A comprehensive linting and validation tool for Rollup bundler configurations to ensure build pipeline integrity.

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

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install rollup-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 rollup-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 Rollup Config Validator?

Rollup Config Validator is a specialized utility designed to audit and optimize Rollup bundler configurations. By analyzing JSON representations of rollup.config.js files, it identifies over 22 unique issues ranging from structural errors to sophisticated plugin ordering conflicts. This tool is a vital addition to the Openclaw Skills library for developers who need to ensure their build pipelines are efficient, error-free, and follow modern best practices.

Whether you are migrating Rollup versions, troubleshooting bundle size issues, or setting up a CI/CD pipeline, this validator provides the technical depth required to maintain high-quality build artifacts. It helps bridge the gap between complex JavaScript configurations and machine-readable validation results, making it an essential part of any modern frontend development workflow within the Openclaw Skills ecosystem.

Rollup Config Validator Use Cases

  • Validating Rollup bundler configurations during CI/CD pipeline runs to prevent broken builds.
  • Auditing complex build pipelines for plugin ordering issues, such as ensuring resolve runs before commonjs.
  • Migrating legacy Rollup configurations to modern @rollup/plugin scoped packages.
  • Linting config files to identify deprecated options and treeshaking misconfigurations.
  • Explaining complex Rollup setups in a human-readable format for team reviews.

How Rollup Config Validator Works

  1. The user exports their Rollup configuration as a JSON object, typically via a Node.js wrapper script.
  2. The Rollup Config Validator receives the JSON input and parses the top-level configuration keys.
  3. The tool runs a battery of 22+ validation rules across categories like Structure, Output, External modules, and Plugins.
  4. Findings are categorized by severity (Error or Warning) and assigned a specific rule ID (e.g., O4 for missing UMD names).
  5. The tool generates a report in the specified format (text, JSON, or summary) and exits with a status code optimized for automation.

Rollup Config Validator Setup

To start using this tool from Openclaw Skills, ensure you have Python 3.8+ installed. No external dependencies are required.

# Step 1: Export your config to JSON
node -e "const c = require('./rollup.config.js'); console.log(JSON.stringify(c, null, 2))" > rollup.config.json

# Step 2: Run the validator
python3 scripts/rollup_config_validator.py validate rollup.config.json

Rollup Config Validator Data Schema & Taxonomy

The skill processes JSON-formatted Rollup configuration objects and outputs structured finding reports.

Feature Description
Input Type JSON (Representing Rollup Config Object)
Output Formats text (default), json, summary
Exit Codes 0 (Success/Warnings), 1 (Errors Found), 2 (Input Error)
Rule Coverage 22+ Rules (Structure, Output, Plugins, Treeshake, Best Practices)

Rollup Config Validator Advanced Features

  • Strict Mode: Use the --strict flag to treat all warnings as errors, perfect for high-integrity production environments.
  • Machine-Parseable Output: Generate JSON arrays of findings for integration into custom developer dashboards or internal tools.
  • Human-Readable Explanations: The explain command breaks down complex config logic into plain English.
  • CI-Friendly Design: Pure Python standard library implementation ensures zero-dependency execution in any environment.
  • Specificity Rules: Detects nuanced issues like Node.js built-ins missing from the external array or fragile regex patterns.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*