git-compact-commits-skill

git-compact-commits-skill is a skill for Claude Code, Codex from darellchua2/opencode-config-template. It costs 41 tokens per session (706 once invoked), scanned A, original, Apache-2.0.

A Git commit-writing tool for keeping commit messages short, grouping related changes, and checking length limits.

In plain words
What is it for?
Use it to write compact commit subjects and bodies, group related changes, and configure commit-length checks with commitlint and GitHub Actions.
Why use it?
It prevents overly long or poorly grouped commits and can enforce message limits in local hooks or continuous integration, which automatically checks changes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions OpenCode.

Good fit Use it to write compact commit subjects and bodies, group related changes, and configure commit-length checks with commitlint and GitHub Actions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/darellchua2/opencode-config-template/git-compact-commits-skill
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 darellchua2/opencode-config-template --skill git-compact-commits-skill
Clone the repo
git clone --depth 1 https://github.com/darellchua2/opencode-config-template

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 git-compact-commits-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/git-compact-commits-skill/github.svg)](https://agentmods.dev/skills/darellchua2/opencode-config-template/git-compact-commits-skill)
Your own site
<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/git-compact-commits-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/git-compact-commits-skill/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-compact-commits-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/git-compact-commits-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/git-compact-commits-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 706 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 52
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 66
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • medium MCP Rug Pull · line 516
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
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.00041 $0.00706
Opus 5.5 $0.00016 $0.00282
Sonnet 5.5 $0.00008 $0.00141
Haiku 4.5 $0.00004 $0.00071

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

Security

Grade A, and why

git-compact-commits-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 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/git-compact-commits-skill/SKILL.md · 44 lines

How it starts

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

What I Do

Enforce commit-length budgets, semantic grouping, and compact writing. This skill is the authority for length budgets, grouping strategy, and commitlint enforcement; git-semantic-commits-skill owns types/scopes/breaking-change format; semantic-release-convention owns the release pipeline.

When to Use Me

Commits running long; squashing a branch into one message; "concise commit", "terse commit"; tightening commitlint rules.

Two use cases (both apply in a squash-merge workflow)

  1. Branch commits (pre-squash) — keep git log readable during review; subject + 1-2 line body + Refs: footer.
  2. Squash-merge output — the permanent record: subject + body (what+why, not per-commit narration) + BREAKING CHANGE: footer if any + Closes <ticket>.

Length budgets (hard limits)

Part Ideal Hard limit
Subject 50 chars 72 chars (GitHub truncation)
Body ≤100 words 150 words
Body/footer line 72 chars 72 chars
Whole message ≤200 words 250 words

Check: echo "$SUBJ" | wc -c ≤ 72; body sed '1,/^$/d' | wc -w ≤ 150.

Semantic grouping (Section 1 condensed)

Group changes by semantic concern, not by file or chronological order: one commit = one reviewer-legible concern (schema change + its consumers can be one; schema change + unrelated UI fix never). Order within a branch: migrations/models first, then logic, then tests, then docs. Anti-patterns: mega-commits mixing concerns; splitting a single concern across commits (unreviewable); grouping by file type ("all .test.ts files"); empty-body subjects for non-trivial changes.

Compact writing techniques (Section 3 condensed)

Active voice, imperative mood ("add", not "added"/"adds") · scopes absorb context (feat(auth): beats a subject repeating "the auth module") · omit HOW — what + why only · bullets not paragraphs for multi-item bodies · consolidate similar items ("update 6 test fixtures" not six lines) · standard abbreviations (config, auth, impl, refactor) — never invented ones · drop articles where lossy-safe (add retry not add a retry mechanism).

Read the full file on GitHub · 44 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. 2mo ago Changed · -615 lines e41c91b97031
  2. 3mo ago First seen · 659 lines · 41 tokens per session scan A 6f5896765783

Subscribe to this mod's changes

git-compact-commits-skill is a skill published in the GitHub repository darellchua2/opencode-config-template (6 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 41 tokens to every session and 706 once invoked, about $0.0002 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

git-compact-commits-skill compared with skills from other repositories

git-compact-commits-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
git-compact-commits-skilldarellchua2/opencode-config-templateSkill62mo agoApache-2.0A41Claude Code, Codex
github-pr-workflowAmineDjeghri/personal-os-setupSkill688todayMITA43Claude Code, Codex
gitlab-issue-to-mrOpenHands/extensionsSkill191todayMITA62Claude Code, Codex
devops-pipelineluongnv89/skillsSkill149yesterdayMITA65Claude Code, Codex
commitjuliusz-cwiakalski/agentic-delivery-osSkill47yesterdayMITA8Claude Code
git-shipoil-oil/git-shipSkill2419d agoMITA298Claude Code, Codex
check-fixjuliusz-cwiakalski/agentic-delivery-osSkill47yesterdayMITA27Claude Code