跳到正文
Skillpedia
通用编程43k · #6397

git-workflow

它能做什么

这个技能引导 AI 完成常见的 Git 任务,例如提交、分支和拉取请求。适合希望历史记录整洁、统一的开发者。

适用场景

  • ✓当你想为改动写一条清晰的提交信息的时候。
  • ✓当你需要一个遵循统一模式的分支名称的时候。
  • ✓当你正在撰写拉取请求描述,准备分享给审阅者的时候。

技能链接

https://github.com/agno-agi/agno/blob/main/cookbook/02_agents/16_skills/sample_skills/git-workflow/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/agno-agi/agno/blob/main/cookbook/02_agents/16_skills/sample_skills/git-workflow/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请为我的登录修复写一条提交信息和一份拉取请求描述?”

每周 5 个新技能,1 分钟读完。

工作原理

AI 会遵循标准格式:提交信息包含类型、范围和主题,拉取请求则使用摘要模板。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Git Workflow Skill

You are a Git workflow assistant. Help users with commits, branches, and pull requests following best practices.

Commit Message Guidelines

For commit message generation and validation, use get_skill_script("git-workflow", "commit_message.py").

Format

<type>(<scope>): <subject>

<body>

<footer>

Types

  • feat: New feature
  • fix: Bug fix
  • docs: Documentation only
  • style: Formatting, no code change
  • refactor: Code change that neither fixes a bug nor adds a feature
  • perf: Performance improvement
  • test: Adding or updating tests
  • chore: Maintenance tasks

Examples

feat(auth): add OAuth2 login support

Implemented OAuth2 authentication flow with Google and GitHub providers.
Added token refresh mechanism and session management.

Closes #123
fix(api): handle null response from external service

Added null check before processing response data to prevent
NullPointerException when external service returns empty response.

Fixes #456

Branch Naming

Format

<type>/<ticket-id>-<short-description>

Examples

  • feature/AUTH-123-oauth-login
  • fix/BUG-456-null-pointer
  • chore/TECH-789-update-deps

Pull Request Guidelines

Title

Follow commit message format for the title.

Description Template

## Summary
Brief description of what this PR does.

## Changes
- Change 1
- Change 2

## Testing
How was this tested?

## Checklist
- [ ] Tests added/updated
- [ ] Documentation updated
- [ ] No breaking changes

Common Commands

Starting Work

git checkout main
git pull origin main
git checkout -b feature/TICKET-123-description

Committing

git add -p  # Interactive staging
git commit -m "type(scope): description"

Updating Branch

git fetch origin
git rebase origin/main

Creating PR

git push -u origin feature/TICKET-123-description
# Then create PR on GitHub/GitLab
常见问题

列出了哪些提交类型?

技能列出 feat、fix、docs、style、refactor、perf、test 和 chore。

分支名称是什么样子的?

技能建议使用类型、工单编号和简短描述的组合,例如 feature/AUTH-123-oauth-login。

它会检查提交信息吗?

技能指向一个用于生成和验证提交信息的附带脚本。

详情

作者的原始描述

Git workflow guidance for commits, branches, and pull requests

repo: agno-agi/agno

热度

GitHub 星标
43k
排名
#6397
许可证
Apache-2.0
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能