askill
create-commit

create-commitSafety 85Repository

Create and run git commits from current repository changes with a content-aware message. Use when asked to perform a commit workflow, generate a commit message from diffs, handle optional `-m` overrides, or guide staging before commit.

0 stars
1.2k downloads
Updated 2/24/2026

Package Files

Loading files...
SKILL.md

Create Commit

Follow the source workflow in references/commit-command.md.

Workflow

  1. Inspect staged changes first.
git diff --staged --stat
  1. If nothing is staged, inspect unstaged changes.
git diff --stat
  • If unstaged changes exist, ask whether to:
  1. Stage all changes and commit.
  2. Stage specific files and commit.
  3. Stop for manual staging.
  • For option 1, run git add -A.
  • For option 2, run git add <paths>.
  1. Analyze actual staged content before writing the message.
git diff --staged --name-only
git diff --staged <file>
  1. Match repository commit style.
git log -5 --oneline
  1. Draft a concise but informative message from the actual change intent.
  • Prefer Conventional Commit style when the repo uses it.
  • Keep header under 72 characters (target 50-72).
  • Make the header specific: what changed and why/impact in one line.
  • Use imperative mood.
  • If context is non-trivial, add a short body (1-3 lines) with key details.
  1. If user provides -m "<message>", use it exactly.

  2. Execute commit.

# Subject only (default)
git commit -m "<generated-subject>"

# Add body only when needed
git commit -m "<generated-subject>" -m "<short body>"
  1. Report results with commit hash, subject, changed files, and git status --short.

Guardrails

  • Do not use --amend unless the user explicitly asks.
  • Do not add Co-Authored-By footer unless the user explicitly asks.
  • Base the message on diffs, not filenames alone.
  • Avoid filler text; include only details that improve scanability.

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

70/100Analyzed 3/2/2026

Well-structured skill with clear workflow steps, proper safety guardrails, and good clarity. Main issue is incompleteness: it references 'references/commit-command.md' as the source workflow but that content is not provided, making the skill partially incomplete. Otherwise has good actionability, appropriate safety measures, and is reusable across projects with minor adaptation.

85
85
70
45
75

Metadata

Licenseunknown
Version-
Updated2/24/2026
Publisherastomodynamics

Tags

github-actions