---
name: php186-skill-32677
description: "AI驱动的配置验证器，自动校验 JSON/YAML 配置、检测冲突并提供最佳实践建议。"
---

# Cuihua Config Validator

## cuihua-config-validator ⚙️

 

> **Validate configs with AI-powered insights**

 

## Features

 

- JSON/YAML validation
- Environment variable checks
- Conflict detection
- Best practices

 

## Quick Start

 

> "Validate package.json" "Check .env file"

 

## Install

 

\`\`\`bash clawhub install cuihua-config-validator \`\`\`

 

MIT | 🌸 Cuihua

 

## What It Does

 

Validates configuration files and catches common mistakes:

 

### JSON Validation

 

- Syntax errors
- Missing commas
- Trailing commas
- Invalid escape sequences

 

### Environment Variables

 

- Missing required vars
- Typos in variable names
- Unused variables
- Security risks (hardcoded secrets)

 

### Best Practices

 

- Naming conventions
- Structure recommendations
- Performance tips
- Security guidelines

 

## Examples

 

**Input:**

 

```
{
  "name": "my-app"
  "version": "1.0.0"
}
```

 

**Output:**

 

```
❌ Syntax error (line 2): Missing comma after "my-app"
```

 

**Fix:**

 

```
{
  "name": "my-app",
  "version": "1.0.0"
}
```

 

## Supported Formats

 

- package.json
- tsconfig.json
- .env files
- docker-compose.yml
- Custom JSON/YAML

 

Full docs: https://clawhub.ai/skills/cuihua-config-validator
