Version Management Skill

Version Management Skill is a skill for Claude Code, Codex from ssmurfgg04-gif/context-m. It costs 107 tokens per session (8,847 once invoked), scanned A, original, Apache-2.0.

A version-management workflow for front-end projects that controls where files are created and how project versions are saved. It uses Git, a system for recording file history and restoring earlier versions.

In plain words
What is it for?
Setting up front-end project folders, saving versions, viewing history, switching projects, and recovering earlier project states.
Why use it?
It reduces mistakes such as creating project files in the wrong folder or losing a previous version. It also supports viewing history, switching projects, and restoring versions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Setting up front-end project folders, saving versions, viewing history, switching projects, and recovering earlier project states.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ssmurfgg04-gif/context-m/version-management
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.

Any agent
npx skills add ssmurfgg04-gif/context-m --skill version-management
Clone the repo
git clone --depth 1 https://github.com/ssmurfgg04-gif/context-m

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 Version Management Skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/ssmurfgg04-gif/context-m/version-management/github.svg)](https://agentmods.dev/skills/ssmurfgg04-gif/context-m/version-management)
Your own site
<a href="https://agentmods.dev/skills/ssmurfgg04-gif/context-m/version-management"><img src="https://agentmods.dev/badge/skills/ssmurfgg04-gif/context-m/version-management/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Version Management Skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/ssmurfgg04-gif/context-m/version-management"><img src="https://agentmods.dev/badge/skills/ssmurfgg04-gif/context-m/version-management.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 107 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,847 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00107 $0.08847
Opus 5 $0.00053 $0.04424
Sonnet 5 $0.00021 $0.01769
Haiku 4.5 $0.00011 $0.00885

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

Security

Grade A, and why

Version Management Skill 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.

skills/version-management/SKILL.md · 583 lines

How it starts

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

版本管理

执行方式: 版本管理完全由本 Skill + send_file 实现;前后端不维护 Git、不记版本流水。Agent 在云机项目目录执行 git 与文件操作。下文 git 均为完整可执行命令;后期封装为 tool 后替换指令段落,决策逻辑与流程顺序不变

对用户沟通规则: 版本管理的技术细节(git 命令、meta.json 更新、版本号计算等)是内部执行过程,禁止在对话中向用户展示或提及。用户只需看到:生成结果 + send_file 吐出的版本卡片。如需告知版本信息,只说"已保存为 V{n}",不解释底层操作。


⚠️ 路径硬规则(最高优先级,写任何文件之前先执行本节)

本 Skill 必须在写出第一个入口文件之前介入,而不是产出之后补救。 任何入口文件(.html / .jsx / .tsx / .vue)第一次写入磁盘时,目标路径就必须位于 我的项目/{项目名}/ 内。

基准路径

「我的项目」固定位于工作区根目录,与 send_filefile_path 写法 /我的项目/{项目名}/... 一一对应。执行任何 mkdir / cd / 写文件操作之前,必须先回到工作区根目录(或使用从根目录起算的完整路径);禁止在未确认 pwd 的情况下使用相对路径 我的项目/...——这是「我的项目」文件夹长在错误位置的常见原因。

写文件前的固定顺序(不可调换)

# 1. 确定项目名(生成规则见 §1.2)
# 2. 回到工作区根目录,创建项目目录
cd {工作区根目录}
mkdir -p "我的项目/{项目名}/assets"
# 3. 进入项目目录,之后所有文件【直接】在此目录内创建
cd "我的项目/{项目名}"
# 4. 写入 index.html / prototype.html 等入口文件与代码文件
# 5. 再进入 §1 的 git / meta.json / send_file 流程

违例清单(以下任何一种都算流程错误,即使事后移动也算)

  • 先把文件写到工作区根目录、~/Desktop/tmp 或当前任意目录,再移动进项目目录
  • 只在对话中贴代码块,不落盘
  • 在项目目录之外执行写文件命令

写文件前自检(最后一道闸)

调用任何写文件命令之前,自问一句:「我即将写入的目标路径,是否位于 我的项目/{项目名}/ 之内?」 答案不是 → 停止,先执行上面的固定顺序建目录,再写文件。


0. 与 Design Skill 的衔接(必读)

本 Skill 与 Design Skill 并列协作(二者由同一个 Design Agent 同时承载):Design Skill 负责设计产出,本 Skill 负责落盘与版本管理。本节描述二者在 HTML 交付场景下的协同过程。

触发不依赖 Design Skill。 本 Skill 按文件类型触发:只要产出或修改入口文件(.html / .jsx / .tsx / .vue)就必须走本 Skill,与该任务是否经过 Design Skill 路由无关——包括未走任何设计流程、直接裸改已有 HTML 文字/颜色的情况(此时跳过 quality-gate,直接 资源校验 → git → meta.json → send_file)。

触发顺序(与 Design Skill 协同时)

Design Skill 路由 → 场景 skill(portfolio / deck / prototype 等)
→ 【写文件前】按本 Skill 顶部「路径硬规则」先建 我的项目/{项目名}/
→ 产出 .html / .jsx / .tsx / .vue → 文件【直接写入】我的项目/{项目名}/(不是事后移动)
→ quality-gate.md 通过
→ 本 Skill(资源校验 → git → meta.json → send_file)

禁止经 Design Skill 的产出在 quality gate 未通过时 commit 或 send_file禁止 Design Skill 在未经本 Skill 完成的情况下,将 HTML 网页项目视为已交付(仅贴代码块、不落盘、不写 我的项目/ 均不算交付)。

Design Skill 负责 / 本 Skill 负责

维度 Design Skill 本 Skill
场景、风格、版式、文案语言
quality-gate、Design Compliance 注释
项目目录、assets 落盘、git 版本
meta.jsonsend_file 版本卡片
对用户表述 设计结果说明 仅「已保存为 V{n}」

Read the full file on GitHub · 583 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. 5d ago First seen · 583 lines · 107 tokens per session scan A a8e1f4205e98

Subscribe to this mod's changes

Version Management Skill is a skill published in the GitHub repository ssmurfgg04-gif/context-m (1 stars, last pushed yesterday), licensed Apache-2.0. It adds 107 tokens to every session and 8,847 once invoked, about $0.0005 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-09-03.