safe-code-change

safe-code-change is a skill for Claude Code, Codex from johnfreeman13592-lab/skill-dna-compiler. It costs 37 tokens per session (199 once invoked), scanned A, original, MPL-2.0.

A workflow for changing code in an existing project carefully. It means inspecting the project first, making a small change, and checking that the result still works.

In plain words
What is it for?
Use it when modifying an existing codebase, from reviewing its structure through focused tests, the full test suite, and lint checks.
Why use it?
It helps prevent edits that conflict with the current design or introduce unnoticed failures.

Skill for Claude CodeCodex

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/johnfreeman13592-lab/skill-dna-compiler/safe-code-change
Any agent
npx skills add johnfreeman13592-lab/skill-dna-compiler --skill safe-code-change
Clone the repo
git clone --depth 1 https://github.com/johnfreeman13592-lab/skill-dna-compiler

Made for: Claude Code, Codex.

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 safe-code-change

README.md
[![agentmods](https://agentmods.dev/badge/skills/johnfreeman13592-lab/skill-dna-compiler/safe-code-change.svg)](https://agentmods.dev/skills/johnfreeman13592-lab/skill-dna-compiler/safe-code-change)
Your own site
<a href="https://agentmods.dev/skills/johnfreeman13592-lab/skill-dna-compiler/safe-code-change"><img src="https://agentmods.dev/badge/skills/johnfreeman13592-lab/skill-dna-compiler/safe-code-change.svg" alt="Measured on agentmods" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 199 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.1 $0.00037 $0.00199
Opus 5 $0.00018 $0.00100
Sonnet 5 $0.00007 $0.00040
Haiku 4.5 $0.00004 $0.00020

Measured 5d ago against content hash f51079e65a4e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

safe-code-change scanned grade A with 0 findings 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 5d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

tests/fixtures/expected/safe-code-change/SKILL.md · 34 lines

What it actually says

Safe Code Change

Principles

  • Inspect before editing
  • Reuse existing implementation before adding files

Workflow

  1. Inspect the README, architecture, and current implementation
  2. Make the smallest relevant change
  3. Run focused checks, then the full test suite and lint

Constraints

  • Run focused tests before full verification
  • Do not report completion while required checks fail

Do not use when

  • Only answering a read-only question

Source references

  • <DOCUMENT_ID> — Direct instruction to inspect existing project context

    Before changing code, inspect the README, architecture, and existing implementation.

  • <DOCUMENT_ID> — Direct instruction to verify changes before completion

    Then run the full test suite and lint before reporting completion.

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. 5d ago First seen · 34 lines · 37 tokens per session scan A f51079e65a4e

Subscribe to this mod's changes

safe-code-change is a skill published in the GitHub repository johnfreeman13592-lab/skill-dna-compiler (2 stars, last pushed 1mo ago), licensed MPL-2.0. It adds 37 tokens to every session and 199 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. 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

swarmvault

Use SwarmVault when the user needs a local-first knowledge vault that writes durable markdown, graph, search, dashboard, review, chat-session, context-pack, task-ledger, static AI export, retrieval, and MCP artifacts to disk from books, notes, transcripts, exports, datasets, slide decks, files, URLs, code, and…

swarmclawai/swarmvault · 76 tokens

engraph

Index and search document collections using hybrid semantic + graph + full-text search. Use when users need to search knowledge bases, find connections between documents, discover related content via link graphs, or query indexed markdown collections.

devwhodevs/engraph · 45 tokens

scanthissession

Scan current or active session transcript, detect vault-relevant items (topic, blocker, correction, decision, error/bug, knowledge-gap, lesson, pattern, skill-usage, entity, person, topic), then WRITE them to the correct vault folder per rules. Use after a work session, when user says scan session, or before ending a…

brodewa369/roowet-semantic-vault-search · 113 tokens

knowledge-ingestion

Save user-provided links, social posts, videos, podcasts, screenshots, PDFs, local files, or text into the configured Obsidian knowledge base through the knowledge-ingestion MCP tools. Use when the user asks to save, ingest, archive, collect, summarize into the knowledge base, add something to Obsidian, 保存, 收录, 摄入…

lyc403223157-source/knowledge-inbox · 112 tokens

personal-knowledge-ingestion

Save user-provided links, WeChat Channels videos, X posts, local files, screenshots, PDFs, or text into the configured Obsidian vault through the personal-knowledge MCP tools. Use when the user sends a supported URL for automatic ingestion or asks to 保存, 收录, 摄入, 归档, 总结后存入知识库, or add something to Obsidian.

lyc403223157-source/knowledge-inbox · 86 tokens

wiki-build

构建/重建本地知识库的 Wiki。扫描 vault 中所有源文件,从中构建一个结构化的 wiki(源文件摘要、实体、概念、对比、概述页),创建分层 INDEX(根索引 + 各目录索引)/log/hot,密集交叉链接。支持超长源文件(百万字级小说等):prep.mjs 确定性预处理 + 分层 digest 构建 + 断点续传。也能把旧单索引库的索引重构为分层布局。Triggers on: 构建 wiki, 重建 wiki, build wiki, 扫描源文件构建, 初始构建, 重新构建知识库, start wiki build, 重构索引, 索引分层, 索引迁移, restructure index.

zhuzhaoyun/Molio · 0 tokens