Przejdź do treści
Biblioteka skilli
Programowanie · Automatyzacja

save-and-push

/save-and-push

Robi commit i push bezpiecznie: sprawdza gałąź, szuka sekretów i dużych plików, pisze komunikat i wysyła gałąź. Przydaje się, gdy trzeba zapisać i wysłać zmiany.

Licencja
MIT
Ostatnia zmiana repozytorium
11.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 11.11.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

Robi commit i push bezpiecznie: sprawdza gałąź, szuka sekretów i dużych plików, pisze komunikat i wysyła gałąź. Przydaje się, gdy trzeba zapisać i wysłać zmiany.

Wyzwalacze z opisu

save my workcommitpushpush my changes
Oryginalny opis (EN)

Commit and push changes safely - checks you're not on the default branch, scans for secrets and big files, writes a clear commit message, pushes the branch. Use when someone says "save my work", "commit", "push", or "push my changes".

Jak działa

  1. 0. Context
  2. 1. Not on the default branch, and not on a teammate's
  3. 2. Look before staging
  4. 3. No secrets
  5. 4. No big files
  6. 5. Stage and commit
  7. 6. Push
Sekcje z nagłówków SKILL.md, w oryginale · 51 linii, 361 słów
Podgląd SKILL.md
---
name: save-and-push
description: Commit and push changes safely - checks you're not on the default branch, scans for secrets and big files, writes a clear commit message, pushes the branch. Use when someone says "save my work", "commit", "push", or "push my changes".
---

# Save and push a change

Guide: if the repo has a CONTRIBUTING.md, the matching sections are "I want to save and push my change" and "Don'ts". The steps below work without it.

## 0. Context

- **In a git repo?** `git rev-parse --is-inside-work-tree`. If not, use the `setup` skill.
- **Default branch** (`<default>`): `gh repo view --json defaultBranchRef -q .defaultBranchRef.name`, falling back to `git symbolic-ref --short refs/remotes/origin/HEAD` (drop the `origin/`). If both fail, ask.
- **Current branch:** `git branch --show-current`.

## 1. Not on the default branch, and not on a teammate's

- If the current branch is `<default>`: stop and use the `start-work` skill to create a branch first; uncommitted changes come along.
- If the branch looks like someone else's (a different name prefix, or `gh pr view --json author` shows another author): don't push to it. Use the `edit-teammate-code` skill instead.

## 2. Look before staging

```bash
git status
git diff
```
Summarize what changed for the user in a sentence or two.

## 3. No secrets

For every new or modified file: if it's `.env`, `.env.*` (except `.env.example`), `*.key`, `*.pem`, or under `secrets/`, don't stage it. Skim the added lines in `git diff` for anything that looks like an API key, token, or password. If you find one, stop and tell the user exactly where; don't stage it.

## 4. No big files

```bash
git status --porcelain | awk '{print $2}' | xargs -I{} du -h {} 2>/dev/null
```
Anything over a few MB (videos, datasets, large images): ask whether it should live outside git (e.g. Google Drive) instead.

## 5. Stage and commit

Stage specific files (`git add <file> ...`); `git add .` is fine only after steps 2-4 showed nothing unexpected.

Commit message: finish the sentence "If applied, this commit will ___". Imperative, specific, under 72 characters ("Add signup form to landing page"). Never "fix", "updates", or "WIP". If it needs "and", consider two commits. Show the message before committing.
```bash
git commit -m "<message>"
```

## 6. Push

```bash
git push -u origin <branch>
```
Tell the user it's pushed and that the `open-pr` skill gets it reviewed and merged when it's ready.

Wersje

W bazie nie ma innych skilli o nazwie save-and-push.

Migawka bazy z 13.11.2026 · wersja paczki 39366a3066e3 (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

  • 92commit
    Zapisuje zmiany w Git przez staging i commit, a opcja --push dodatkowo wysyła je do zdalnego repozytorium.
  • 100commit-push
    Zapisuje zmiany jednym commitem z wiadomością feat, fix lub refactor i wysyła je bez otwierania pull requestu.
  • 100commit-push
    Zatwierdza zmiany i wypycha je na zdalną gałąź bieżącego repozytorium, z ochroną gałęzi main i master.
  • 90git-commit-push
    Zapisuje commit i wypycha bieżące zmiany do repozytorium, sprawdzając wcześniej, co trafi do historii.
  • 100git-pushing
    Dodaje wszystkie zmiany, tworzy commit conventional i wypycha go na zdalną gałąź, gdy użytkownik prosi o push albo o zapis pracy na GitHubie.
  • 92commit
    Tworzy commity w Git: stage'uje i zapisuje zmiany, a z opcją --push także wypycha je do zdalnego repozytorium.

Uwagi i zgłoszenia

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