跳至正文
OpenAgentSkill
浏览已开放 · 目录记录日期 2026-11-21 · 自动更新和账户服务暂时关闭。
开发与测试

git-helper

Provides git workflow assistance, branch management, and commit message optimization

joshuadavidthomas · 已有 AI 审核记录

安装与使用

运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。

npx skills add joshuadavidthomas/opencode-agent-skills --skill git-helper

技能说明


name: git-helper description: Provides git workflow assistance, branch management, and commit message optimization

Git Helper

A comprehensive skill for git workflow management and best practices.

Quick Start

Use this skill when you need help with:

  • Branch creation and management
  • Commit message formatting
  • Git workflow optimization
  • Repository maintenance

Common Workflows

Creating a New Feature Branch

git checkout -b feature/your-feature-name
git push -u origin feature/your-feature-name

Writing Good Commit Messages

Follow the conventional commit format:

type(scope): description

[optional body]

[optional footer]

Types: feat, fix, docs, style, refactor, test, chore

Git Cleanup Commands

Remove stale branches

git remote prune origin

Clean up local branches

git branch -d branch-name

Scripts

This skill includes helper scripts:

• create-branch.sh - Creates new feature branches with proper naming • commit-check.sh - Validates commit message format • cleanup.sh - Removes stale branches

Best Practices

  1. Always pull latest changes before creating branches
  2. Use descriptive branch names with prefixes (feature/, bugfix/, hotfix/)
  3. Write atomic commits (one logical change per commit)
  4. Keep commit messages under 72 characters for the subject line