Zum Inhalt springen
Skillpedia
Allgemeines Programmieren33k · #8878

commit-work

Was er macht

Dieser Skill hilft deinem Agenten, Git-Commits vorzubereiten, die leicht zu prüfen sind. Er ist für Entwickler gedacht, die in jedem Commit nur die beabsichtigten Änderungen haben wollen, mit klaren Nachrichten dazu.

Wann du ihn nutzt

  • ✓Wenn du deine Arbeit committen willst und die Änderungen richtig geprüft und bereitgestellt werden sollen.
  • ✓Wenn deine Änderungen mehrere unabhängige Aufgaben mischen und in getrennte Commits gehören.
  • ✓Wenn du eine Commit-Nachricht im Format Conventional Commits willst.

Link zum Skill

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/productivity/commit-work/SKILL.md

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/productivity/commit-work/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Committe meine Änderungen, aber teile das Refactoring und das neue Feature in getrennte Commits mit klaren Nachrichten auf.”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Der Agent prüft den Arbeitsbereich, legt fest, wo jeder Commit beginnt und endet, stellt nur das bereit, was dazugehört, prüft den bereitgestellten Diff auf Geheimnisse oder Debug-Code und schreibt dann die Nachricht.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von GitHub.

Commit work

Goal

Make commits that are easy to review and safe to ship:

  • only intended changes are included
  • commits are logically scoped (split when needed)
  • commit messages describe what changed and why

Inputs to ask for (if missing)

  • Single commit or multiple commits? (If unsure: default to multiple small commits when there are unrelated changes.)
  • Commit style: Conventional Commits are required.
  • Any rules: max subject length, required scopes.

Workflow (checklist)

  1. Inspect the working tree before staging
    • git status
    • git diff (unstaged)
    • If many changes: git diff --stat
  2. Decide commit boundaries (split if needed)
    • Split by: feature vs refactor, backend vs frontend, formatting vs logic, tests vs prod code, dependency bumps vs behavior changes.
    • If changes are mixed in one file, plan to use patch staging.
  3. Stage only what belongs in the next commit
    • Prefer patch staging for mixed changes: git add -p
    • To unstage a hunk/file: git restore --staged -p or git restore --staged <path>
  4. Review what will actually be committed
    • git diff --cached
    • Sanity checks:
      • no secrets or tokens
      • no accidental debug logging
      • no unrelated formatting churn
  5. Describe the staged change in 1-2 sentences (before writing the message)
    • "What changed?" + "Why?"
    • If you cannot describe it cleanly, the commit is probably too big or mixed; go back to step 2.
  6. Write the commit message
    • Use Conventional Commits (required):
      • type(scope): short summary
      • blank line
      • body (what/why, not implementation diary)
      • footer (BREAKING CHANGE) if needed
    • Prefer an editor for multi-line messages: git commit -v
    • Use references/commit-message-template.md if helpful.
  7. Run the smallest relevant verification
    • Run the repo's fastest meaningful check (unit tests, lint, or build) before moving on.
  8. Repeat for the next commit until the working tree is clean

Deliverable

Provide:

  • the final commit message(s)
  • a short summary per commit (what/why)
  • the commands used to stage/review (at minimum: git diff --cached, plus any tests run)
Häufige Fragen

Was ist, wenn eine Datei Änderungen für zwei Commits enthält?

Der Skill nutzt Patch-Staging, damit du nur einen Teil der Änderungen einer Datei bereitstellen kannst.

Was prüft er vor dem Commit?

Er prüft auf Geheimnisse oder Tokens, versehentliche Debug-Ausgaben und unpassende Formatierungsänderungen.

Welches Commit-Format nutzt er?

Conventional Commits, das verlangt der Skill.

Details

Originalbeschreibung des Autors

Create high-quality git commits: review/stage intended changes, split into logical commits, and write clear commit messages (including Conventional Commits). Use when the user asks to commit, craft a commit message, stage changes, or split work into multiple commits.

repo: davila7/claude-code-templates

Beliebtheit

GitHub-Sterne
33k
Platz im Ranking
#8878
Lizenz
MIT
Aktualisiert
2.11.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills