with one click
git
Git — 分支、提交、合并。需要 git 操作时用。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Git — 分支、提交、合并。需要 git 操作时用。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
REST/OpenAPI 设计审查。
系统调试循环(/debug)— 复现→假设→隔离→验证→记录;禁止无复现盲改。说「修 bug」「测挂了」「不知道为啥挂」时用。
交付验收(/delivery):视觉 · i18n · 文档对齐 · 后端对接 · 组件完整度 · 可维护性 · 生产就绪。Sprint 收尾或 /release 分支前走查。说「交付验收」「上线前检查」「生产就绪」时用。
磁盘快照(/disk):结构化采集 HOME 与可配置路径占用,写入 .cursorGrowth/disk-snapshots/, 并与上次快照对比变动。说「磁盘快照」「空间变动」「disk snapshot」时也触发。
信息架构(IA)规划与审查(/ia)— 工作流正交、角色入口、分支点、反模式。说「信息架构」「导航迷路」「角色首页」「工作流分支」「Dashboard 太乱」时用。
学习项目(/learn):CHANGELOG/git/archive→.cursorGrowth/learn/。不写 .cursor。
| name | git |
| description | Git — 分支、提交、合并。需要 git 操作时用。 |
分支:feat/* · fix/* · chore/* · docs/*
格式:type(scope): summary(scope 可选)
<type>[optional scope]: <description>
[optional body]
[optional footer]
| type | 用途 | SemVer |
|---|---|---|
feat | 新功能 | MINOR |
fix | 缺陷修复 | PATCH |
docs · style · refactor · perf · test · build · ci · chore | 非功能面变更 | 通常无版本跃迁 |
BREAKING CHANGE: 页脚或 type!: | 破坏性 API/行为变更 | MAJOR |
feat(api): …)git status — 无 .env、密钥、意外大文件;勿 stage plan.md(gitignore)git diff --stat — 范围符合当前任务./.cursor/bin/runner.sh task-verify(启用 plan/run 时)[Unreleased] 已更新用户可见变更(若有)docs(readme): sync v4.10 summary (DOC-001))启用 plan/run 时,run skill 要求每任务 ✅ 与 Sprint 收尾 同轮 commit;tag-per-commit 时同轮 release-tag。
plan.md 为本地工作文件(.gitignore),commit 只含代码/CHANGELOG/README 等已跟踪文件。
/delivery(见 delivery skill);Blocker 须在 PR 描述中说明rules/communication/collaboration.mdc)github-ops · gh 有则用)用这个:超出本地 git 的仓库运维(issue · PR · CI · release)。不是那个:日常 commit/push → 上节;打版清单 → release skill。
吸收自 SkillsMP github-ops(协议 only;command -v gh 不可用则口述步骤或跳过)。
| 场景 | 典型 gh 动作 | 注意 |
|---|---|---|
| Issue triage | gh issue list · gh issue view · gh issue edit 标签/指派 | 先读描述与关联 PR;勿批量关未复现 issue |
| Stale 清理 | gh issue list --search 'is:open sort:updated-asc' · 评论后 close | 须团队政策;默认 不自动 close |
| PR 状态 | gh pr checks · gh pr view · gh run list / gh run view | CI 红先读 log,再改代码 |
| Release | gh release list · gh release create(用户确认后) | 与 release skill · CHANGELOG 对齐;勿跳过 verify |
纪律:运维命令不写进母版必选路径;MCP gh 工具可用时等价遵循上表意图。
git push --force 到共享/默认分支git reset --hard · git clean -fdx--no-verify / --no-gpg-sign清单 → release skill · 自治 → ship agent · tag 规则 → rules/feedback/tag.mdc
并行 TASK / 功能分支时:
git worktree add ../repo-feature-<name> -b feat/<name>
# 完成后见 **release** skill §分支 · 选项 1/4 可清理 worktree
git worktree list
git worktree remove <path> # 须无未提交改动 · 用户确认