xete-mcp: Skill for Claude Code

.claude/skills/git-discipline/SKILL.md

git-discipline is a skill for Claude Code from xetenet/xete-mcp. It costs 66 tokens per session (499 once invoked), scanned A, original, MIT.

A set of Git rules for Xete repositories covering branches, commits, tests, and commit messages. Git is the version-control system used to save code changes; atomic commits keep each save point focused and easier to undo.

In plain words
What is it for?
Creating feature branches, splitting work into logical commits, running checks before committing, writing standard commit messages, and linking commits to specifications or reviews.
Why use it?
It reduces the damage from unattended agent work by requiring small, focused commits that build and pass tests, instead of one large mixed change that is difficult to review or roll back.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions Claude Code.

This is xetenet/xete-mcp's own configuration. It tells Claude Code how to work on xete-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything xete-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to xetenet/xete-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/xetenet/xete-mcp/main/.claude/skills/git-discipline/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/xetenet/xete-mcp

Made for: Claude Code.

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 git-discipline

README.md
[![agentmods](https://agentmods.dev/badge/skills/xetenet/xete-mcp/git-discipline/github.svg)](https://agentmods.dev/skills/xetenet/xete-mcp/git-discipline)
Your own site
<a href="https://agentmods.dev/skills/xetenet/xete-mcp/git-discipline"><img src="https://agentmods.dev/badge/skills/xetenet/xete-mcp/git-discipline/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 git-discipline

Your own site · 80×15
<a href="https://agentmods.dev/skills/xetenet/xete-mcp/git-discipline"><img src="https://agentmods.dev/badge/skills/xetenet/xete-mcp/git-discipline.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 499 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.00066 $0.00499
Opus 5 $0.00033 $0.00249
Sonnet 5 $0.00013 $0.00100
Haiku 4.5 $0.00007 $0.00050

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

Security

Grade A, and why

git-discipline 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 10d 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.

.claude/skills/git-discipline/SKILL.md · 34 lines

What it actually says

Git Discipline

When agents write code unattended, commits are the save points. Big commits mean big rollbacks.

Commit rules

  • Atomic: one logical change per commit, target ~100 changed lines, hard ceiling ~300. If a diff exceeds the ceiling, split it before committing — not after review finds a problem.
  • Always green: the repo compiles and tests pass at every commit. cargo check / cargo test (or the project's test command) runs before every commit, not just before push. A commit that breaks the build destroys its value as a save point.
  • Message format: <area>: <imperative summary> plus, when applicable, SPEC-<feature>: task N and DDR: reviews/DDR-<name>.md. The message states WHY when the diff alone doesn't.
  • No mixed concerns: formatting-only changes, dependency bumps, and logic changes are separate commits. A reviewer must be able to read a logic diff without whitespace noise.

Branch rules

  • Feature branches per SPEC: feat/<spec-name>. Contract work never lands directly on main.
  • Agent sessions (Remote Control, owl-alpha bulk work) commit to their feature branch freely; merging to main requires the DDR verdict SHIP for contract paths.
  • Rebase before merge; main stays linear. Force-push only on your own feature branches.

Session start ritual (Remote Control especially)

  1. git status — confirm clean tree before new work; stash or commit anything dangling with an explicit message.
  2. git log --oneline -5 — confirm you're building on what you think you are.
  3. Confirm current branch matches the SPEC being executed.

Recovery posture

  • Prefer git revert over history rewriting on shared branches.
  • Before any risky operation (rebase, reset, filter), note the current HEAD SHA in the session so it can be restored.
  • If an agent session produced a tangle: branch from the last good commit and cherry-pick, rather than untangling in place.
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. 10d ago First seen · 34 lines · 66 tokens per session scan A 664f3ab27f0f

Subscribe to this mod's changes

git-discipline is a skill published in the GitHub repository xetenet/xete-mcp (0 stars, last pushed 23d ago), licensed MIT. It adds 66 tokens to every session and 499 once invoked, about $0.0003 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

memorix-git-memory

Use when the task depends on commit history, what changed, when a fix shipped, or linking engineering evidence to reasoning memory.

AVIDS2/memorix · 31 tokens

repo-ship

Split existing repository work into commits by intent as it happens, or give a new repository its name, visibility, description, and topics at creation. Use the matching path when work is about to be committed or pushed, before a push that would otherwise land as one large commit, or when a new repository is being…

aethrox/doctrine · 68 tokens

repository-manager-bulk-git-operations

Bulk, parallel git operations across a whole workspace of repositories via the repository-manager MCP server — clone, pull, push, add, commit, pre-commit, phased push, and enumerate every repo across a GitLab instance / GitHub org into an ingest manifest (which also natively ingests them into the knowledge graph as…

Knuckles-Team/repository-manager · 143 tokens

source-command-improve

Run ONE iteration of the continuous-improvement loop — pick the highest-value backlog item, implement it, verify end-to-end, commit.

nel-neru/LibrAIum · 31 tokens

git-workflow

Git workflow patterns including branching strategies, commit conventions, merge vs rebase, atomic commits, worktrees, change summaries, and disciplined version control for AI agents and developer teams.

JunMystery/Agent-Guidance-Python · 39 tokens

legacy-shield

Secure zero-knowledge document vault for AI agents. Persistence for your secrets.

bitatlas-group/bitatlas · 19 tokens