Przejdź do treści
Biblioteka skilli
Programowanie · Budowanie i kod

commit

/commit

Formatuje i commituje wyłącznie zatwierdzony przez użytkownika zestaw zmian jako jeden commit.

Repozytorium
avintra ↗
Licencja
Apache-2.0
Ostatnia zmiana repozytorium
13.11.2026

Ocena i bezpieczeństwo

100/ 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ść35 / 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
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 13.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

Co robi i kiedy

Formatuje i commituje wyłącznie zatwierdzony przez użytkownika zestaw zmian jako jeden commit.

Argumenty

/commit Optional: paths to include, issue number, or message focus
Oryginalny opis (EN)

Format and commit only the user-authorized change set as one commit. Use when the user asks to commit.

Jak działa

  1. 1. Partition the worktree
  2. 2. Format
  3. 3. Analyze
  4. 4. Determine the issue reference
  5. 5. Commit
  6. 6. Verify
Sekcje z nagłówków SKILL.md, w oryginale · 75 linii, 557 słów
Podgląd SKILL.md
---
name: commit
description: "Format and commit only the user-authorized change set as one commit. Use when the user asks to commit."
argument-hint: "Optional: paths to include, issue number, or message focus"
---

# Commit

Create exactly one commit from the user-authorized change set. Run it only on the user's explicit request in a primary session. It is not a coder dependency, and QA success never authorizes formatting or Git mutations.

If any git command fails, stop at that step and report the exact error.

## 1. Partition the worktree

Run in parallel:

```sh
git status
git diff --name-only
git diff --cached --name-only
```

- With no changes at all, report that and stop. Never make an empty commit.
- Sort every staged, unstaged, and untracked path into **in scope** (paths the user named, or paths the requested work changed) or **excluded** (everything else).
- When the worktree holds only the requested work, the commit request authorizes all of it. Otherwise list both buckets with exact paths and ask the user to confirm the in-scope list.
- Also ask before including a file with both staged and unstaged hunks (staging it folds the unstaged hunks in), or a file that may hold secrets (`.env*`, keys, tokens).

Done when every changed path sits in exactly one bucket and the in-scope list is authorized.

## 2. Format

For in-scope files inside a Prettier project (today only `clients/web-apps`, configured by its `.prettierrc`), run from that project directory:

```sh
npx --no-install prettier --write --ignore-unknown -- <in-scope paths relative to the project>
```

Pass only in-scope paths; formatting rewrites files, so excluded paths stay byte-for-byte untouched. Files outside a Prettier project (.NET, Python) stay as they are. If the command is denied, stop and ask for a narrow permission change rather than routing around it.

Re-run `git status`. Formatting churn on in-scope files joins the commit.

## 3. Analyze

Read the in-scope diff (`git diff -- <paths>`, `git diff --cached -- <paths>`, plus the contents of untracked files), focused by the user's argument when given. Name:

- **Main change**: the feature, fix, or domain holding most of the change.
- **Other changes**: distinct in-scope changes elsewhere, one line each.

## 4. Determine the issue reference

Use only the active work item's issue reference from the current request or orchestrator handoff: `#123`, `issue 123`, `[#123]`, or an issue URL, reduced to the number. Several issues become ` #123, #124`. With no reference on the active work item, the subject carries none. Unrelated session history is never a source.

## 5. Commit

```sh
git add -- <in-scope untracked paths>
git commit -m "$MESSAGE" -- <all in-scope paths>
```

The trailing pathspec commits the working-tree state of exactly these paths, including deletions. Other already-staged work stays staged and out of the commit. For a rename, list both the old and new path.

The message:

```
<type>(<scope>): <subject> #<issue>

Other changes:
- <other change 1>
- <other change 2>
```

- `type`: `feat`, `fix`, `refactor`, `perf`, `docs`, `test`, `build`, `ci`, or `chore`.
- `scope`: the kebab-case area of the main change (`orchestrator-queues`, `vault-credentials`, `studio`).
- `subject`: imperative and lowercase, with no trailing period, describing the main change only.
- ` #<issue>` appears only when step 4 found one. The `Other changes:` block appears only when step 3 found other changes.

## 6. Verify

Run `git log -1 --stat` and `git status`. Done when the commit holds exactly the in-scope paths. Report the commit hash and subject, plus any excluded paths still in the worktree. Those stay unstaged and uncleaned.

Wersje

RepozytoriumWynikLicencja
Ta strona · aventisia/avintra100Apache-2.0
rmsaitam/skill-git-conventions100MIT
opsmill/infrahub100Apache-2.0
kdlbs/kandev100AGPL-3.0
vinta/hal-9000100MIT
restarter/lets-workflow100MIT
mickeyyaya/evolve-loop100Apache-2.0
friendlyinternet/nuxt-crouton100MIT
yonatangross/orchestkit100MIT

Migawka bazy z 13.11.2026 · wersja paczki dc60ba02eb77 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 96git-commit
    Tworzy commit z oczekującą pracą na prośbę użytkownika.
  • 100commit-all
    Commituje wszystkie bieżące zmiany naraz z wygenerowanym komunikatem, gdy użytkownik nie podaje własnego.
  • 86ce:commit
    Sprawdza stan repozytorium i tworzy jeden commit z czytelnym komunikatem dla bieżących zmian.
  • 100create-commit-message
    Generuje komunikat Conventional Commit ze zmian przygotowanych w git, gdy trzeba napisać lub sformatować commit.
  • 100workflow-git-commit
    Tworzy jeden commit w konwencji Conventional Commits z już wydzielonej zmiany: dodaje wskazane pliki lub fragmenty, pisze komunikat i commituje, bez pushowania.
  • 100commit-staged
    Tworzy commit ze staged plików i pisze komunikat zmian, gdy prosisz o zacommitowanie, przygotowanie wiadomości lub wywołujesz commit-staged.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.