通用 GitHub 提交、脱敏、版本日志、提交说明、推送流程。Use when Codex needs to submit local changes to GitHub in any project, including checking diffs, protecting secrets, writing detailed changelogs, committing, pushing, and optionally preparing PR information.
Installation
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
通用 GitHub 提交、脱敏、版本日志、提交说明、推送流程。Use when Codex needs to submit local changes to GitHub in any project, including checking diffs, protecting secrets, writing detailed changelogs, committing, pushing, and optionally preparing PR information.
GitHub Submit Workflow
Core Rule
Treat every GitHub submission as a publish operation. Verify scope, remove sensitive data, write a useful version log, then commit and push only the intended changes.
Workflow
Confirm repository context.
Run git status --short --branch and git remote -v.
Identify the current branch, upstream branch, and target remote.
If the repo is not initialized, has no remote, or the target branch is ambiguous, ask the user before publishing.
Inspect the full change set.
Use git diff --stat, git diff, and git diff --cached.
Include untracked files in the review with git status --short.
Do not stage unrelated user changes.
Never revert user changes unless the user explicitly asks.