From qingyi
This skill should be used when the user wants to commit AND push changes automatically without any confirmation prompts. Fully autonomous: stages, commits, and pushes. ACTION TRIGGERS: - "commit and push", "push changes", "save and push", "quick commit" - "push it", "ship it", "send it", "push everything" - "auto commit", "just push", "commit push" NATURAL LANGUAGE PATTERNS: - "commit and push" + code/changes context - "push" + all/everything/changes - "ship it" / "send it up" / "push it up" - "quick commit and push"
How this skill is triggered — by the user, by Claude, or both
Slash command
/qingyi:commit-pushThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Automatically stage, commit, and push changes with no confirmation prompts.
Automatically stage, commit, and push changes with no confirmation prompts.
Run git status --porcelain to detect changes.
If no changes: Report "No changes to commit. Working tree is clean." and stop.
If changes exist: Categorize into:
If nothing is staged, automatically stage all changes: git add -A.
If some files are already staged, stage remaining changes too: git add -A.
Run git diff --cached --stat and analyze changed files for logical groupings.
Group changes by scope:
src/ vs docs/ vs tests/)Single-scope (all changes relate to one concern): proceed to Step 4 with one commit.
Multi-scope (2+ unrelated scopes detected): automatically split into multiple commits.
git reset HEAD to unstage everythinggit add <files>)Run these in parallel:
git log --oneline -5 -- recent commit style for consistencygit diff --cached --stat -- what will be committedgit diff --cached -- full diff for analysisAnalyze the diff and construct a commit message following conventional commits format:
<type>(<scope>): <description>
<body>
Commit types:
| Type | When to Use |
|---|---|
feat | New feature |
fix | Bug fix |
docs | Documentation only |
style | Formatting, no code change |
refactor | Code change that neither fixes nor adds |
perf | Performance improvement |
test | Adding or updating tests |
chore | Build process, dependencies |
Rules:
Execute using heredoc:
git commit -m "$(cat <<'EOF'
<constructed message>
EOF
)"
Verify with git log -1 --oneline.
Push immediately without asking:
git status -sbgit pushgit push -u origin <branch>Report final status with commit hash(es) and push result.
| Condition | Response |
|---|---|
| Not a git repo | "Error: Not a git repository. Run git init first." |
| No changes | "Nothing to commit. Working tree is clean." |
| Commit hook fails | Report hook output, suggest fixes |
| Push rejected | "Push rejected. Pull latest changes: git pull --rebase" |
| No upstream | Auto-set upstream with git push -u origin <branch> |
| No remote | "No remote configured. Changes committed locally." |
npx claudepluginhub fly-onlyone/qingyi --plugin qingyiCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.