원클릭으로
push
Push current branch to remote origin
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Push current branch to remote origin
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Suggest and apply a semver version bump based on commits since the last tag
Scaffold a new Sharpy.Stdlib module (spy-sourced or handwritten C#) with all required files, conventions, docs, and tests
Implement a plan with a coordinated agent team
Run compiler or cross-language benchmarks and compare results
Regenerate C# snapshot tests and spy stdlib after intentional codegen changes
Stress-test property tests across many rounds to find rare bugs. Each round uses fresh random seeds.
| name | push |
| description | Push current branch to remote origin |
| argument-hint | [--close-issues 123,456] |
Push the current branch to the remote and optionally close GitHub issues.
Usage:
/push — push current branch/push --close-issues 208,210 — push and close the specified issuesParse $ARGUMENTS for:
--close-issues — comma-separated list of issue numbers to close after pushingRun in parallel:
git status — verify working tree is clean (warn if dirty)git log --oneline @{upstream}..HEAD 2>/dev/null || echo "no upstream" — show commits that will be pushedgit branch --show-current — get current branch nameIf the branch is main or mainline, warn the user that they're about to push directly to the main branch and confirm before proceeding.
If the current branch is dev or mainline, check whether a version bump is needed before pushing:
git describe --tags --abbrev=0 2>/dev/null || echo "none"
grep -oP '(?<=<SharpyVersion>)[^<]+' Directory.Build.props
If the current SharpyVersion in Directory.Build.props equals the last tag version (strip leading v), warn:
⚠️ Version not bumped:
Directory.Build.propsis still atX.Y.Z, which matches the last tagvX.Y.Z. If this push is destined for a release, run/bump-version --applyfirst.
This is advisory — the push is not blocked. Skip silently if the version already exceeds the last tag.
CI fails (check_spy_staleness.sh / check_spy_tests_staleness.sh) when generated C# or generated docs fall out of sync with their sources. Catch this before pushing.
Check which paths the outgoing commits touch:
git diff --name-only @{upstream}..HEAD 2>/dev/null || git diff --name-only origin/mainline...HEAD
Then run the matching regeneration checks (use dangerouslyDisableSandbox — these invoke dotnet):
| Outgoing changes touch | Run |
|---|---|
src/Sharpy.Stdlib/spy/ or src/Sharpy.Compiler/ or src/Sharpy.Core/ | bash build_tools/check_spy_staleness.sh |
src/Sharpy.Stdlib.Tests/Spy/ or src/Sharpy.Compiler/ or src/Sharpy.Core/ | bash build_tools/check_spy_tests_staleness.sh |
src/Sharpy.Core/ or src/Sharpy.Stdlib/ (public API / doc comments) | python3 -m build_tools stdlib generate --force then git status --short -- docs/stdlib |
build_tools/regenerate_spy_stdlib.sh or build_tools/regenerate_spy_tests.sh), commit the regenerated files, and re-run the check.docs/stdlib dirty: commit the regenerated docs (docs(stdlib): regenerate ...). Never hand-edit generated docs or generated C#..spy file changed — that's why src/Sharpy.Compiler/ is in the trigger column.git push -u origin <current-branch>
If the push fails due to diverged history, do not force push. Instead, report the error and suggest git pull --rebase or ask the user how to proceed.
If --close-issues was provided, close each issue:
gh issue close <number> --reason completed
Report which issues were closed.
Show: