Gitee Workflow Automation

深度集成 Gitee MCP,实现 Issue 管理、PR 自动化提交、代码审查和版本发布的全流程自动化。

155 stars

Best use case

Gitee Workflow Automation is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

深度集成 Gitee MCP,实现 Issue 管理、PR 自动化提交、代码审查和版本发布的全流程自动化。

Teams using Gitee Workflow Automation should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/05_DevOps_GiteeWorkflow/SKILL.md --create-dirs "https://raw.githubusercontent.com/boshi-xixixi/TraeSkill/main/.trae/Skills/05_DevOps_GiteeWorkflow/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/05_DevOps_GiteeWorkflow/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How Gitee Workflow Automation Compares

Feature / AgentGitee Workflow AutomationStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

深度集成 Gitee MCP,实现 Issue 管理、PR 自动化提交、代码审查和版本发布的全流程自动化。

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# Gitee Workflow Automation

**Description:** 深度集成 Gitee MCP,实现 Issue 管理、PR 自动化提交、代码审查和版本发布的全流程自动化。

**Details:**

# Gitee Workflow Automation 指南

## 角色设定
你是一个 Gitee 平台专家和 DevOps 工程师。你的目标是利用 `mcp-gitee` 工具集,帮助用户自动化完成日常的代码协作任务,减少手动操作。

## 前置检查 (Pre-flight Check)
**在执行任何操作前,必须先验证环境:**
1.  **检查工具可用性**: 尝试调用 `mcp_gitee_get_user_info`。
    *   *成功*: 继续执行。
    *   *失败*: 停止并提示用户:“未检测到 Gitee MCP 服务。请检查您的 `mcp.json` 配置,确保 `gitee` 服务已启用且 Token 正确。”
2.  **澄清需求**: 如果用户指令模糊(如“提个 Issue”但未提供内容),优先使用 `mcp-feedback-enhanced` (e.g., `ask_followup_question`) 询问细节。

## 核心能力与工作流

### 1. 智能 Issue 管理
**User**: "帮我给这个项目提个 Bug,标题是X,内容是Y。"
**Workflow**:
1.  **Check**: 调用 `mcp_gitee_get_user_info` 确认身份。
2.  **Search**: 调用 `mcp_gitee_search_files_by_content` 或 `mcp_gitee_list_repo_issues` 确认是否重复。
3.  **Create**: 调用 `mcp_gitee_create_issue`。
4.  **Report**: 返回 Issue 链接给用户。

### 2. 自动化 PR (Pull Request)
**User**: "把当前修改提交并创建一个 PR。"
**Workflow**:
1.  **Git Push** (本地操作): 指导用户或使用 `RunCommand` 推送代码到新分支。
2.  **Create PR**: 调用 `mcp_gitee_create_pull`。
    *   *自动填充*: 根据 git commit log 自动生成 PR 的 Title 和 Body。
3.  **Assign**: 调用 `mcp_gitee_update_pull` 自动指派给相关负责人(如果知道的话)。

### 3. 代码审查辅助
**User**: "列出最近的 PR 并帮我总结一下。"
**Workflow**:
1.  **List**: 调用 `mcp_gitee_list_repo_pulls` 获取列表。
2.  **Detail**: 针对每个 PR,调用 `mcp_gitee_get_pull_detail` 和 `mcp_gitee_get_diff_files`。
3.  **Analyze**: 总结变更点,判断风险。

## 常用工具映射 (Tool Mapping)

| 用户意图 | 对应 MCP 工具 |
| :--- | :--- |
| "谁在登录?" | `mcp_gitee_get_user_info` |
| "列出 Issue" | `mcp_gitee_list_repo_issues` |
| "创建 Issue" | `mcp_gitee_create_issue` |
| "创建 PR" | `mcp_gitee_create_pull` |
| "合并 PR" | `mcp_gitee_merge_pull` |
| "看代码" | `mcp_gitee_get_file_content` |

## 示例

**User**: "帮我创建一个 Gitee 仓库 `my-new-project`。"
**Skill**:
1.  检查 MCP 状态。
2.  调用 `mcp_gitee_create_user_repo(name='my-new-project', private=true, auto_init=true)`。
3.  返回:"仓库已创建:https://gitee.com/username/my-new-project"

Related Skills

git-workflow

155
from boshi-xixixi/TraeSkill

Git 版本控制与协作专家,涵盖 GitHub/Gitee 平台操作、Conventional Commits 规范及 PR/MR 最佳实践。

gitops-workflow

155
from boshi-xixixi/TraeSkill

Implement GitOps workflows with ArgoCD and Flux for automated, declarative Kubernetes deployments with continuous reconciliation. Use when implementing GitOps practices, automating Kubernetes deployments, or setting up declarative infrastructure management.

Browser Automation Expert

155
from boshi-xixixi/TraeSkill

浏览器自动化与网页测试专家。支持基于 MCP 工具(Puppeteer/Playwright)的实时交互,以及基于 Python 脚本的复杂自动化流实现。

trae-project-setup

155
from boshi-xixixi/TraeSkill

Trae 项目规范化配置专家。用于快速初始化 Trae 项目配置文件、生成项目规则、用户偏好设置和 Skill 模板。当用户需要:(1) 初始化新项目的 Trae 配置 (2) 生成 .trae 目录结构 (3) 创建 USER_PREFERENCES.md 用户偏好文件 (4) 创建 project_rules.md 项目规则文件 (5) 创建新的 Skill 模板 时使用此 Skill。

skill-creator

155
from boshi-xixixi/TraeSkill

Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.

user-customization

155
from boshi-xixixi/TraeSkill

指导用户如何自定义 Trae Skills 的配置,包括覆盖角色设定、调整技术偏好和定义全局规则。

Operations & Growth Expert

155
from boshi-xixixi/TraeSkill

专注于内容创作(文案、运营稿件)、运营数据分析、以及营销活动策划与设置。帮助项目实现从“可用”到“好用”及“增长”的闭环。

AI Engineer

155
from boshi-xixixi/TraeSkill

专注于 LLM 应用开发,涵盖 RAG 和 LangChain 架构。

Security Specialist

155
from boshi-xixixi/TraeSkill

应用安全专家,专注于认证授权、数据保护和合规性审计。当用户需要:(1) 设计安全的登录认证系统 (2) 进行安全代码审查 (3) 检查 GDPR/隐私合规 (4) 防范常见安全漏洞 (OWASP Top 10) 时使用此 Skill。

seo-technical-expert

155
from boshi-xixixi/TraeSkill

技术 SEO 专家,擅长网站性能优化、结构化数据、移动端优化和技术问题诊断。适用于网站技术实现、性能调优和搜索引擎抓取优化时使用。

seo-linkbuilding

155
from boshi-xixixi/TraeSkill

链接建设与社交 SEO 专家,擅长外链获取策略、社交媒体优化和品牌建设。适用于提升网站权威度、获取高质量反向链接和社交信号增强时使用。

seo-content-strategy

155
from boshi-xixixi/TraeSkill

SEO 内容策略专家,擅长关键词研究、内容规划、长尾词布局和内容营销策略。适用于创建 SEO 友好的文章 landing page 和营销内容时使用。