jvy

gitee

开发编程v1.0.0
作者:jvy✓ SkillHub 认证更新于 2026-05-11@user_7368e5a9/gitee
Git 辅助#Browser#Git#GitHub#Repository

据 AlphaMoat 统计,截至 2026-09,gitee 累计下载 3,273 次、获 2 个星标,在全部 5,078 个 AI 技能中排名第 3,469 位,在「开发编程」分类(577 个)中排名第 445 位。

累计安装
192
累计下载
3,273
星标
2
全站排名
#3,469
全站前 69% · 「开发编程」前 78%
平台累计安装累计下载星标评论
ClawHub ↗361,3421-
SkillHub ↗1923,2732—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

通过curl、jq、git和GITEE_ACCESS_TOKEN处理PR、Issue及仓库文件。令牌应最小授权且不进日志或对话,写入和推送需明确批准;GitHub专属、纯本地git及浏览器登录或SSO不在本技能范围内。

资料发布于 2026-10-27

可以用来做什么

  • Gitee仓库检查

什么时候用

  • 需要Gitee仓库检查时。

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

仅列出授权Gitee仓库的开放PR,不做变更。

月度数据趋势

累计下载3,273
4051,9453,4852026-03 · 累计下载 6172026-05 · 累计下载 1,1072026-06 · 累计下载 1,2822026-07 · 累计下载 1,5702026-08 · 累计下载 1,9322026-09 · 累计下载 3,27326-0326-09
星标2
1222026-03 · 星标 12026-05 · 星标 22026-06 · 星标 22026-07 · 星标 22026-08 · 星标 22026-09 · 星标 226-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。 该技能有同名的其他版本,调整前的数据归属当前下载量最大的这一个。

月份累计下载环比星标
2026-093,273—2
2026-081,932+23.1%2
2026-071,570+22.5%2
2026-061,282+15.8%2
2026-051,107—2
2026-03617—1

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

5.0 KB · ClawHub v1.0.0
---
name: gitee
description: "Gitee operations via OpenAPI and git: repositories, pull requests, issues, comments, and file contents. Use when: (1) inspecting or creating Gitee pull requests, (2) listing or creating repository issues, (3) reading repository files from the Gitee API, (4) working with gitee.com remotes from the terminal. NOT for: GitHub-only workflows, local-only git tasks with no Gitee interaction, or browser-only account setup and SSO flows."
metadata:
  {
    "openclaw":
      {
        "emoji": "🧰",
        "requires": { "bins": ["curl", "git", "jq"], "env": ["GITEE_ACCESS_TOKEN"] },
        "primaryEnv": "GITEE_ACCESS_TOKEN",
展开全部(共 199 行)
      },
  }
---

# Gitee Skill

Use `git` for clone, fetch, branch, and push operations. Use `curl` + `jq` for structured Gitee API calls.

## When to Use

✅ **USE this skill when:**

- Checking Gitee pull requests, branches, or repository metadata
- Listing or creating issues on a Gitee repository
- Reading repository files through the Gitee API
- Automating Gitee workflows from the terminal when no dedicated CLI is available

## When NOT to Use

❌ **DON'T use this skill when:**

- Working with GitHub repositories → use the `github` skill
- Doing local-only git work with no Gitee interaction → use `git` directly
- Handling browser-only flows such as login, captcha, or SSO approval

## Setup

1. Create a Gitee personal access token with the repository permissions you need.
2. Export the API base URL and token:

```bash
export GITEE_API="https://gitee.com/api/v5"
export GITEE_ACCESS_TOKEN="..."
```

3. Never print, commit, or paste the token into chat. Keep it in environment/config only.

## Remote Patterns

Common Gitee remotes:

```text
https://gitee.com/owner/repo.git
[email protected]:owner/repo.git
```

Inspect the current repo:

```bash
git remote -v
git remote get-url origin
```

## API Conventions

