Programowanie · Nauka i wyjaśnianie
commit
/commit
Podaje dobre praktyki commitowania w git: stagowanie, komunikaty commitów, podpisywanie i obsługa niepowodzeń hooków.
- Autor
- technicalpickles ↗
- Repozytorium
- pickled-claude-plugins ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 19.10.2026
Ocena i bezpieczeństwo
95/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść30 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
- Pliki w paczce
- 2
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Przestarzałość
Brak sygnałów. Repozytorium zmienione 19.10.2026, bez odwołań do wycofanych modeli i API.
Licencja
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Podaje dobre praktyki commitowania w git: stagowanie, komunikaty commitów, podpisywanie i obsługa niepowodzeń hooków.
Oryginalny opis (EN)
Use when committing changes to git - provides best practices for staging, commit messages, signing, and handling hook failures
Jak działa
- git add
- git commit
- hooks
Sekcje z nagłówków SKILL.md, w oryginale · 56 linii, 445 słów
Podgląd SKILL.md
---
name: commit
description: Use when committing changes to git - provides best practices for staging, commit messages, signing, and handling hook failures
---
# Git Commit
Preferences and best practices for interacting with a git repository.
## git add
ALWAYS use `git add` with specific files that have been updated. NEVER use `git add .` or `git add -A`.
IF adding files that look like they are agent configuration, or adding planning documentation, ALWAYS prompt the user to confirm if they should be included or not.
## git commit
PREFER writing the commit message to a file under `$TMPDIR`, named for what is being committed, then commit with `git commit -F "$TMPDIR/path-to-message.txt"`.
Use `-F` (`--file`), NEVER `-t` (`--template`). A template opens the message in an editor and git aborts if it comes back unchanged (`Aborting commit; you did not edit the message.`). Agent shells run with a no-op editor, so `-t` always aborts. The abort comes after pre-commit hooks run, so the failure looks like a hook problem. It isn't; don't reach for `--no-verify`.
Put any trailers your instructions require (e.g. `Co-Authored-By:`) at the end of the message file. Writing the message to a file first makes these easy to forget.
### scope the commit to your paths
PREFER `git commit -F <file> -- <path>...` over a bare `git commit`. A bare commit takes everything currently staged, including files another session or tool staged in the same working tree between your `git add` and your `git commit`. Naming the paths commits only what you meant to.
Path-limited commits take the working-tree version of those files, so skip `-- <path>` when you deliberately staged only some hunks of a file.
### signing
We have git commit signing setup. If it fails due to a message like:
error: 1Password: failed to fill whole buffer
fatal: failed to write commit object
... it is because the user was being prompted to authorize signing, and didn't see it or missed it. Do not try to fix or bypass it. Stop and prompt the user about either fixing it, or confirm bypassing it.
## hooks
### pre-commit failures
When git precommit checks fail, analyze what the failures are, and try to autofix when possible, otherwise think through how to fix it. Ask the user how to proceed when it's unclear if how to fix.
DO NOT follow sorbet's autocorrection advice.
DO NOT skip verification without confirmation from the user.
### prepare-commit-msg and post-commit
If we see errors like:
```
git: 'duet-prepare-commit-msg' is not a git command. See 'git --help'.
```
it is because we previously were using git-duet. It uses a git template, with hooks that call `git duet-prepare-commit-msg`. We've sinced moved, but the files will still be present
In this case, check .git/hooks/ for references to these. Remove files that call it.
Pliki w paczce (2)
- SKILL.md 3 KB
- tool-routes.yaml 2 KB
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · technicalpickles/pickled-claude-plugins | 95 | MIT |
| opsmill/infrahub | 100 | Apache-2.0 |
| kdlbs/kandev | 100 | AGPL-3.0 |
| vinta/hal-9000 | 100 | MIT |
| restarter/lets-workflow | 100 | MIT |
| mickeyyaya/evolve-loop | 100 | Apache-2.0 |
| friendlyinternet/nuxt-crouton | 100 | MIT |
| yonatangross/orchestkit | 100 | MIT |
| gtapps/hermitd | 100 | MIT |
Migawka bazy z 28.10.2026 · wersja paczki 0351b89b9264 (skrót SHA-256 całej paczki)
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100git-commit
Pomaga tworzyć czyste, atomowe commity z dobrymi komunikatami: stage'owanie, pisanie komunikatów, grupowanie zmian, błędy hooków pre-commit oraz wybór między amend a nowym commitem. - 100git-workflow
Opisuje dobre praktyki przepływu pracy Git: komunikaty commitów, strategie gałęzi, pull requesty i wzorce współpracy. - 100commit-message
Generuje komunikaty commitów w formacie conventional commits i pomaga przy tworzeniu commitów git. - 100git-commit
Pomaga pisać komunikaty commitów zgodne z Conventional Commits i wypychać kod do repozytorium, w tym git add, commit i push. - 100git-commit
Generuje komunikaty commitów w konwencji Conventional Commits dla projektów w Javie po zakończeniu zmian w kodzie. - 100git-commit-helper
Generuje opisowe komunikaty commitów przez analizę diffów Git i pomaga przeglądać zmiany przygotowane do commita.