Agent skill · luongnv89

auto-push

Generate a commit message, stage all changes, and push to remote after scanning for secrets, large files, and protected-branch risks. Skip for opening PRs, code review, or cutting releases/tags.

What it needs

About 3k tokens when loaded.

What this skill does

Commit and Push Everything CAUTION: Stage ALL changes, commit, and push to remote. Use only when confident all changes belong together. When to Use Trigger this skill when the user asks to "commit and push everything", "ship this", "auto-push", or otherwise wants a one-shot stage-commit-push for the current working tree. Skip when they want PRs, code review, releases, or tags. Sync Repo Before Edits Before creating/updating/deleting files in an existing repository, sync the current branch with remote: If the working tree is not clean, stash first, sync, then restore: If origin is missing, pull is unavailable, or rebase/stash conflicts occur, stop and ask the user before continuing. Instructions Step 1: Analyze Changes Run in parallel: git status - Show modified/added/deleted/untracked files git diff --stat - Show change statistics git log -1 --oneline - Show recent commit for message style Step 2: Run Safety Checks ❌ STOP and WARN if detected: Secrets: .env, .key, .pem, credentials.json, secrets.yaml, idrsa, .p12, .pfx, .cer API Keys: Any APIKEY, SECRET, TOKEN variables with real values (not placeholders like your-api-key, xxx, placeholder) Large files: >10MB without Git LFS Build artifacts: nodemodules/, dist/, build/, pycache/, .pyc, .venv/ Temp files: .DSStore, thumbs.db, .swp, .tmp API Key Validation: Check modified files for patterns like: ✅ Verify: .gitignore properly configured No merge conflicts Correct branch (warn if main/master) API keys are placeholders only Step 3: Confirm and Execute Present a short summary as a dry-run preview, then proceed directly when safety checks pass. If any safety check fails, STOP and ask for explicit user confirmation before continuing — never bypass a failed safety check without a confirmation prompt. When all safety checks pass, proceed directly without an additional yes/no confirmation prompt. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills luongnv89/auto-push

View the source on GitHub

Browse the @skills marketplace