principle-version-control

principle-version-control is a skill for Claude Code from lugassawan/swe-workbench. It costs 80 tokens per session (1,307 once invoked), scanned A, original, MIT.

A guide to keeping Git history clear and collaboration predictable through focused commits, useful commit messages, and suitable branching practices. It explains when rebasing or merging is appropriate.

In plain words
What is it for?
Use it when splitting work into atomic commits, writing commit messages, choosing a branch workflow, or deciding between rebase and merge.
Why use it?
It makes changes easier to review, trace with tools such as git bisect, and revert without undoing unrelated work.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the swe-workbench plugin — 61 skills, 25 commands, 23 agents, 4 hooks shipped together

Good fit Use it when splitting work into atomic commits, writing commit messages, choosing a branch workflow, or deciding between rebase and merge.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lugassawan/swe-workbench/principle-version-control
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 lugassawan/swe-workbench --skill principle-version-control
Clone the repo
git clone --depth 1 https://github.com/lugassawan/swe-workbench

Made for: Claude Code.

Or install swe-workbench, the plugin that ships this one along with the rest of its 61 skills, 25 commands, 23 agents, 4 hooks.

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 principle-version-control

README.md
[![agentmods](https://agentmods.dev/badge/skills/lugassawan/swe-workbench/principle-version-control/github.svg)](https://agentmods.dev/skills/lugassawan/swe-workbench/principle-version-control)
Your own site
<a href="https://agentmods.dev/skills/lugassawan/swe-workbench/principle-version-control"><img src="https://agentmods.dev/badge/skills/lugassawan/swe-workbench/principle-version-control/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 principle-version-control

Your own site · 80×15
<a href="https://agentmods.dev/skills/lugassawan/swe-workbench/principle-version-control"><img src="https://agentmods.dev/badge/skills/lugassawan/swe-workbench/principle-version-control.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,307 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.00080 $0.01307
Opus 5.5 $0.00032 $0.00523
Sonnet 5.5 $0.00016 $0.00261
Haiku 4.5 $0.00008 $0.00131

Measured 2mo ago against content hash bb9b1cfe118b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

principle-version-control 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 2mo 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/principle-version-control/SKILL.md · 93 lines

How it starts

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

Version Control & Collaboration

git log is a debugging instrument. Its quality depends entirely on the discipline of the people who wrote to it.

Atomic commits — one logical change

One commit, one reason to revert it. The test: can you describe the change in a short subject line without using "and"?

  • Atomic commits make git bisect effective — a failing test traces to the exact change that introduced it.
  • Atomic commits make reverts safe — reverting "add feature X" does not also undo "fix unrelated bug Y".
  • Split a large change by concern: refactor first (pure mechanical moves), then behavior change, then test additions.

Commit messages — what makes them load-bearing

Subject line: imperative mood, ≤50 characters, no trailing period. Body: wrap at 72 characters, explain why, not what.

[type] Short imperative subject (≤50 chars)

Why this change was made. What would break if reverted.
Link the issue or ticket. Note non-obvious constraints.

Format schemes — Conventional Commits (feat:, fix:), [type] Subject, JIRA-prefix — are all valid conventions. Pick one; apply consistently and enforce via a commit-msg hook. Example: the swe-workbench plugin repo enforces [type] Subject via .githooks/commit-msg. Before authoring commit messages, detect the host repo's convention via the detection step in swe-workbench:workflow-commit-and-pr.

Never mix formatting and logic

Formatting commits (whitespace, import sort, rename) belong in a separate commit from behavior changes. Reviewers can skim a formatting-only commit in seconds; mixing it into a logic commit makes the diff unreadable and breaks git blame for every touched line.

Branching — feature-branch vs trunk-based

Feature branches work when: CI is slower than a few minutes, teams have >2 engineers, or releases are discrete.

  • Keep branches short-lived (days, not weeks). Long-lived branches accumulate merge debt.
  • Branch naming convention keeps the log readable — feat/<issue>-<slug>, fix/<slug>, chore/<slug>.

Read the full file on GitHub · 93 lines

Files

What ships with it

1 file 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. 2mo ago First seen · 93 lines · 80 tokens per session scan A bb9b1cfe118b

Subscribe to this mod's changes

principle-version-control is a skill published in the GitHub repository lugassawan/swe-workbench (3 stars, last pushed 3d ago), licensed MIT. It adds 80 tokens to every session and 1,307 once invoked, about $0.0003 per session on Opus 5.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.

Related

principle-version-control compared with skills from other repositories

principle-version-control next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
principle-version-controllugassawan/swe-workbenchSkill33d agoMITA80Claude Code
releasehyhmrright/brooks-lintSkill1.6ktodayMITA135Claude Code, Codex
unslop-commitMohamedAbdallah-14/unslopSkill1795d agoMITA139Claude Code
releasegtapps/hermitdSkill84todayMITA104Claude Code, Codex
evolve-lite:unpublishAgentToolkit/altk-evolveSkill136yesterdayApache-2.0A23Claude Code, Codex
commitgtapps/hermitdSkill84todayMITA90Claude Code, Codex
commitnitinjain999/platform-skillsSkill712d agoApache-2.0A74Claude Code