Programowanie · Automatyzacja
push
/push
Wypycha zmiany bieżącej gałęzi do origin oraz tworzy lub aktualizuje odpowiadający im pull request.
- Autor
- hamedmp ↗
- Repozytorium
- matrix-os ↗
- Licencja
- AGPL-3.0
- Ostatnia zmiana repozytorium
- 27.10.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 27.10.2026, bez odwołań do wycofanych modeli i API.
Licencja
AGPL-3.0, copyleft: przeróbki udostępniane innym muszą mieć tę samą licencję.
Co robi i kiedy
Wypycha zmiany bieżącej gałęzi do origin oraz tworzy lub aktualizuje odpowiadający im pull request.
Oryginalny opis (EN)
Push current branch changes to origin and create or update the corresponding pull request; use when asked to push, publish updates, or create pull request.
Jak działa
- Prerequisites
- Goals
- Related Skills
- Steps
- Commands
- Notes
Sekcje z nagłówków SKILL.md, w oryginale · 120 linii, 734 słów
Podgląd SKILL.md
---
name: push
description:
Push current branch changes to origin and create or update the corresponding
pull request; use when asked to push, publish updates, or create pull request.
---
# Push
## Prerequisites
- `gh` CLI is installed and available in `PATH`.
- `gh auth status` succeeds for GitHub operations in this repo.
## Goals
- Push current branch changes to `origin` safely.
- Create a PR if none exists for the branch, otherwise update the existing PR.
- Keep branch history clean when remote has moved.
## Related Skills
- `pull`: use this when push is rejected or sync is not clean (non-fast-forward,
merge conflict risk, or stale branch).
## Steps
For dependent PRs, use the GitHub native workflow in `docs/dev/stacked-prs.md`
instead of the standalone push/pull recipe below. Create/adopt layers with
`gh stack init` and `gh stack add`, commit explicit paths with Git, rebase
descendants with `gh stack rebase`, and publish with `gh stack submit`. Verify
remote heads before rewriting, convert rewritten layers back to draft, and request
a new Greptile review for each changed head. Link the shared requester-assigned
ENG ticket and native stack in every PR. Do not flatten the stack or merge
`origin/main` individually into its layers.
1. Identify current branch and confirm remote state.
2. Run Matrix OS local validation before pushing:
- `bun run typecheck`
- `bun run check:patterns`
- `bun run test`
3. Push branch to `origin` with upstream tracking if needed, using whatever
remote URL is already configured.
4. If push is not clean/rejected:
- If the failure is a non-fast-forward or sync problem, run the `pull`
skill to merge `origin/main`, resolve conflicts, and rerun validation.
- Push again; use `--force-with-lease` only when history was rewritten.
- If the failure is due to auth, permissions, or workflow restrictions on
the configured remote, stop and surface the exact error instead of
rewriting remotes or switching protocols as a workaround.
5. Ensure a PR exists for the branch:
- If no PR exists, create one.
- If a PR exists and is open, update it.
- If branch is tied to a closed/merged PR, create a new branch + PR.
- Write a proper PR title that clearly describes the change outcome
- For branch updates, explicitly reconsider whether current PR title still
matches the latest scope; update it if it no longer does.
6. Write/update PR body explicitly:
- Include concrete `Summary` and `Tests` sections.
- For backend changes, include the Matrix OS `Invariants` section from
`docs/dev/review-pipeline.md`.
- If PR already exists, refresh body content so it reflects the total PR
scope (all intended work on the branch), not just the newest commits,
including newly added work, removed work, or changed approach.
- Do not reuse stale description text from earlier iterations.
7. Reply with the PR URL from `gh pr view`.
## Commands
```sh
# Identify branch
branch=$(git branch --show-current)
# Matrix OS validation gate
bun run typecheck
bun run check:patterns
bun run test
# Initial push: respect the current origin remote.
git push -u origin HEAD
# If that failed because the remote moved, use the pull skill. After
# pull-skill resolution and re-validation, retry the normal push:
git push -u origin HEAD
# If the configured remote rejects the push for auth, permissions, or workflow
# restrictions, stop and surface the exact error.
# Only if history was rewritten locally:
git push --force-with-lease origin HEAD
# Ensure a PR exists (create only if missing)
pr_state=$(gh pr view --json state -q .state 2>/dev/null || true)
if [ "$pr_state" = "MERGED" ] || [ "$pr_state" = "CLOSED" ]; then
echo "Current branch is tied to a closed PR; create a new branch + PR." >&2
exit 1
fi
# Write a clear, human-friendly title that summarizes the shipped change.
pr_title="<clear PR title written for this change>"
if [ -z "$pr_state" ]; then
gh pr create --title "$pr_title"
else
# Reconsider title on every branch update; edit if scope shifted.
gh pr edit --title "$pr_title"
fi
# Write/edit PR body before validation.
# Example workflow:
# 1) draft Summary, Tests, and Invariants if backend code changed
# 2) gh pr edit --body-file /tmp/pr_body.md
# 3) for branch updates, re-check that title/body still match current diff
# Show PR URL for the reply
gh pr view --json url -q .url
```
## Notes
- Do not use `--force`; only use `--force-with-lease` as the last resort.
- Distinguish sync problems from remote auth/permission problems:
- Use the `pull` skill for non-fast-forward or stale-branch issues.
- Surface auth, permissions, or workflow restrictions directly instead of
changing remotes or protocols.
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · hamedmp/matrix-os | 100 | AGPL-3.0 |
| AsiaOstrich/universal-dev-standards | 100 | MIT |
| AsiaOstrich/universal-dev-standards | 100 | MIT |
| AsiaOstrich/universal-dev-standards | 100 | MIT |
| Mooshieblob1/MooshieUI | 100 | AGPL-3.0 |
| tibursocampos/agent-dev-toolkit | 100 | MIT |
| technicalpickles/pickled-claude-plugins | 100 | MIT |
| openai/symphony | 100 | Apache-2.0 |
| s-hiraoku/vscode-sidebar-terminal | 100 | MIT |
Migawka bazy z 28.10.2026 · wersja paczki 08633fdb741e (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
- 90push-pr
Zatwierdza zmiany, wypycha je do zdalnego repozytorium i tworzy lub aktualizuje pull request dla bieżącej gałęzi. - 100create-pr
Otwiera lub aktualizuje pull request na GitHubie dla bieżącej gałęzi, także z wypchnięciem zmian. - 100create-pr
Tworzy pull requesty na GitHubie: otwiera PR dla bieżącej gałęzi i wypycha zmiany, gdy użytkownik o to poprosi. - 100commit-push-pr
Commituje bieżące zmiany, wypycha je na zdalne repozytorium i tworzy lub aktualizuje pull request, gdy chcesz oddać swoją pracę do przeglądu. - 90submit-pr-from-current-changes
Tworzy gałąź, zapisuje lokalne zmiany commitem, wypycha je i otwiera pull request z bieżącej pracy. - 90commit
Stage'uje, commituje i wypycha zmiany do bieżącej gałęzi, gdy użytkownik prosi o commit lub push bieżącej pracy.