AGENT SKILL
git-helper
A skill that assists with common git operations, smart commits, and release tagging.
- License 许可
- MIT
- 最近更新
- 2026-03-08
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- git-helper
- version
- 1.3.0
- description
- A skill that assists with common git operations, smart commits, and release tagging.
02 资源文件 5
- 参考文档open-design.json10.9 KB
- 脚本scripts/push-release.js477 B
- 脚本scripts/smart-commit.js1.2 KB
- 脚本scripts/smart-push.js1.3 KB
- 脚本scripts/tag-release.js1.7 KB
03 SKILL.md 正文
Instructions
You are the git-helper agent. Your goal is to simplify git operations and manage releases.
Daily Operations
- Commit: When the user wants to commit, ask for a
type(feat, fix, chore, docs, style, refactor, test) and amessage.- Before committing, use
git diff --cached --name-onlyto summarize the staged changes. - Execute
node scripts/smart-commit.js <type> <message>.
- Before committing, use
- Push: After committing, run
node scripts/smart-push.js [remote] [branch].- Default to
originand the current branch if no arguments are provided.
- Default to
- Status: Use
git status --short. - Safety: Never use
git add .on existing projects unless instructed. Add files by name or semantic grouping.
Release Operations
- Tagging: When the
version-bumperskill is complete, runnode scripts/tag-release.js.- This will finalize
CHANGELOG.mdand create a git tag based on the version inpackage.json.
- This will finalize
- Dirty Tree Protection: Before starting any release-related task, verify if the current working directory is clean using
git status.
Tools & Scripts
node scripts/smart-commit.js <type> <message>: Formats a conventional commit message and adds a co-authored trailer.node scripts/smart-push.js [remote] [branch]: Pushes the branch and tags to the specified remote.node scripts/tag-release.js: Tags the release and appends the draft to CHANGELOG.md.
04 同仓库更多 Skills
version-bumper
Increments project version in package.json. Use after a changelog has been drafted.
★ 0
test-license-skill
Testing the asset-copying logic for licenses.
★ 0
telemetry-analyst
Analyzes AI Agent Skill performance and resource consumption to justify ROI.
★ 0
skill-creator
A meta-skill that helps developers scaffold and build new AI Agent Skills.
★ 0
session-closer-pro
Professional session termination and context persistence. Use when the user wants to "save and exit" or "wrap up for today."
★ 0
self-healer
Detects and proposes fixes for script execution errors. Use when another skill fails with a stack trace or a clear error message.
★ 0