DevOps v1.0.0

git-ops-zhulaoqi

Local git operations for project management. Use when: (1) creating branches for new features/issues, (2) committing and...

zhulaoqi 更新于 2026-03-10 1 浏览
下载 SKILL

技能说明

Local git operations for project management. Use when: (1) creating branches for new features/issues, (2) committing and pushing code, (3) pulling latest changes, (4) managing branches, (5) viewing git log/diff/status, (6) preparing code for merge requests or pull requests. Triggers on: git, branch, commit, push, pull, merge, checkout, diff, log, 分支, 提交, 推送.

使用场景

Local git operations for managing project code.

查看英文原始说明

Local git operations for project management. Use when: (1) creating branches for new features/issues, (2) committing and pushing code, (3) pulling latest changes, (4) managing branches, (5) viewing git log/diff/status, (6) preparing code for merge requests or pull requests. Triggers on: git, branch, commit, push, pull, merge, checkout, diff, log, 分支, 提交, 推送.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/git-ops-zhulaoqi
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

4 个文件 · 15 kB
SKILL.md text/markdown
---
name: git-ops
description: "Local git operations for project management. Use when: (1) creating branches for new features/issues, (2) committing and pushing code, (3) pulling latest changes, (4) managing branches, (5) viewing git log/diff/status, (6) preparing code for merge requests or pull requests. Triggers on: git, branch, commit, push, pull, merge, checkout, diff, log, 分支, 提交, 推送."
---

# Git Ops Skill

Local git operations for managing project code.

## Branch Naming Convention

For new features/issues, create branches with pattern:
```
feature/issue-{number}-{brief-description}
```

For bug fixes:
```
fix/issue-{number}-{brief-description}
```

## Standard Workflow

### Start new feature from an issue

```bash
cd /path/to/project
git checkout main
git pull origin main
git checkout -b feature/issue-1-add-dark-mode
```

### After coding is done

```bash
git add -A
git commit -m "feat: add dark mode support (closes #1)"
git push -u origin feature/issue-1-add-dark-mode
```

### Create PR/MR after push

- GitHub: use `github` skill → `gh pr create`
- GitLab: use `gitlab-ops` skill → `glab mr create`

## Common Commands

```bash
# Status
git status
git log --oneline -10
git diff
git diff --staged

# Branch management
git branch -a
git checkout main
git checkout -b feature/xxx
git branch -d old-branch

# Sync
git pull origin main
git fetch --all
git rebase main

# Stash
git stash
git stash pop
git stash list
```

## Known Project Paths

| Project | Path | Remote |
|---------|------|--------|
| yeahmobiEverything | /Users/zhujinqi/Documents/javacode/learn/yeahmobiEverything | GitHub (zhulaoqi) |
| ad-pex-ai | TBD | GitLab (ad-pex/ad-pex-ai) |

## Commit Message Convention

Use conventional commits:
- `feat:` new feature
- `fix:` bug fix
- `refactor:` code refactoring
- `style:` UI/style changes
- `docs:` documentation
- `chore:` maintenance

## Notes

- Always pull latest before creating new branches
- Never force push to main/master
- Ask user before any destructive operations (reset --hard, force push)

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。