Agent skill

git-workflow-bayzhen-bayzhen-github-io

Git工作流规范,用于版本控制和发布

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/git-workflow-bayzhen-bayzhen-github-io

SKILL.md

Git 工作流技能

提交规范

提交信息格式

<type>: <subject>

[optional body]

Co-Authored-By: Claude Opus 4.5 <[email protected]>

Type 类型

  • Add - 新增文章或功能
  • Update - 更新现有内容
  • Fix - 修复问题
  • Refactor - 重构代码/结构
  • Style - 样式调整
  • Docs - 文档更新

示例

bash
# 新增文章
git commit -m "Add Claude Code hooks tutorial"

# 更新内容
git commit -m "Update navigation links on homepage"

# 修复问题
git commit -m "Fix broken link in article index"

工作流程

1. 查看状态

bash
git status
git diff

2. 暂存更改

bash
# 暂存特定文件
git add articles/new-article.html

# 暂存所有更改(谨慎使用)
git add .

3. 提交

bash
git commit -m "$(cat <<'EOF'
Add new article about topic

Detailed description if needed.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
EOF
)"

4. 推送

bash
git push

注意事项

  • 不要提交 Docs/ 目录(源文档)
  • 检查 .gitignore 确保敏感文件被忽略
  • 推送前确认所有链接正确
  • GitHub Pages 会自动部署 Main 分支

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results