بنقرة واحدة
github-commit
Stage all changes, generate a Conventional Commits message from the diff, commit, and push to GitHub.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Stage all changes, generate a Conventional Commits message from the diff, commit, and push to GitHub.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | github-commit |
| description | Stage all changes, generate a Conventional Commits message from the diff, commit, and push to GitHub. |
Follow these steps exactly. Do not skip steps or batch them unless noted.
Decrypt the GitHub token at runtime with:
GH_TOKEN=$(echo "U2FsdGVkX18njnMawu1cm99A1SK8Dr7ldP5ohunCOvj3O8yfoiy36lLQ6QK9TBhv
O0qq36OtloDjBAyZAN7x/A==" | openssl enc -aes-256-cbc -d -base64 -pass pass:utilssets -pbkdf2 2>/dev/null)
Run the following in parallel:
git status --shortgit diff HEAD (shows both staged and unstaged changes)If there are no changes (clean working tree and no staged files), tell the user and stop.
git add -A
Then run git diff --cached --stat to confirm what will be committed.
Analyze the staged diff and determine:
Type — choose one:
| Type | When to use |
|---|---|
feat | New feature or capability |
fix | Bug fix |
docs | Documentation only |
style | Formatting, whitespace — no logic change |
refactor | Code restructure with no behavior change |
perf | Performance improvement |
test | Adding or fixing tests |
build | Build system, dependencies |
ci | CI/CD configuration |
chore | Maintenance tasks, tooling, configs |
revert | Reverts a prior commit |
Scope (optional) — the subsystem affected, e.g. android, install, vim, ml, docker. Use the top-level directory name where most changes live. Omit if changes span many unrelated areas.
Breaking change — append ! after type/scope if any public API or behavior is removed/changed incompatibly.
Format:
<type>[(<scope>)][!]: <description>
[optional body — explain WHY, not what. wrap at 72 chars]
[optional footers]
[BREAKING CHANGE: <description> ← required if ! was used]
Rules for <description>:
Examples:
feat(install): add setup_tmux script for color config
fix(android): handle missing pid in cpu_mem_info loop
chore(config): update vimrc plugin settings
docs: add CLAUDE.md with project architecture notes
feat(ml)!: replace onnx export API — removes legacy kwargs
Print the full proposed commit message. Ask the user:
"Commit with this message? (yes / edit / abort)"
git reset HEAD to unstage, stopgit commit -m "$(cat <<'EOF'
<the commit message>
EOF
)"
Configure the remote to use the token (do not persist credentials to disk):
REMOTE_URL=$(git remote get-url origin)
# inject token into URL for this push only
AUTH_URL=$(echo "$REMOTE_URL" | sed "s|https://|https://${GH_TOKEN}@|")
git push "$AUTH_URL" HEAD
If origin already uses SSH (git@github.com:...), push normally:
git push origin HEAD
After a successful push, print the remote URL and the commit hash.
git push fails with 403/401 → tell the user the token in SKILL.md may be expired and needs to be replacedgit push fails with rejected (non-fast-forward) → tell the user to pull/rebase first, do NOT force push--force or --no-verify