一键导入
github-push
Specialized skill for safely pushing to GitHub, verifying .env GitHub configuration, and handling edge cases like rebasing, diverging, or conflicts.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Specialized skill for safely pushing to GitHub, verifying .env GitHub configuration, and handling edge cases like rebasing, diverging, or conflicts.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Agent-to-User Interface (A2UI) protocol implementation and client renderer scaffolding.
Infrastructure automation, configuration management, and application deployment orchestration using Ansible.
Create and manage unicode braille animations and spinners for CLIs and web apps. Use this skill when the user wants to add loading indicators, progress animations, or custom braille-based art to their terminal or browser-based application.
Agent harness for headlessly deploying Code Scaffold assets.
High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds.
Comprehensive cybersecurity arsenal integrating MITRE and NIST framework methodologies, NVIDIA SkillSpector vulnerability scanning, and deep SAST secret detection.
| name | github_push |
| description | Specialized skill for safely pushing to GitHub, verifying .env GitHub configuration, and handling edge cases like rebasing, diverging, or conflicts. |
This skill manages all GitHub interactions. GitHub configuration (identity, remote URL, visibility) is stored in the project's root .env file rather than a separate github.md artifact. This allows multiple contributors to maintain their own local credentials without polluting version-tracked files.
Before any other action, the agent must verify and self-heal the .env file in the project root to ensure GitHub credentials are present.
# ── GITHUB CONFIGURATION ────────────────────────────────────────
GITHUB_USER=
GITHUB_EMAIL=
GITHUB_REMOTE_URL=
GITHUB_VISIBILITY=public
GITHUB_BRANCH=main
.env: If the file does not exist, create it with the full GitHub configuration block above as a template, warn the user to populate it, and halt..env. If any of the five GITHUB_ keys are absent, append the missing keys as empty placeholder lines. Warn the user which keys were added and halt until they are filled.GITHUB_USER=), prompt the user to provide the missing value before continuing..env: Verify .env is listed in .gitignore. If .gitignore does not exist, create it with .env as the first entry. If it exists but is missing the .env entry, append it.Once the .env is verified, read and apply the values:
GITHUB_USER → used for git config user.nameGITHUB_EMAIL → used for git config user.emailGITHUB_REMOTE_URL → used for git remote add origin / git remote set-url originGITHUB_VISIBILITY → document only (Public or Private); prompt user if unsetGITHUB_BRANCH → default push target (typically main)Run git fetch followed by git status to determine the relationship between the local branch and the remote (ahead, behind, or diverged).
If the local branch does not match the remote (diverged branches, remote has new commits, or other conflicts):
Before committing and pushing Rust code to the repository, you MUST manually run cargo fmt to apply strict formatting standards, followed by cargo clippy and cargo test. This repository uses a GitHub Action pipeline that enforces strict code hygiene (cargo fmt --check); failure to natively format code before pushing will instantly fail the CI/CD pipeline. Resolve any linting or formatting errors before proceeding.
Before pushing, ensure the root README.md includes a visually rich set of badges at the very top (referencing https://naereen.github.io/badges/). These badges must provide immediate metadata about the repository state (e.g., license, stars, language, repository size).
Perform the Git commands corresponding to the user's choice. Once the state is clean (or if the branch was simply ahead with no conflicts), you MUST pause and ask the user for explicit permission to push. NEVER execute the push commands without direct authorization.
Once the user explicitly approves, execute the appropriate push:
git config user.name "$GITHUB_USER"
git config user.email "$GITHUB_EMAIL"
# Set or update remote origin
git remote get-url origin 2>$null || git remote add origin "$GITHUB_REMOTE_URL"
git remote set-url origin "$GITHUB_REMOTE_URL"
git push origin "$GITHUB_BRANCH"
After executing a git push to the remote repository, you MUST proactively validate that the resulting GitHub Action pipeline completes successfully before considering the push task finished.
schedule tool to set a recurring timer that checks the pipeline status every 30 seconds.send_message) of any warnings, deprecation notices, or runtime errors so they can be addressed.Upon a successful push, review and update any of the following project artifacts as needed:
design.md, plan.md, testing.md, readme.md, todo.mdDo not create or update a github.md file — all GitHub configuration now lives in .env.
[PROJECT_ROOT]\project_details\history\[VERSION] directory on each deployment cycle using standard semantic versioning (Major.Minor.Bugfix, e.g., v1.1.0).readme.md are alphabetized when generating or updating the documentation.