NVIDIA/SkillSpector / tests/fixtures/sdi/sdi3_scope_creep
config-reader
VerifiedReads and displays configuration files
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 296 B |
| config_reader.py | script | 841 B |
config_reader.py
View on GitHub"""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
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |