edit-a-live-config-safely

edit-a-live-config-safely is a skill for Claude Code, Codex from everywan-dev/claude-code-engineering. It costs 35 tokens per session (1,316 once invoked), scanned A, original, Apache-2.0.

A careful method for editing a configuration file that a running program is already reading.

In plain words
What is it for?
Use it to make a targeted change, preserve the file’s identity, validate the result, and check every relevant configuration entry before applying it.
Why use it?
It lowers the risk of changing the wrong repeated section, replacing the file itself, or applying valid-looking settings to the wrong service.

Skill for Claude CodeCodex

Part of the claude-code-engineering plugin — 47 skills, 1 command, 8 agents, 1 hook shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/everywan-dev/claude-code-engineering/edit-a-live-config-safely
Any agent
npx skills add everywan-dev/claude-code-engineering --skill edit-a-live-config-safely
Clone the repo
git clone --depth 1 https://github.com/everywan-dev/claude-code-engineering

Made for: Claude Code, Codex.

Or install claude-code-engineering, the plugin that ships this one along with the rest of its 47 skills, 1 command, 8 agents, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for edit-a-live-config-safely

README.md
[![agentmods](https://agentmods.dev/badge/skills/everywan-dev/claude-code-engineering/edit-a-live-config-safely.svg)](https://agentmods.dev/skills/everywan-dev/claude-code-engineering/edit-a-live-config-safely)
Your own site
<a href="https://agentmods.dev/skills/everywan-dev/claude-code-engineering/edit-a-live-config-safely"><img src="https://agentmods.dev/badge/skills/everywan-dev/claude-code-engineering/edit-a-live-config-safely.svg" alt="Measured on agentmods" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,316 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00035 $0.01316
Opus 5 $0.00017 $0.00658
Sonnet 5 $0.00007 $0.00263
Haiku 4.5 $0.00003 $0.00132

Measured 3d ago against content hash 9ec2bf35516b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

edit-a-live-config-safely scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -sS --resolve the.name:443:<address-of-node-1> https://the.name/new/path -o /dev/null -w '%{http_code}\n'
skills/edit-a-live-config-safely/SKILL.md · 137 lines

How it starts

The opening of the file, as written. The whole thing — 137 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Edit a live config safely

Editing a configuration file that a process is already reading is not the same as editing a source file. The file is an interface with something that is running, and three of the four ways it goes wrong leave the file looking perfectly correct afterwards.

The four rules

1. Substitute by unique anchor. Never rewrite the file

Find an exact string, replace that string. Do not regenerate the file from a template, do not "clean it up while you are there", do not reorder it.

⚠️ Check that the anchor appears exactly once, before replacing. Count it:

rg -c --fixed-strings 'the exact text you are anchoring on' path/to/config

If the count is not 1, the anchor is wrong. Extend it — take more surrounding lines until it is unique.

🔴 This is how latent bombs get in. A repeated anchor puts the change in the wrong block, and the file is still syntactically valid. Nothing complains. The process reloads happily. The change simply applies to the wrong service, the wrong host, the wrong environment — and it is found weeks later by whoever is debugging something that seems unrelated.

A file that fails to parse is a good outcome. It tells you immediately. The dangerous edit is the one that parses.

2. Keep the inode

Write in place. Do not use anything that writes a temporary file and renames it over the original.

Why: when a single file is mounted into a running process — a common way to inject one config file without mounting a whole directory — the mount resolves to the inode. Replace the file and the mount still points at the old inode. The file on disk shows your change. The process is reading the previous contents. Every tool you use to check agrees with you, and the process disagrees with all of them.

The same trap catches anything holding an open file descriptor across the edit.

Safe: an in-place edit that opens and writes the existing file. Unsafe: any "atomic write" helper, any mv of a new file over the old one, any editor configured to write-then-rename.

Read the full file on GitHub · 137 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 137 lines · 35 tokens per session scan A 9ec2bf35516b

Subscribe to this mod's changes

edit-a-live-config-safely is a skill published in the GitHub repository everywan-dev/claude-code-engineering (2 stars, last pushed 15d ago), licensed Apache-2.0. It adds 35 tokens to every session and 1,316 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

claude-project-manifest

Creates annotated bibliography-style manifests for Claude projects, tracking files, conversation threads, and relationships with unique IDs and annotations. Use when documenting project contents, creating file inventories, tracking conversation history, or building navigable knowledge maps.

organvm-iv-taxis/a-i--skills · 50 tokens

proofpress

Preserve or inspect decision history for Markdown and static HTML knowledge artifacts with Proofpress. Use when creating or accepting a meaningful revision to an ADR, design doc, PRD, README, strategy note, portable .md artifact, or static .html/.htm artifact in a configured repository, or when receiving a file…

chenmingtang830/proofpress · 82 tokens

llm-wiki

Maintain a personal team knowledge base using the LLM Wiki pattern — incremental ingest, query, and lint operations on a layered wiki architecture.

TheSmuks/ai-project-template · 31 tokens

PBE Extractor

Extract invariant principles from any text — find the ideas that survive rephrasing.

live-neon/skills · 21 tokens

Principle Synthesizer

Synthesize invariant principles from 3+ sources — find the core that survives across all expressions.

live-neon/skills · 25 tokens

book-to-skill

Use when convert technical books and documents (PDF, EPUB, DOCX, HTML, Markdown, RTF, MOBI) into structured agent skills with frameworks, mental models, chapter references, and decision rules. Includes full extraction pipeline. Use when the user wants to turn a book or document collection into a reusable agent skill…

oyi77/1ai-skills · 74 tokens