← Back to Skills Marketplace
jvy

gitee

by jvy · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
531
Downloads
1
Stars
4
Active Installs
1
Versions
Install in OpenClaw
/install gitee
Description
Gitee operations via OpenAPI and git: repositories, pull requests, issues, comments, and file contents. Use when: (1) inspecting or creating Gitee pull reque...
README (SKILL.md)

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:
export GITEE_API="https://gitee.com/api/v5"
export GITEE_ACCESS_TOKEN="..."
  1. Never print, commit, or paste the token into chat. Keep it in environment/config only.

Remote Patterns

Common Gitee remotes:

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

Inspect the current repo:

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:

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:

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:

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:

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:

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:

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:

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

Push the current branch:

git push origin HEAD

Add a dedicated Gitee remote:

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

Useful jq Filters

Open PR titles:

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

Issue numbers and links:

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.
Usage Guidance
This skill appears coherent and appropriate for Gitee tasks. Before installing: (1) ensure you only provide a token with the minimal scopes needed (prefer repo-limited tokens), (2) avoid exporting the token in shared CI logs or chat — the examples sometimes put the token in query parameters or JSON bodies which can be exposed in logs; prefer using secure env vars and, where possible, an Authorization header to reduce accidental leaks, (3) confirm the agent's actions are reviewed before pushing to remotes since the skill runs git push/clone commands that modify repositories, and (4) ensure curl, git, and jq are trusted versions on your system. If you need a higher-assurance review, request the skill's provenance or a signed source/maintainer reference (this package has no homepage/source listed).
Capability Analysis
Type: OpenClaw Skill Name: gitee Version: 1.0.0 The Gitee skill bundle provides standard instructions for interacting with the Gitee API and Git repositories. It follows security best practices by using jq for JSON construction to prevent injection and includes explicit warnings against exposing the GITEE_ACCESS_TOKEN in logs or chat. No malicious behaviors, data exfiltration, or suspicious execution patterns were found in SKILL.md or _meta.json.
Capability Assessment
Purpose & Capability
The name/description advertise Gitee repository, PR, issue, and file operations and the skill only requests curl/git/jq plus GITEE_ACCESS_TOKEN — exactly what you'd expect to call the Gitee API and perform git transport operations.
Instruction Scope
SKILL.md limits behavior to using git for transport and curl+jq for API calls against the Gitee API. It does not instruct reading unrelated files or pulling other credentials. It explicitly warns not to paste the token into chat. The examples show only repository-scoped actions.
Install Mechanism
This is an instruction-only skill with no install spec or code files, so nothing is downloaded or written to disk by the skill itself — lowest-risk install model.
Credentials
Only one required environment variable (GITEE_ACCESS_TOKEN) is declared and used; that is proportional and appropriate for API calls. Required binaries (curl, git, jq) match the examples in SKILL.md.
Persistence & Privilege
The skill is not forced-always and uses platform-default autonomous invocation. It does not request persistent system-wide changes or access to other skills' configs.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install gitee
  3. After installation, invoke the skill by name or use /gitee
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of the Gitee skill with OpenAPI and git support. - Enables listing, creating, and inspecting Gitee pull requests and issues. - Provides commands for reading Gitee repository contents using the API. - Supports git operations (clone, fetch, push) for gitee.com remotes. - Includes usage guidelines, setup instructions, and common API workflows. - Requires `curl`, `git`, `jq`, and a Gitee personal access token.
Metadata
Slug gitee
Version 1.0.0
License MIT-0
All-time Installs 4
Active Installs 4
Total Versions 1
Frequently Asked Questions

What is gitee?

Gitee operations via OpenAPI and git: repositories, pull requests, issues, comments, and file contents. Use when: (1) inspecting or creating Gitee pull reque... It is an AI Agent Skill for Claude Code / OpenClaw, with 531 downloads so far.

How do I install gitee?

Run "/install gitee" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is gitee free?

Yes, gitee is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does gitee support?

gitee is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created gitee?

It is built and maintained by jvy (@jvy); the current version is v1.0.0.

💬 Comments