重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
managing-git by cloudai-x/claude-workflow-v2
npx skills add https://github.com/cloudai-x/claude-workflow-v2 --skill managing-git复制此清单以跟踪进度:
功能开发进度:
- [ ] 步骤 1:从 main 分支创建功能分支
- [ ] 步骤 2:进行原子提交更改
- [ ] 步骤 3:基于最新的 main 分支进行变基
- [ ] 步骤 4:推送并创建 PR
- [ ] 步骤 5:处理评审反馈
- [ ] 步骤 6:批准后合并
main ──●────●────●────●────●── (始终可部署)
\ /
feature └──●──●──┘
main 分支始终处于可部署状态main ──●─────────────●────── (仅用于发布)
\ /
release └────●────┘
/
develop ──●──●────●──●──●──
\ /
feature └──●┘
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
<type>(<scope>): <description>
[可选正文]
[可选脚注]
| 类型 | 描述 |
|---|---|
feat | 新功能 |
fix | 错误修复 |
docs | 仅文档变更 |
style | 格式化,无逻辑变更 |
refactor | 既不修复错误也不添加功能的代码变更 |
perf | 性能改进 |
test | 添加/更新测试 |
chore | 构建过程、依赖项 |
ci | CI 配置 |
feat(auth): 添加 OAuth2 登录支持
实现 Google 和 GitHub OAuth 提供程序。
关闭 #123
BREAKING CHANGE: 会话令牌现在在 24 小时后过期
fix(api): 处理支付网关返回的 null 响应
之前当网关返回 null 时会导致 500 错误。
现在向用户返回适当的错误消息。
<type>/<ticket-id>-<short-description>
# 示例
feature/AUTH-123-oauth-login
fix/BUG-456-null-pointer
chore/TECH-789-upgrade-deps
创建 PR 时复制此清单:
PR 清单:
- [ ] 代码遵循项目规范
- [ ] 为变更添加/更新了测试
- [ ] 所有测试在本地通过
- [ ] 与 main 分支无合并冲突
- [ ] 如果需要,已更新文档
- [ ] 未引入安全漏洞
- [ ] PR 描述解释了“为什么”要这样做
## 摘要
[变更的简要描述]
## 变更内容
- [变更 1]
- [变更 2]
## 测试
- [ ] 添加/更新了单元测试
- [ ] 执行了手动测试
- [ ] E2E 测试通过
## 截图(如果是 UI 变更)
[变更前/变更后截图]
| 规模 | 变更行数 | 评审指导 |
|---|---|---|
| XS | < 50 | 快速评审 |
| S | 50-200 | 标准评审 |
| M | 200-500 | 彻底评审 |
| L | 500+ | 如有可能,请拆分 |
# 开始新功能
git checkout main
git pull
git checkout -b feature/TICKET-123-description
# 提交更改
git add -p # 交互式暂存
git commit -m "feat: description"
# 与 main 分支保持同步
git fetch origin main
git rebase origin/main
# 推送并创建 PR
git push -u origin HEAD
# 修改最后一次提交(在推送之前)
git commit --amend
# 撤销最后一次提交(保留更改)
git reset --soft HEAD~1
# 撤销最后一次提交(丢弃更改)
git reset --hard HEAD~1
# 还原一个已推送的提交
git revert <commit-hash>
# 交互式变基以清理历史
git rebase -i HEAD~3
# 拣选特定提交
git cherry-pick <commit-hash>
# 查找是哪个提交破坏了功能
git bisect start
git bisect bad HEAD
git bisect good <known-good-commit>
# 带消息的储藏
git stash push -m "WIP: feature description"
git stash list
git stash pop
推送前,验证提交:
提交验证:
- [ ] 每个提交都有清晰、描述性的消息
- [ ] 提交类型与变更匹配(feat、fix 等)
- [ ] 没有 WIP 或临时提交
- [ ] 没有提交密钥或凭据
- [ ] 更改是原子的(每个提交一个逻辑变更)
如果验证失败,请在推送前使用 git rebase -i 清理提交历史。
每周安装量
65
仓库
GitHub 星标数
1.3K
首次出现
2026 年 1 月 22 日
安全审计
安装于
gemini-cli58
opencode57
codex56
github-copilot53
amp51
cursor50
Copy this checklist and track progress:
Feature Development Progress:
- [ ] Step 1: Create feature branch from main
- [ ] Step 2: Make changes with atomic commits
- [ ] Step 3: Rebase on latest main
- [ ] Step 4: Push and create PR
- [ ] Step 5: Address review feedback
- [ ] Step 6: Merge after approval
main ──●────●────●────●────●── (always deployable)
\ /
feature └──●──●──┘
main is always deployablemain ──●─────────────●────── (releases only)
\ /
release └────●────┘
/
develop ──●──●────●──●──●──
\ /
feature └──●┘
<type>(<scope>): <description>
[optional body]
[optional footer(s)]
| Type | Description |
|---|---|
feat | New feature |
fix | Bug fix |
docs | Documentation only |
style | Formatting, no logic change |
refactor | Code change that neither fixes bug nor adds feature |
perf | Performance improvement |
feat(auth): add OAuth2 login support
Implements Google and GitHub OAuth providers.
Closes #123
BREAKING CHANGE: Session tokens now expire after 24h
fix(api): handle null response from payment gateway
Previously caused 500 error when gateway returned null.
Now returns appropriate error message to user.
<type>/<ticket-id>-<short-description>
# Examples
feature/AUTH-123-oauth-login
fix/BUG-456-null-pointer
chore/TECH-789-upgrade-deps
Copy this checklist when creating PRs:
PR Checklist:
- [ ] Code follows project conventions
- [ ] Tests added/updated for changes
- [ ] All tests pass locally
- [ ] No merge conflicts with main
- [ ] Documentation updated if needed
- [ ] No security vulnerabilities introduced
- [ ] PR description explains the "why"
## Summary
[Brief description of changes]
## Changes
- [Change 1]
- [Change 2]
## Testing
- [ ] Unit tests added/updated
- [ ] Manual testing performed
- [ ] E2E tests pass
## Screenshots (if UI changes)
[Before/After screenshots]
| Size | Lines Changed | Review Guidance |
|---|---|---|
| XS | < 50 | Quick review |
| S | 50-200 | Standard review |
| M | 200-500 | Thorough review |
| L | 500+ | Split if possible |
# Start new feature
git checkout main
git pull
git checkout -b feature/TICKET-123-description
# Commit changes
git add -p # Stage interactively
git commit -m "feat: description"
# Keep up with main
git fetch origin main
git rebase origin/main
# Push and create PR
git push -u origin HEAD
# Amend last commit (before push)
git commit --amend
# Undo last commit (keep changes)
git reset --soft HEAD~1
# Undo last commit (discard changes)
git reset --hard HEAD~1
# Revert a pushed commit
git revert <commit-hash>
# Interactive rebase to clean up
git rebase -i HEAD~3
# Cherry-pick specific commit
git cherry-pick <commit-hash>
# Find which commit broke something
git bisect start
git bisect bad HEAD
git bisect good <known-good-commit>
# Stash with message
git stash push -m "WIP: feature description"
git stash list
git stash pop
Before pushing, validate commits:
Commit Validation:
- [ ] Each commit has a clear, descriptive message
- [ ] Commit type matches the change (feat, fix, etc.)
- [ ] No WIP or temporary commits
- [ ] No secrets or credentials committed
- [ ] Changes are atomic (one logical change per commit)
If validation fails, use git rebase -i to clean up commit history before pushing.
Weekly Installs
65
Repository
GitHub Stars
1.3K
First Seen
Jan 22, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
gemini-cli58
opencode57
codex56
github-copilot53
amp51
cursor50
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
122,000 周安装
test| Adding/updating tests |
chore | Build process, dependencies |
ci | CI configuration |