# Config Validator

> Validate wavecapsdr.yaml configuration files for syntax errors, schema violations, and logical inconsistencies. Use when editing config, troubleshooting startup failures, or verifying recipe/preset definitions before deployment.

- Skill: `majiayu000/config-validator-2` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds add majiayu000/config-validator-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/config-validator-2/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/config-validator-2

---


# Config Validator for WaveCap-SDR

This skill validates `backend/config/wavecapsdr.yaml` for errors and provides helpful suggestions.

## When to Use This Skill

Use this skill when:
- Server fails to start with config errors
- Editing wavecapsdr.yaml manually
- Adding new presets or recipes
- Migrating config between environments
- Troubleshooting "invalid config" errors

## Usage

Validate the default config:

```bash
PYTHONPATH=backend backend/.venv/bin/python .claude/skills/config-validator/validate_config.py
```

Validate a specific config file:

```bash
PYTHONPATH=backend backend/.venv/bin/python .claude/skills/config-validator/validate_config.py \
  --config /path/to/wavecapsdr.yaml
```

## Common Validation Errors

### YAML Syntax Errors
- Missing colons
- Incorrect indentation (use spaces, not tabs)
- Unquoted special characters

### Schema Violations
- Missing required fields (server.port, device.driver)
- Invalid types (string for integer field)
- Out-of-range values (negative sample rate)

### Logical Errors
- Center frequency outside device range
- Sample rate not supported by device
- Channel offset beyond sample rate
- Duplicate recipe/preset names

## Files in This Skill

- `SKILL.md`: This file
- `validate_config.py`: Config validation script

