write-commit

Generate Conventional Commits messages from staged Git files with CARD IDs.

2|Updated May 2, 2026
One-click install
npx skills add https://github.com/andrecini/dotnet-squad-copilot-agent --skill write-commit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: write-commit
Source: https://github.com/andrecini/dotnet-squad-copilot-agent/tree/main/.claude/skills/write-commit
Command: npx skills add https://github.com/andrecini/dotnet-squad-copilot-agent --skill write-commit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It removes the guesswork and time spent writing good commit messages by generating a Conventional Commits message directly from your staged changes.

Core Features & Use Cases

  • Conventional Commits for staged diffs: Analyzes what’s in staging to suggest the appropriate commit type (feat, fix, refactor, test, docs, chore, style, perf) and a helpful scope.
  • Commit message structure with details: Produces a brief subject plus a bullet list of meaningful changes, omitting trivial formatting-only edits when possible.
  • Card ID enforcement (CARD: #id): Blocks message generation unless you provide a required Card/Issue ID, ensuring commits stay traceable to work items.

Quick Start

Run this skill by asking: "Generate a commit message for what is currently in staging, and the related Card ID is 42."

Frequently Asked Questions about write-commit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a conventional commit message from staged changes?

To generate a conventional commit message from staged changes, run the skill against your active Git repository and provide a Card ID. It analyzes the staged diff to infer the commit type, scope, and detailed change list.

Why does my commit message generation require a Card ID?

Commit message generation requires a Card ID to ensure traceability between your staged changes and work items. The skill blocks message creation unless you supply a valid CARD: #id, enforcing issue linking and preventing untraceable commits.

How does conventional commit type inference work for staged diffs?

Conventional commit type inference works by analyzing the files currently staged in your Git repository. It evaluates the staged diff to suggest the appropriate commit type, such as feat, fix, or refactor, along with a helpful scope.

Can I use this to generate commit messages for sensitive config files?

You cannot use this to generate commit messages for sensitive config files. The skill includes safety guardrails that prevent committing or handling sensitive configuration files during the staged diff analysis and message generation process.

What is the best way to structure a commit message from a Git staged diff?

The best way to structure a commit message from a Git staged diff is using a brief subject line followed by a bullet list of meaningful changes. The skill omits trivial formatting-only edits to maintain a clean, conventional commit structure.

Does this commit message generator work with multi-type staged changes?

This commit message generator does not work with multi-type staged changes. It is designed for scenarios where a single commit type can be inferred from the staged diff, ensuring accurate conventional commits for focused changes.