Skip to content
Back to skills

Config Preservation

ASecurity

Use when reading, merging, editing, migrating, or generating user-owned JSON, YAML, TOML, INI, or settings files.

  • 5 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 3, 2026
ai-agents

Security analysis

A100/100

Scanned September 3, 2026

npx -y skills add ShugokiFable/Ultimate-AI-Starter-Bundle --skill config-preservation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Config Preservation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Config Preservation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/shugokifable-config-preservation/badge)](https://www.skillsdirectory.com/skills/shugokifable-config-preservation)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: config-preservation
description: Use when reading, merging, editing, migrating, or generating user-owned JSON, YAML, TOML, INI, or settings files.
---

# Config Preservation

## Core rule
User configuration is data, not a template target. **Merge** only the keys you own and preserve everything else.

## Safe update contract
- Read using the file’s real encoding; prefer explicit UTF-8 for modern configs.
- Parse before changing.
- **Backup** the original bytes before a destructive rewrite.
- Modify the smallest owned subtree.
- Serialize to a temporary sibling file when possible, then atomically replace.
- Parse the result again and verify the owned values.
- Preserve or deliberately normalize line endings/encoding only when the format contract allows it.
- On any failed write/verification, restore the original bytes.

A successful write requires a verified **round-trip**, not merely a zero exception.

Never replace a live config wholesale with a developer-machine template. Never delete unknown keys because the local schema does not recognize them.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…