safe-project-mutation

safe-project-mutation is a skill for Codex from hoatv2211/GameStudio-CodexKIT. It costs 35 tokens per session (881 once invoked), scanned A, original, MIT.

A safety process for changing project files or generated data. It separates inspection from editing and requires an exact scope, a backup record, verification and a tested way to restore the previous state.

In plain words
What is it for?
Use it for scripted edits, project scaffolding, configuration rewrites, generated files and asset metadata changes. It does not authorize database writes, publishing, credential changes or destructive cleanup.
Why use it?
It reduces the risk that bulk edits, generated files or configuration changes damage the project or cannot be undone. It also catches unsafe paths and changes outside the approved repository.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions AGENTS.md; mentions Codex.

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/hoatv2211/gamestudio-codexkit/safe-project-mutation
Any agent
npx skills add hoatv2211/GameStudio-CodexKIT --skill safe-project-mutation
Clone the repo
git clone --depth 1 https://github.com/hoatv2211/GameStudio-CodexKIT

Made for: 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-project-mutation

README.md
[![agentmods](https://agentmods.dev/badge/skills/hoatv2211/gamestudio-codexkit/safe-project-mutation.svg)](https://agentmods.dev/skills/hoatv2211/gamestudio-codexkit/safe-project-mutation)
Your own site
<a href="https://agentmods.dev/skills/hoatv2211/gamestudio-codexkit/safe-project-mutation"><img src="https://agentmods.dev/badge/skills/hoatv2211/gamestudio-codexkit/safe-project-mutation.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 881 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.00035 $0.00881
Opus 5 $0.00017 $0.00441
Sonnet 5 $0.00007 $0.00176
Haiku 4.5 $0.00003 $0.00088

Measured 6d ago against content hash 9705ae2dd069, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

safe-project-mutation 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 6d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/safe_mutation.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/safe-project-mutation/SKILL.md · 85 lines

How it starts

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

Safe Project Mutation

Overview

Separate inspection from mutation. Every applied file change must be scoped, reviewable, restorable, and verified.

When to use

Use for scripted edits, bulk normalization, generated files, project scaffolding, config rewrites, asset metadata operations, or any medium-risk file mutation.

When NOT to use

Do not use this skill as the primary owner for a scaffold or per-project adapter; use studio-project-scaffold and keep mutation safety as its dependency. Do not use it to authorize database writes, service control, publishing, credential changes, destructive cleanup, or edits outside the user-approved repository.

Required inputs and context discovery

Require repository root, exact operations, owned paths, excluded paths, expected before/after state, process/editor locks, reviewer, verification command, backup location, and restore objective.

Safety and risk level

Default to report-only. Reject path traversal, source deletion, out-of-scope writes, unknown generated ownership, active editor/build/server conflicts, missing reviewer, or missing restore information.

Workflow

  1. Normalize every target path and prove it remains inside the approved root. Completion criterion: the report lists no unresolved or out-of-scope target.
  2. Run report-only mode and calculate proposed changes without writing files. Completion criterion: hashes and diff intent exist while source state is unchanged.
  3. Create backups for existing targets and a manifest for creates, updates, and restore actions. Completion criterion: each operation has a backup or an explicit “created file; remove on restore” action.
  4. Apply only the reviewed manifest. Completion criterion: actual hashes match the manifest’s expected outputs.
  5. Run the declared verification command and capture exit code and artifacts. Completion criterion: success is supported by fresh output or labeled BLOCKED.
  6. Exercise restore in a fixture or provide a verified restore command for the real scope. Completion criterion: the original hashes can be reproduced.

Read the full file on GitHub · 85 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 6d ago First seen · 85 lines · 35 tokens per session scan A 9705ae2dd069

Subscribe to this mod's changes

safe-project-mutation is a skill published in the GitHub repository hoatv2211/GameStudio-CodexKIT (3 stars, last pushed 3d ago), licensed MIT. It adds 35 tokens to every session and 881 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.