cview: Skill for Claude Code

.agents/skills/commit-split/SKILL.md

commit-split is a skill for Claude Code, Codex from 2ykwang/cview. It costs 140 tokens per session (1,536 once invoked), scanned A, original, MIT.

A workflow for separating one pile of uncommitted code changes into several focused Git commits. Git commits are saved snapshots of changes that can be reviewed or reverted independently.

In plain words
What is it for?
Use it when a working tree contains unrelated changes that should become separate, logically grouped commits.
Why use it?
It makes mixed changes easier to review while checking that splitting them does not alter any code.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: names the AskUserQuestion tool; installed under .agents/ (shared by several agents).

This is 2ykwang/cview's own configuration. It tells Claude Code and Codex how to work on cview 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 cview configures →

Reuse

Borrowing it

Nothing to install: this file belongs to 2ykwang/cview. 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/2ykwang/cview/main/.agents/skills/commit-split/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/2ykwang/cview

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 commit-split

README.md
[![agentmods](https://agentmods.dev/badge/skills/2ykwang/cview/commit-split/github.svg)](https://agentmods.dev/skills/2ykwang/cview/commit-split)
Your own site
<a href="https://agentmods.dev/skills/2ykwang/cview/commit-split"><img src="https://agentmods.dev/badge/skills/2ykwang/cview/commit-split/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 commit-split

Your own site · 80×15
<a href="https://agentmods.dev/skills/2ykwang/cview/commit-split"><img src="https://agentmods.dev/badge/skills/2ykwang/cview/commit-split.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 140 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,536 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.00140 $0.01536
Opus 5.5 $0.00056 $0.00614
Sonnet 5.5 $0.00028 $0.00307
Haiku 4.5 $0.00014 $0.00154

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

Security

Grade A, and why

commit-split 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 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/stage_hunks.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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.agents/skills/commit-split/SKILL.md · 132 lines

How it starts

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

commit-split

Split uncommitted changes into atomic, reviewable commits. Two things matter: the user shouldn't have to classify contexts by hand (analysis and proposal are this skill's job), and the result must be verifiable (prove not a single byte of code differs before and after the split).

Flow: read state → analyze changes → propose a plan → user confirms → execute → verify losslessness. Don't ask the user to classify anything before proposing. Analyze first, present a plan, let the user adjust it.

Step 0. Read state

git status --porcelain      # change list; staged/unstaged/untracked
git branch --show-current
git log --oneline -20       # learn the commit message convention
git rev-parse HEAD          # record the starting point (used for verification)
git diff HEAD | git patch-id --stable   # fingerprint of the original change (used for lossless verification)

Stop on: merge/rebase in progress, or conflicted files. Report the state and halt.

Watch out for:

  • Changes already staged — tell the user. The split can't preserve the existing staging, so get agreement on "unstage everything and re-split the whole thing", then run git restore --staged ..
  • Untracked files — include them in the plan table but mark them separately. If they look like build junk (logs, scratch files), suggest excluding them from the commits.

Step 1. Analyze changes

Read the full git diff HEAD and the contents of untracked files, then identify logical units. Don't group by filename — you have to read the diff to spot "two contexts mixed in one file", and spotting that is the whole reason this skill exists.

Grouping rules, in priority order:

  1. Things that break apart — a new function and its call sites, a signature change and its callers, an implementation and its tests go in one commit
  2. Different intent, different commit — feature / bugfix / refactor / config / docs are separate
  3. Different domain, different commit — unrelated modules stay apart even when the intent matches

Read the full file on GitHub · 132 lines

Files

What ships with it

3 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. 1mo ago First seen · 132 lines · 140 tokens per session scan A e1fca1d5e248

Subscribe to this mod's changes

commit-split is a skill published in the GitHub repository 2ykwang/cview (20 stars, last pushed 2mo ago), licensed MIT. It adds 140 tokens to every session and 1,536 once invoked, about $0.0006 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-08-30.