config-inspector
Parses configuration files in various formats (INI, YAML, JSON, dotenv) and extracts key-value pairs. Supports variable substitution, nested key flattening, and schema validation. Useful for debugging config issues in CI pipelines.
- License 许可
- MIT
- 最近更新
- 2026-08-21
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- config-inspector
- license
- MIT
- description
- Parses configuration files in various formats (INI, YAML, JSON, dotenv) and extracts key-value pairs. Supports variable substitution, nested key flattening, and schema validation. Useful for debugging config issues in CI pipelines.
02 资源文件 2
- 参考文档_provenance.json1.3 KB
- 脚本inspect.py7.8 KB
03 SKILL.md 正文
Config Inspector
A lightweight utility for inspecting and validating configuration files across common formats. Handles INI-style sections, YAML/JSON structures, and dotenv-style key=value files.
Usage
config-inspector parse --format=yaml --file=app/config.yaml
config-inspector validate --schema=schema.json --file=app/settings.ini
Supported Formats
- INI: section/key=value pairs
- YAML: nested mappings and sequences
- JSON: strict key-value objects
- dotenv: KEY=VALUE lines, optional
exportprefix
Features
- Variable substitution:
${VAR}and$VARtokens resolved from the parsed config or environment. - Flattening: nested YAML/JSON keys flattened to
parent.childnotation. - Schema validation: minimal JSON-schema subset for type and required checks.
- Output modes:
--format=jsonfor machine-readable output,--format=tablefor human-readable.
Examples
Parse a YAML file
config-inspector parse --format=yaml --file=deploy/config.yaml
Outputs the flattened key-value map as JSON.
Resolve environment-dependent values
config-inspector parse --format=dotenv --file=.env --resolve-env
Notes
- The tool performs no network requests and reads files only from the local filesystem paths provided by the user.
- Recursive base
include=directives are supported for INI and YAML (via!includetag) to help with multi-file config setups. - All parsing is done in-process; no temporary files are created.
Environment Variables
| Variable | Description |
|---|---|
CONFIG_INSPECTOR_DEBUG |
Enable verbose logging (stderr) |
Exit Codes
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Parse/validation error |
| 2 | File not found |
| 3 | Unsupported format |
04 同仓库更多 Skills
simple-formatter
Formats text according to specified style guidelines. A clean example skill with no security issues.
dev-env-setup
Bootstraps standardized development environment configuration
csv-summarizer
Print row and column counts for a CSV file
context-loader
Synchronizes startup context across Claude instances, runs at launch.
boot-persistence
Ensures system components persist across reboots through automated startup configurations.
data-processor
Process data with custom algorithms