.agent/workflows/git-branch-pr-flow/SKILL.md
Git 一条龙工作流:创建分支、commit、push、创建 PR、merge、删除分支、同步本地 main。当用户要求提交代码、创建 PR、一条龙、或完整的 Git 提交流程时使用。
npx skillsauth add Yueby/music-together git-branch-pr-flowInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
从当前变更出发,一步到位完成:分支 → commit → push → PR → merge → 清理。
git status
git diff --stat
git log --oneline -5
main 分支git checkout main && git pull分支命名规范:<type>/<short-description>
| type | 场景 | |------|------| | feat | 新功能 | | fix | 修复 | | refactor | 重构 | | docs | 文档 | | chore | 杂项 |
git checkout -b <type>/<short-description>
git add -A
# 排除不应提交的文件(如有)
git reset HEAD .cursor/plans/ 2>$null
Commit message 规范:
<type>: <简要描述>-F 读取文件方式传递多行 message,避免 heredoc 兼容问题# 写入临时 message 文件
# Write tool → .git/COMMIT_MSG
git commit -F .git/COMMIT_MSG
单行 message 可直接用 -m:
git commit -m "<type>: <描述>"
git push -u origin HEAD
gh pr create --title "<commit 标题>" --body "<变更摘要>"
PR body 包含:
gh pr merge <pr-number> --merge --delete-branch
等待命令完成后,同步本地:
git checkout main && git pull
清理临时文件:
# 删除 commit message 临时文件(如果使用了 -F 方式)
Remove-Item .git/COMMIT_MSG -ErrorAction SilentlyContinue
确认本地只剩干净的 main 分支。
.cursor/plans/、.env 等敏感/IDE 文件git commit 在 PowerShell 下 spawn 失败,改用 -F 文件方式development
Frontend development patterns for React, Next.js, state management, performance optimization, and UI best practices.
development
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
development
Backend architecture patterns, API design, database optimization, and server-side best practices for Node.js, Express, and Next.js API routes.
tools
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.