git-compact-commits-skill

git-compact-commits-skill is a skill for OpenCode from darellchua2/opencode-config-template. It costs 41 tokens per session (4,271 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 OpenCode

Written for OpenCode: installed under .opencode/. Also seen: positional $N argument; mentions OpenCode.

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.

agentmods
npx agentmods add skills/darellchua2/opencode-config-template/git-compact-commits-skill
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: OpenCode.

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.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.svg" alt="Measured on agentmods" 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 4,271 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.04271
Opus 5 $0.00020 $0.02135
Sonnet 5 $0.00008 $0.00854
Haiku 4.5 $0.00004 $0.00427

Measured 2d ago against content hash 6f5896765783, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 2d 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.

opencode_app/.opencode/skills/git-compact-commits-skill/SKILL.md · 659 lines

How it starts

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

What I Do

I provide compact commit message authoring and CI enforcement:

  1. Semantic Grouping: Combine related changes into single commits by phase, concern, or module
  2. Compact Authoring: Write commit messages within strict word/character budgets (150-word body, 72-char subject)
  3. CI Enforcement: Configure commitlint with custom word-count plugin and GitHub Actions workflow
  4. Local Enforcement: Pre-commit hook alternative for local validation

This is a guidance + enforcement skill — I teach compact authoring AND provide the CI/CD config to enforce it.

For commit type definitions and scope conventions, see git-semantic-commits. For the full release pipeline (PR titles, merge strategy, release tags), see semantic-release-convention.

When to Use Me

Use this skill when:

  • Writing commit messages that need to stay within word/character limits
  • Grouping multiple related file changes into a single commit
  • Setting up commitlint with word-count enforcement in GitHub Actions
  • Creating a local pre-commit hook for message length validation
  • Preparing commits before a squash-merge PR workflow

Authority Boundaries

Concern Authority Skill Role
Commit types, scopes, breaking changes git-semantic-commits Format definition
Release pipeline, PR titles, merge strategy semantic-release-convention CI/CD workflow
Length budgets, grouping, compact writing git-compact-commits (this skill) Config details
commitlint config with extended rules git-compact-commits (this skill) Enforcement rules

Scope: Two Use Cases

This skill targets both commit scenarios in a squash-merge workflow:

1. Branch Commits (Pre-Squash)

Individual commits during development on a feature branch. These keep git log readable during code review and make git rebase -i easier.

feat(auth): add JWT token refresh and session store

Implement automatic token refresh when access token expires.
Add session storage for persisting auth state across reloads.

Refs: BT-54

Read the full file on GitHub · 659 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. 2d 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 4d ago), licensed Apache-2.0. It adds 41 tokens to every session and 4,271 once invoked, about $0.0002 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.

Related

Other skills, from other repositories

push

Push current branch changes to origin and create or update the corresponding pull request; use when asked to push, publish updates, or create a pull request.

sushaantu/boxento · 32 tokens

ship

Commit, push, create PR, then after approval check CI and merge. Use when work is done and ready to ship.

dlupiak/claude-session-dashboard · 27 tokens

dependabot-consolidator

Consolidate a repository's open Dependabot PRs into one tested branch and PR, grouping by ecosystem and risk, verifying with baseline-diff gates, and closing out on operator approval. Use when a repo has multiple open Dependabot PRs to batch, when consolidating dependency bumps into a single reviewable PR, or when…

vinnie357/claude-skills · 85 tokens

ship

Use when ready to ship code to remote — handles direct push to main and PR-based feature branch flows. Do NOT use for partial workflows like just committing or just pushing.

juanmhidalgo/claude-plugins · 36 tokens

git-ship

自动化 Git 工作流一键发布助手,执行完整的「ship」流程: 基于最新 main 切新分支 → commit → 推送 → 创建 PR → squash merge → 回 main。 调用 ship 本身就是对完整流程的授权;自动推断分支名、commit message 和 PR 内容, 并主动解决 Git 冲突、测试、lint、类型检查、构建和 CI 失败,持续修复和重试, 直到改动成功合并。不要因可自行修复的失败暂停,只在认证、权限、仓库保护等 无法由当前环境解决的外部阻塞出现时请求用户介入。 仅在用户明确表达「ship」意图时触发,例如: 直接说「ship」「/ship」「git ship」 明确要求完整走完 git…

oil-oil/git-ship · 273 tokens

jig-conformance-audit

Use to check whether a repository's history actually followed the jig procedure: conventional squash subjects, Release-Grade trailers on unreleased work, version tag format and placement, the main/develop fast-forward invariant, and a committed rubric. Read-only, exits non-zero on violations, and runs in CI.

0x0w1/jig · 67 tokens