commit-writer

commit-writer is a skill for Claude Code from jordantplows/claude-skills. It costs 55 tokens per session (1,647 once invoked), scanned A, original, MIT.

A skill that writes conventional commit messages from staged Git changes. Conventional commits use labels such as feat, fix, docs, and test to describe the kind of change.

In plain words
What is it for?
Use it to review staged changes, identify the main change type, and write a concise subject and explanatory body that matches the repository's style.
Why use it?
It removes the need to inspect the staged diff and compose a correctly formatted commit message by hand.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the startup-os plugin — 3 skills shipped together

Good fit Use it to review staged changes, identify the main change type, and write a concise subject and explanatory body that matches the repository's style.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jordantplows/claude-skills/commit-writer
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 jordantplows/claude-skills --skill commit-writer
Clone the repo
git clone --depth 1 https://github.com/jordantplows/claude-skills

Made for: Claude Code.

Or install startup-os, the plugin that ships this one along with the rest of its 3 skills.

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-writer

README.md
[![agentmods](https://agentmods.dev/badge/skills/jordantplows/claude-skills/commit-writer.svg)](https://agentmods.dev/skills/jordantplows/claude-skills/commit-writer)
Your own site
<a href="https://agentmods.dev/skills/jordantplows/claude-skills/commit-writer"><img src="https://agentmods.dev/badge/skills/jordantplows/claude-skills/commit-writer.svg" alt="Measured on agentmods" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,647 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.00055 $0.01647
Opus 5 $0.00028 $0.00823
Sonnet 5 $0.00011 $0.00329
Haiku 4.5 $0.00006 $0.00165

Measured 7d ago against content hash 1c74d021596e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

commit-writer 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 7d 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/commit-writer/SKILL.md · 257 lines

How it starts

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

commit-writer

Generates proper conventional commit messages from staged changes.

Instructions

  1. Check what's staged

    git diff --staged --stat
    

    If nothing is staged, inform the user and exit.

  2. Read the actual changes

    git diff --staged
    

    If the diff is very large (>500 lines), sample key files instead:

    git diff --staged --stat
    git diff --staged path/to/key/file.ts
    
  3. Read recent commit history for style

    git log --oneline -10
    git log -1 --format="%B"
    

    This shows the repository's commit message conventions.

  4. Determine the commit type

    • feat: new functionality added
    • fix: bug fix
    • refactor: restructuring without behavior change
    • chore: tooling, config, dependencies, build setup
    • docs: documentation only
    • test: test additions or changes
    • perf: performance improvement
    • style: formatting only, no logic change

    If changes span multiple types, pick the dominant one and mention others in the body.

  5. Write the subject line Format: type: short imperative summary

    • Under 72 characters
    • No period at the end
    • Imperative mood ("add", "fix", "merge" — not "added", "fixed", "merged")
    • Be specific but concise
  6. Decide if body is needed

    Skip the body for:

    • Typo fixes
    • Single small bug fixes
    • Dependency bumps
    • Self-explanatory one-liners

    Write a full body for:

    • Structural changes
    • Multi-file refactors
    • New features
    • Anything that changes behavior
    • Anything where "why" isn't obvious from "what"
  7. When writing a body

    Structure:

    First paragraph: what changed and why, in plain English.
    
    Changes:
    - Group related changes logically
    - Use bullet points for clarity
    - Include file paths or component names
    
    Updated:
    - List modified existing features
    - Explain impact on behavior
    
    Renamed:
    - Old → new mappings
    - Explain why renamed
    

Read the full file on GitHub · 257 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. 7d ago First seen · 257 lines · 55 tokens per session scan A 1c74d021596e

Subscribe to this mod's changes

commit-writer is a skill published in the GitHub repository jordantplows/claude-skills (1 stars, last pushed 2mo ago), licensed MIT. It adds 55 tokens to every session and 1,647 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