x-commit

Create local git commits with formatted messages from staged or unstaged diffs.

2|Updated Apr 12, 2026
One-click install
npx skills add https://github.com/pure-golang/level85 --skill x-commit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: x-commit
Source: https://github.com/pure-golang/level85/tree/main/.agents/skills/x-commit
Command: npx skills add https://github.com/pure-golang/level85 --skill x-commit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you generate a correct commit title and detailed message from staged or unstaged changes and turn them into a safe local git commit on demand.

Core Features & Use Cases

  • Manual, user-triggered commits only: runs exclusively when the user explicitly requests commit (e.g., “/commit”, “закоммить”).
  • Diff-aware commit messaging: analyzes the relevant diff (cached if staged exists; otherwise working tree) to draft a type: subject message plus an English body.
  • Local-only execution with guardrails: creates a local commit without push, using specific git add behavior (no git add -A / ., no skipping pre-commit verification).

Quick Start

Ask: “/commit и сделай локальный коммит по моим текущим изменениям”.

Frequently Asked Questions about x-commit

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

FAQPage Schema
How do I generate a git commit message from my staged or unstaged diff?

To generate a git commit message from a diff, the Skill analyzes your staged changes or working tree to draft a formatted type and subject message with an English body. It uses cached diffs if staging exists, otherwise defaulting to the working tree.

Can I run a local git commit without triggering an automatic push?

Yes, you can run a local git commit without pushing, as the Skill enforces local-only execution with strict guardrails. It creates the commit directly on your machine without executing any push commands to the remote repository.

Does the commit workflow support running pre-commit hooks during staging?

Yes, the commit workflow supports pre-commit hooks by enforcing safety constraints that prevent skipping verification. It explicitly avoids broad git add commands like git add -A, ensuring only specific diff-scoped changes are staged and validated.

What is the correct format for a local commit message created from a diff?

The correct format for a local commit message requires a specific type prefix followed by an English subject and a detailed body. The Skill enforces this strict formatting based on the analyzed diff content to ensure deterministic local results.

How do I manually trigger a local commit for my current working changes?

To manually trigger a local commit for your current changes, you must explicitly request the action using a command like /commit or a direct instruction such as "commit my changes". The Skill operates exclusively on explicit user request.

Are broad git add commands allowed when staging files for a commit?

No, broad git add commands like git add -A or git add . are not allowed when staging files for a commit. The Skill applies diff-scoped staging rules to add only the relevant changes, preventing accidental inclusion of unrelated files.