postcss-config-validator

Validate PostCSS config files (.postcssrc, postcss.config.js, package.json#postcss) for plugin ordering, deprecated plugins, Tailwind integration, and best practices. Use when validating CSS processing configs, auditing PostCSS setups, or linting frontend build configuration.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "postcss-config-validator" with this command: npx skills add charlie-morrison/postcss-config-validator

PostCSS Config Validator

Validate .postcssrc, .postcssrc.json, postcss.config.js, postcss.config.ts, and package.json#postcss for deprecated plugins, ordering issues, Tailwind integration problems, parser misconfiguration, and best practices. JS/TS configs are detected but cannot be statically validated. Supports text, JSON, and summary output formats with CI-friendly exit codes.

Commands

# Full validation (all 22+ rules)
python3 scripts/postcss_config_validator.py validate .postcssrc

# Quick structure-only check
python3 scripts/postcss_config_validator.py check .postcssrc.json

# Explain config in human-readable form
python3 scripts/postcss_config_validator.py explain package.json

# Suggest improvements
python3 scripts/postcss_config_validator.py suggest .postcssrc

# JSON output (CI-friendly)
python3 scripts/postcss_config_validator.py validate .postcssrc --format json

# Summary only (pass/fail + counts)
python3 scripts/postcss_config_validator.py validate .postcssrc --format summary

# Strict mode (warnings and infos become errors)
python3 scripts/postcss_config_validator.py validate .postcssrc --strict

Rules (22+)

#IDCategorySeverityRule
1S1StructureErrorFile not found or unreadable
2S2StructureErrorEmpty config file
3S3StructureErrorInvalid JSON syntax
4S4StructureWarningUnknown top-level keys (valid: plugins, parser, syntax, stringifier, map, from, to)
5S5StructureInfoJS/TS config detected — cannot statically validate
6P1PluginsWarningEmpty plugins object/array
7P2PluginsWarningDeprecated plugin (autoprefixer-core, postcss-cssnext, lost, postcss-sprites)
8P3PluginsWarningDuplicate plugins
9P4PluginsInfoPlugin ordering issues (autoprefixer after preset-env, cssnano last)
10P5PluginsInfopostcss-import should be first plugin
11P6PluginsInfoUnknown/uncommon plugin name (not in top 50 list)
12T1TailwindInfotailwindcss without nesting plugin
13T2TailwindWarningtailwindcss after autoprefixer (wrong order)
14T3TailwindInfopostcss-preset-env with tailwindcss (potential conflict)
15X1Syntax/ParserWarningBoth parser and syntax specified
16X2Syntax/ParserInfoUnknown parser value
17X3Syntax/ParserInfoParser set but no matching preprocessor plugin
18M1Source MapsInfoSource maps disabled (map: false)
19M2Source MapsInfoInline source maps enabled (map.inline: true)
20B1Best PracticesWarningNo plugins configured
21B2Best PracticesInfoUsing postcss-preset-env AND individual feature plugins it includes
22B3Best PracticesInfoVery large number of plugins (>15)

Output Formats

  • text (default): Human-readable with severity icons
  • json: Machine-parseable JSON with findings array and summary
  • summary: Pass/fail with error/warning/info counts

Exit Codes

  • 0: No errors (warnings/infos only or clean)
  • 1: One or more errors found
  • 2: File not found or invalid input

Requirements

  • Python 3.8+
  • No external dependencies (pure stdlib)

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Microsoft Sharepoint

Microsoft Sharepoint integration. Manage Sites. Use when the user wants to interact with Microsoft Sharepoint data.

Registry SourceRecently Updated
General

Baidu Wenku AI picture book of video

百度文库AI绘本是一个基于人工智能制作绘本视频的工具,支持生成静态绘本和动态绘本(URL输出)。能帮助文本内容创作者们在缺乏绘画技能的情况下,快速生成精美绘本视频,提高内容生产效率。无论是在儿童教育、亲子互动、品牌营销,还是在社交媒体内容创作等领域都能应用。

Registry SourceRecently Updated
General

即刻手机号码归属地查询

手机号码归属地查询。输入中国大陆 11 位手机号码,查询省份、城市、运营商、运营商类型、邮编、区号和行政区划编码。适用场景:用户说“查一下 17611491111 是哪里的号码”“这个手机号是什么运营商”“帮我查下手机号归属地”等。通过即刻数据开放接口实时查询。

Registry SourceRecently Updated
General

Daily Meal Planner

每日智能菜谱推荐。触发词:今天吃什么/中午吃什么/晚餐推荐/下午茶/夜宵/一周菜单/清淡/辣的/快手菜/减肥。支持按餐次、口味、心情、季节、天气、地域智能推荐,带详细做法和营养数据。

Registry SourceRecently Updated
1540gmmg55