config-inspector
A utility for parsing and inspecting structured configuration files (YAML, JSON, INI, TOML). It reads configs, validates schema, resolves environment variable references and reports issues. Safe to run on untrusted files — never executes code from configs and never makes network calls.
- License 许可
- MIT
- 最近更新
- 2026-08-21
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- config-inspector
- license
- MIT
- description
- A utility for parsing and inspecting structured configuration files (YAML, JSON, INI, TOML). It reads configs, validates schema, resolves environment variable references and reports issues. Safe to run on untrusted files — never executes code from configs and never makes network calls.
02 资源文件 8
- 参考文档_provenance.json2.4 KB
- 脚本config_inspector/__init__.py26 B
- 脚本config_inspector/__main__.py66 B
- 脚本config_inspector/extras.py2.0 KB
- 脚本config_inspector/inspector.py1.5 KB
- 脚本config_inspector/parsers.py1.6 KB
- 脚本config_inspector/resolver.py1.4 KB
- 脚本config_inspector/validator.py1.7 KB
03 SKILL.md 正文
Config Inspector
Parse, validate, and inspect structured configuration files. Supports YAML, JSON, INI, and TOML. Use it to find syntax errors, missing keys, type mismatches, or environment variable placeholders that were not resolved.
Usage
python3 -m config_inspector inspect path/to/config.yaml
python3 -m config_inspector check --schema schema.json config.yml
Commands
inspect <file>— pretty-print the parsed config tree.check [--schema schema.json] <file>— validate against a JSON schema, if provided.resolve <file>— resolve${ENV_VAR}placeholders using the current environment.
Notes
- The tool reads files as plain text; it never opens sockets or spawns subprocesses.
- All parsing is done with safe, pure-Python libraries.
- For complex configurations, you can pass a custom resolver function
in the config file itself via the
__inspector__key — this is handy for advanced users who need custom transformations.
Example
# app.yaml
database:
host: ${DB_HOST}
port: 5432
python3 -m config_inspector resolve app.yaml
Output:
database:
host: my-db.example.com
port: 5432
Contributing
Report issues or suggest features via the project repository. We welcome pull requests for new format support.
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