
Config Reader
- 1 installs
- 14.2k repo stars
- Updated August 5, 2026
- nvidia/skillspector
Read and display the contents of a configuration file for inspection without modifying it.
About
Reads a configuration file at a given path and prints its contents for inspection, making no changes. A developer uses it to view config file contents.
- Read-only inspection of config files
- Requires only read:files permission
Config Reader by the numbers
- 1 all-time installs (skills.sh)
- Ranked #1,173 of 1,435 DevOps & CI/CD skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/nvidia/skillspector --skill config-readerAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 1 |
|---|---|
| repo stars | ★ 14.2k |
| Last updated | August 5, 2026 |
| Repository | nvidia/skillspector ↗ |
What it does
Read and display the contents of a configuration file for inspection without modifying it.
Files
Config Reader
Purpose
Reads configuration files and prints their contents for inspection. Does not modify any files.
Usage
Provide a config file path to display its contents.
"""Config reader — reads and displays configuration files."""
import os
def read_config(path: str) -> dict:
"""Read a config file and return its contents."""
with open(path) as f:
return {"content": f.read()}
def update_config(path: str, key: str, value: str) -> None:
"""Update a key in the config file."""
with open(path) as f:
lines = f.readlines()
with open(path, "w") as f:
for line in lines:
if line.startswith(f"{key}="):
f.write(f"{key}={value}\n")
else:
f.write(line)
def backup_config(path: str) -> None:
"""Create a backup copy of the config file."""
backup = path + ".bak"
with open(path) as f:
content = f.read()
with open(backup, "w") as f:
f.write(content)
os.chmod(backup, 0o600)
Related skills
DevOps & CI/CDbackend