plugins/hypercore/skills/git-push/SKILL.md
[Hyper] Push unpushed commits to the remote. Discovers the current or descendant git repositories, checks for commits ahead of upstream, and pushes them. Use when the user wants to push, sync to remote, or send commits upstream.
npx skillsauth add alpoxdev/hypercore git-pushInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
<output_language>
Default all user-facing deliverables, saved artifacts, reports, plans, generated docs, summaries, handoff notes, commit/message drafts, and validation notes to Korean, even when this canonical skill file is written in English.
Preserve source code identifiers, CLI commands, file paths, schema keys, JSON/YAML field names, API names, package names, proper nouns, and quoted source excerpts in their required or original language.
Use a different language only when the user explicitly requests it, an existing target artifact must stay in another language for consistency, or a machine-readable contract requires exact English tokens. If a localized template or reference exists (for example *.ko.md or *.ko.json), prefer it for user-facing artifacts.
</output_language>
<scripts>| Script | Purpose |
|------|------|
| scripts/git-push.sh [--force] | Discover repos, check for unpushed commits, and push safely |
<trigger_conditions>
| User intent | Activate | |------|------| | "push" | yes | | "git push" | yes | | "/git-push" | yes | | "push my changes" | yes | | "push commits to remote" | yes | | "sync to remote" | yes | | requests that only ask for commit/rebase/reset | no | | "push back on this idea" (non-git context) | no |
</trigger_conditions>
<argument_validation>
If ARGUMENT is missing:
If ARGUMENT is --force:
--force-with-lease for push. Protected branches (main/master) are still blocked.</argument_validation>
<scope_assumptions>
</scope_assumptions>
<required>| Category | Rule |
|------|------|
| Safety | Never force push to main or master. |
| Safety | Never push from detached HEAD. |
| Safety | Use --force-with-lease instead of --force when force pushing. |
| Upstream | If no upstream is set, push with -u origin <branch> to set tracking. |
| Idempotent | If already up to date, report and exit cleanly. |
| Multi-repo | Handle descendant repositories independently. |
| Category | Avoid |
|------|------|
| Force push | --force to main or master |
| History rewrite | amend, rebase, reset, or other history-editing commands |
| Commit | Do not create commits — that is the git-commit skill's job |
| Raw force | git push --force — always use --force-with-lease |
scripts/git-push.sh
Or with force:
scripts/git-push.sh --force
The script handles everything:
/git-push
Result: discovers repos, pushes any that have unpushed commits.
/git-push --force
Result: pushes with --force-with-lease. Blocked on main/master.
/git-push
Result: reports "Already up to date" and exits cleanly.
/git-push
Result: discovers descendant repos, pushes each independently, reports summary.
</examples> <validation>development
[Hyper] Use when working on Vite + TanStack Router projects - enforces architecture rules (layers, routes, hooks, services, conventions) with mandatory validation before any code change. Triggers on file creation, route work, hook patterns, or any structural change in a Vite + TanStack Router codebase.
development
[Hyper] Update semantic versions across node/rust/python projects, keep discovered version files synchronized, and prefer the installed `git-commit` skill for the final git step with a direct fallback when it is unavailable.
development
[Hyper] Use when working on TanStack Start projects and the task involves auth, sessions, cookies, CSRF, secrets, env exposure, server functions/routes, headers/CSP, webhooks, or security review/fixes. Triggers on protecting routes, hardening auth flows, preventing secret leaks, securing server boundaries, or reviewing HTTP/security behavior in a TanStack Start app.
tools
[Hyper] Enforce TanStack Start architecture in existing Start projects, especially project/folder structure, route structure, nested shared folder organization, server functions, loader/client-server boundaries, importProtection, hooks, SSR/hydration, and hypercore conventions. Use before structural code changes, folder-structure reviews, route work, server function work, or architecture audits in TanStack Start codebases.