Loading...
Loading...
Use when creating commits, pull requests, releases, or tags. Triggers on「帮我提交」「commit」「提交代码」「创建 PR」「发布版本」「打 tag」「写 commit message」「推代码」
npx skill4agent add niracler/skill git-workflow| Tool | Type | Required | Install |
|---|---|---|---|
| git | cli | Yes | |
| gh | cli | No | |
Do NOT proactively verify these tools on skill load. If a command fails due to a missing tool, directly guide the user through installation and configuration step by step.
git remote get-url origin| Remote URL contains | Commits/Tags/Releases | PR/MR |
|---|---|---|
| This skill | This skill ( |
| This skill | Switch to |
| This skill | This skill (adapt for GitLab CLI) |
type(scope): concise summary
- Optional bullet points (max 3-4)
- Keep short and focusedfeature/descriptionfix/descriptiondocs/descriptionrefactor/descriptiontest/descriptionchore(release): bump version to x.y.zgit tag v{version} && git push upstream v{version}gh release createCo-Authored-By: ClaudeGenerated with Claude Codegit pushgit push -u origin <branch>scripts/validate_commit.pypython3 scripts/validate_commit.py "feat(auth): add OAuth2 support"
python3 scripts/validate_commit.py --file .git/COMMIT_EDITMSGgit add <files>
git commit -m "feat(component): add new feature" && git pushgit checkout -b feature/new-feature
# ... make changes, commit (auto-pushes per default behavior) ...
gh pr create --title "feat(component): add new feature" --body "..."# Update version files + CHANGELOG.md
git add .
git commit -m "chore(release): bump version to 1.2.0" && git push
git tag v1.2.0 && git push upstream v1.2.0
gh release create v1.2.0 -R owner/repo --title "v1.2.0" --notes "..."| Issue | Cause | Fix |
|---|---|---|
| Subject line > 72 chars | Description too long | Shorten summary, put details in body |
| Multiple types in one commit | Scope too large | Split into single-purpose commits |
| Merge commits appear | Used merge | Use |
| Validator script errors | Format mismatch | Check type(scope): format |