- Gitee OpenAPI examples commonly pass OAuth2 credentials as `access_token`.
- Prefer `curl -fsS` so HTTP failures surface clearly.
- Prefer `jq -nc` to build JSON request bodies instead of hand-escaped strings.
- Repository issue APIs differ from GitHub: many issue routes use `/repos/{owner}/issues` and pass the repo name as a `repo` field.

## Common Commands

### Pull Requests

List open pull requests:

```bash
OWNER=owner
REPO=repo

curl -fsS --get "$GITEE_API/repos/$OWNER/$REPO/pulls" \
  --data-urlencode "access_token=$GITEE_ACCESS_TOKEN" \
  --data-urlencode "state=open" |
  jq '.[] | {number, title, state, author: .user.login}'
```

View one pull request:

```bash
PR_NUMBER=12

curl -fsS --get "$GITEE_API/repos/$OWNER/$REPO/pulls/$PR_NUMBER" \
  --data-urlencode "access_token=$GITEE_ACCESS_TOKEN"
```

Create a pull request:

```bash
HEAD_BRANCH="feature-branch"
BASE_BRANCH="main"
TITLE="feat: add gitee support"
BODY="Summary of the change"

curl -fsS -X POST "$GITEE_API/repos/$OWNER/$REPO/pulls" \
  -H "Content-Type: application/json" \
  -d "$(jq -nc \
    --arg access_token "$GITEE_ACCESS_TOKEN" \
    --arg title "$TITLE" \
    --arg head "$HEAD_BRANCH" \
    --arg base "$BASE_BRANCH" \
    --arg body "$BODY" \
    '{access_token: $access_token, title: $title, head: $head, base: $base, body: $body}')" |
  jq '{number, title, html_url, state}'
```

### Issues

List issues for a repository:

```bash
curl -fsS --get "$GITEE_API/repos/$OWNER/issues" \
  --data-urlencode "access_token=$GITEE_ACCESS_TOKEN" \
  --data-urlencode "repo=$REPO" \
  --data-urlencode "state=open" |
  jq '.[] | {number, title, state}'
```

Create an issue:

```bash
TITLE="Bug: unexpected failure"
BODY="Steps to reproduce..."

curl -fsS -X POST "$GITEE_API/repos/$OWNER/issues" \
  -H "Content-Type: application/json" \
  -d "$(jq -nc \
    --arg access_token "$GITEE_ACCESS_TOKEN" \
    --arg repo "$REPO" \
    --arg title "$TITLE" \
    --arg body "$BODY" \
    '{access_token: $access_token, repo: $repo, title: $title, body: $body}')" |
  jq '{number, title, state, html_url}'
```

### Repository Contents

Read a file:

```bash
FILE_PATH="README.md"

curl -fsS --get "$GITEE_API/repos/$OWNER/$REPO/contents/$FILE_PATH" \
  --data-urlencode "access_token=$GITEE_ACCESS_TOKEN"
```

Create or update file contents use the same path with `POST` or `PUT`. Build the JSON body with `jq -nc` and include the commit message plus content fields required by the endpoint.

### Git Transport

Clone from Gitee:

```bash
git clone "https://gitee.com/$OWNER/$REPO.git"
```

Push the current branch:

```bash
git push origin HEAD
```

Add a dedicated Gitee remote:

```bash
git remote add gitee "[email protected]:$OWNER/$REPO.git"
git push gitee HEAD
```

## Useful `jq` Filters

Open PR titles:

```bash
jq -r '.[] | "#\(.number) \(.title)"'
```

Issue numbers and links:

```bash
jq -r '.[] | "#\(.number) \(.html_url)"'
```

## Notes

- Prefer API calls when you need structured metadata, filtering, or automation.
- Prefer `git` when you need branch, commit, clone, fetch, or push behavior.
- Gitee OpenAPI docs: https://gitee.com/api/v5/swagger
- If an operation is missing here, look it up in the OpenAPI docs and keep the same `access_token` + `curl` pattern.

「开发编程」分类下的热门技能

jvy 的其他技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。