git-pushing-fast
Skill18 starsChanged 5 days agoMITView on GitHub
Use when committing and pushing current changes on one branch with a Conventional Commit message. Supports diff-based type/scope/message generation, staged or requested change handling, segmented commit bodies for non-trivial changes, and safe single-branch push handling.
- Reads credentials
- Deletes or force-pushes
- Commits and pushes
In this repository55 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- ax-extract-workflowSkill
- conversation-json-to-mdSkill
- feature-doc-splitterSkill
- frontend-quality-guardrailsSkill
- git-commit-onlySkill
- git-push-secondary-merge-primarySkill
- git-stepwise-commitSkill
- git-weekly-reportSkill
- linkedinSkill
- logo-design-boardSkill
- mac-software-storage-cleanupSkill
- multi-lang-readmeSkill
- novel-writerSkill
- react-component-hook-guidelinesSkill
- routerbase-api-integrationSkill
- routerbase-media-generationSkill
- routerbase-model-routingSkill
- topic-bookmarks-reorganizerSkill
- tree-ring-memorySkill
- tweetclaw-twitter-automationSkill
- ui-layout-analyzerSkill
- wechat-theme-extractorSkill
- weixin-article-to-obsidianSkill
- xquik-dataSkill
- x-twitter-scraperSkill
- yuque-lakebook-exportSkill
- ax-extract-workflow-cnSkill
- conversation-json-to-md-cnSkill
- feature-doc-splitter-cnSkill
- frontend-quality-guardrails-cnSkill
- git-commit-only-cnSkill
- git-pushing-fast-cnSkill
- git-push-secondary-merge-primary-cnSkill
- git-stepwise-commit-cnSkill
- git-weekly-report-cnSkill
- linkedin-cnSkill
- logo-design-board-cnSkill
- mac-software-storage-cleanup-cnSkill
- multi-lang-readme-cnSkill
- novel-writer-cnSkill
- react-component-hook-guidelines-cnSkill
- routerbase-api-integration-cnSkill
- routerbase-media-generation-cnSkill
- routerbase-model-routing-cnSkill
- topic-bookmarks-reorganizer-cnSkill
- tree-ring-memory-cnSkill
- tweetclaw-twitter-automation-cnSkill
- ui-layout-analyzer-cnSkill
- wechat-theme-extractor-cnSkill
- weixin-article-to-obsidian-cnSkill
- xquik-data-cnSkill
- x-twitter-scraper-cnSkill
- yuque-lakebook-export-cnSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
32 rules. About 0 are common, 22 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈22
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 10
Commit and push the current repository's local changes on the current branch with a fast, safe single-branch workflow.
- Very specific: line 47
Use ! after the type or scope, such as feat(api)!: remove legacy field.
- Very specific: line 48
Add a BREAKING CHANGE: footer when the behavioral contract changes.
- Distinctive: line 51
Use the repository's existing commit language.
- Very specific: line 52
Write the subject in present tense and imperative mood, such as fix login redirect.
- Distinctive: line 53
Keep the subject under 72 characters when practical.
- Distinctive: line 58
Use this skill when the user asks to:
- Distinctive: line 59
Commit and push the current work
- Distinctive: line 61
Create one Conventional Commit from staged and unstaged changes
- Distinctive: line 66
Do not use this skill for:
- Distinctive: line 75
Follow this workflow in order.
- Distinctive: line 78
Run git status --short, git branch --show-current, and git remote -v.
- Very specific: line 79
Check the upstream with git rev-parse --abbrev-ref --symbolic-full-name @{u} when possible.
- Distinctive: line 81
Use git status --porcelain when script-friendly status parsing is useful.
- Distinctive: line 82
Never discard or revert user changes.
- Distinctive: line 85
If the user asked to commit everything, run git add -A.
- Distinctive: line 86
If the user requested a narrower scope, stage only that scope.
- Distinctive: line 87
Use file-specific adds, path patterns, or git add -p only when the requested scope requires logical grouping.
- Very specific: line 89
Never leave known secrets staged for commit, including .env, credential files, private keys, or tokens.
- Very specific: line 92
Use Conventional Commits: type(scope): concise summary in the repository's existing commit language.
- Very specific: line 117
Use git commit with multiple -m arguments or an editor-free equivalent so the body is preserved.
- Very specific: line 118
Do not use --no-verify.
- Distinctive: line 119
If hooks or validation fail, fix the failure and retry the commit.
- Distinctive: line 122
If the current branch has an upstream, run git push.
- Very specific: line 123
If there is no upstream, run git push -u origin <current_branch> unless the repository or user specifies another remote.
- Distinctive: line 124
If the push is rejected because the remote moved, run git fetch and inspect before retrying.
- Distinctive: line 125
Do not force-push unless the user explicitly requested force-push and the risk has been confirmed.
- Distinctive: line 126
Never force-push to main or master.
- Distinctive: line 129
Keep the final response concise.
- Distinctive: line 131
If the host app supports Git directives, emit them only after the matching action succeeds.
- Distinctive: line 135
Never update global or system Git config.
- Very specific: line 136
Never run destructive commands such as git reset --hard or git checkout -- <file> unless explicitly requested.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Git Pushing Fast
Overview
Commit and push the current repository's local changes on the current branch with a fast, safe single-branch workflow.
The default output is one focused Conventional Commit plus a push to the tracked remote branch. Analyze the actual diff, stage the requested change set, generate the commit message from the change content, and write a segmented body for non-trivial changes so reviewers can quickly see what changed by topic.
This workflow handles ordinary single-branch handoff requests such as saving current work to the remote, without branch merging, history rewriting, or PR creation.
Conventional Commit Rules
Base format:
<type>[optional scope]: <description>
[body: optional only for trivial changes; required and segmented for non-trivial changes]
[footer(s): required for breaking changes; optional for relevant issue references]For this skill, the body is optional only for trivial commits. For non-trivial changes, write a segmented body and include a Tests: or localized equivalent section when tests, validators, hooks, or manual verification ran.
Types:
| Type | Use for |
feat | New user-facing or product capability |
fix | Bug fix |
docs | Documentation-only change |
style | Formatting/style change with no logic impact |
refactor | Code restructure with no feature or bug fix |
perf | Performance improvement |
test | Test-only or test coverage change |
build | Build system, dependency, or packaging change |
ci | CI or automation config change |
chore | Maintenance or miscellaneous change |
revert | Revert a previous commit |
Breaking changes:
- Use
!after the type or scope, such asfeat(api)!: remove legacy field. - Add a
BREAKING CHANGE:footer when the behavioral contract changes.
Message style:
- Use the repository's existing commit language.
- Write the subject in present tense and imperative mood, such as
fix login redirect. - Keep the subject under 72 characters when practical.
- Reference issues in the body or footer when relevant, such as
Closes #123orRefs #456.
When to Use
Use this skill when the user asks to:
- Commit and push the current work
- Push this, save to remote, or finish a normal single-branch handoff
- Create one Conventional Commit from staged and unstaged changes
- Include a readable commit body that groups changes by feature area, UI area, tests, docs, or validation
Do Not Use
Do not use this skill for:
- Multi-branch flows that merge a work branch into a primary branch
- Force-push, rebase, squash, amend, or history-rewrite requests
- Pull request creation unless the user explicitly asks for it after the push
- Code review, release notes, weekly reports, or changelog generation
- Destructive commands such as
git reset --hardorgit checkout -- <file>
Instructions
Follow this workflow in order. Stop and report the blocker instead of guessing when the target repository, branch, or push destination is unclear.
- Inspect the repository.
- Run
git status --short,git branch --show-current, andgit remote -v. - Check the upstream with
git rev-parse --abbrev-ref --symbolic-full-name @{u}when possible. - Review the staged diff with
git diff --cached --statandgit diff --cached; if nothing is staged, reviewgit diff --statandgit diff. - Use
git status --porcelainwhen script-friendly status parsing is useful. - Never discard or revert user changes.
- Run
- Stage changes.
- If the user asked to commit everything, run
git add -A. - If the user requested a narrower scope, stage only that scope.
- Use file-specific adds, path patterns, or
git add -ponly when the requested scope requires logical grouping. - Re-run
git status --shortand verify the intended files are staged. - Never leave known secrets staged for commit, including
.env, credential files, private keys, or tokens.
- If the user asked to commit everything, run
- Build the commit message.
- Use Conventional Commits:
type(scope): concise summaryin the repository's existing commit language. - Choose the type and scope from the actual diff, not from filenames alone.
- For non-trivial changes, include a segmented body with 2-5 short sections.
- Each section title should name the affected area, followed by bullet points.
- Include a
Tests:or localized equivalent section when tests, validators, hooks, or manual verification ran.
- Use Conventional Commits:
Example segmented body:
fix(module): update component behavior
Behavior:
- Adjust the default state for the affected component.
- Keep existing behavior unchanged for unsupported input.
Implementation:
- Move repeated logic into a small helper.
- Update related configuration to use the new helper.
Tests:
- Add coverage for the updated behavior.
- Run the relevant validator before pushing.- Commit.
- Use
git commitwith multiple-marguments or an editor-free equivalent so the body is preserved. - Do not use
--no-verify. - If hooks or validation fail, fix the failure and retry the commit.
- Use
- Push.
- If the current branch has an upstream, run
git push. - If there is no upstream, run
git push -u origin <current_branch>unless the repository or user specifies another remote. - If the push is rejected because the remote moved, run
git fetchand inspect before retrying. - Do not force-push unless the user explicitly requested force-push and the risk has been confirmed.
- Never force-push to
mainormaster.
- If the current branch has an upstream, run
- Report.
- Keep the final response concise.
- Include the commit hash, branch, remote push result, and validation that ran.
- If the host app supports Git directives, emit them only after the matching action succeeds.
Safety Protocol
- Never update global or system Git config.
- Never run destructive commands such as
git reset --hardorgit checkout -- <file>unless explicitly requested. - Never skip hooks.
- Never commit secrets.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

