Agent skill

Atomgit

by LeoYeAI in LeoYeAI/openclaw-master-skills

AtomGit/GitCode 仓库管理技能,提供用户、仓库、Issue、PR、文件、分支等 API 操作。AtomGit 和 GitCode 是同一平台的不同域名(atomgit.com / gitcode.com),共享相同的 API 后端。

MITAuto-check passed

Install Atomgit

skills CLI
$ npx skills add LeoYeAI/openclaw-master-skills --skill atomgit -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install LeoYeAI/openclaw-master-skills atomgit --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/atomgit .claude/skills/atomgit && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
atomgit
GitHub stars
2.2k
Token cost
~5k tokens
SKILL.md length
358 words
Files
7
Skills in repo
1,215
Repo updated
First seen
Licence
MIT

At a glance

AtomGit/GitCode 仓库管理技能,提供用户、仓库、Issue、PR、文件、分支等 API 操作。AtomGit 和 GitCode 是同一平台的不同域名(atomgit.com / gitcode.com),共享相同的 API 后端。

  • Works in 5 steps: 创建分支 API → 创建标签 API → 创建里程碑 API → …
  • SKILL.md covers 前置条件, 配置方法, API 信息 and 完整 API 接口列表 (294 个端点), plus 3 more sections
  • Runs JavaScript scripts from its folder; calls curl; reaches api.gitcode.com and api.atomgit.com; needs ATOMGIT_TOKEN

What it does

Atomgit is an agent skill from LeoYeAI/openclaw-master-skills. AtomGit/GitCode 仓库管理技能,提供用户、仓库、Issue、PR、文件、分支等 API 操作。AtomGit 和 GitCode 是同一平台的不同域名(atomgit.com / gitcode.com),共享相同的 API 后端。

Its SKILL.md is about 5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files (for example `README.md`, `_meta.json` and `config.example.json`).

The repository describes itself as: 🧠 Curated collection of 1209+ best OpenClaw skills — weekly updated by MyClaw.ai. The licence is MIT.

Example prompts

  • “/atomgit”

Requirements

  • Node.js
  • A credential in ATOMGIT_TOKEN

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. 创建分支 API
  2. 创建标签 API
  3. 创建里程碑 API
  4. 更新文件 API
  5. Issue 修改历史 API

What it can do on your machine

Read from SKILL.md and the folder at commit e5199b5. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (JavaScript), which the agent can run.

    Shell commands in SKILL.md call:

    • curl

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • api.gitcode.com
    • api.atomgit.com

    Also links to:

    • gitcode.com
    • atomgit.com
    • docs.gitcode.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • ATOMGIT_TOKEN

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Atomgit loads about 5k tokens when it runs. Until then it costs about 33 tokens; SKILL.md has 358 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~33
When it runs · the whole SKILL.md, loaded when a task matches
~5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from LeoYeAI/openclaw-master-skills at commit e5199b5, republished under its MIT licence (© LeoYeAI). 358 words, ~4,978 tokens.

Download SKILL.mdSave it as .claude/skills/atomgit/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.
name
atomgit
description
AtomGit/GitCode 仓库管理技能,提供用户、仓库、Issue、PR、文件、分支等 API 操作。AtomGit 和 GitCode 是同一平台的不同域名(atomgit.com / gitcode.com),共享相同的 API 后端。

atomgit - AtomGit/GitCode API 技能

直接调用 AtomGit/GitCode OpenAPI v5,通过 curl 命令执行操作。

注意:AtomGit (atomgit.com) 和 GitCode (gitcode.com) 是同一平台的不同域名,共享相同的 API 后端。无论使用哪个域名,API 端点都相同。

前置条件

  1. AtomGit/GitCode Token - 访问以下任一地址生成:
  2. 权限:api, read_user, read_repository, write_repository, issues, pull_requests

Token 在两个平台通用,因为后端是同一套系统。

配置方法

方式一:Gateway 配置(推荐)

编辑 ~/.openclaw/openclaw.json,添加 skill 配置:

json
{
  "skills": {
    "entries": {
      "atomgit": {
        "enabled": true,
        "env": {
          "ATOMGIT_TOKEN": "your-token-here"
        }
      }
    }
  }
}

或使用环境变量占位符:

json
{
  "skills": {
    "entries": {
      "atomgit": {
        "enabled": true,
        "env": {
          "ATOMGIT_TOKEN": "__ATOMGIT_TOKEN__"
        }
      }
    }
  }
}

然后在终端设置环境变量:

bash
export ATOMGIT_TOKEN="your-token-here"
方式二:终端环境变量

直接在终端设置:

bash
export ATOMGIT_TOKEN="your-token-here"

API 信息

  • Base URL:
    • https://api.gitcode.com/api/v5 (推荐)
    • https://api.atomgit.com/api/v5 (等效)
  • 认证: Authorization: Bearer <TOKEN>
  • 速率限制: 50 次/分钟

两个 API 端点完全等效,数据互通。


完整 API 接口列表 (294 个端点)

一、用户 API (User) - 42 个端点
✅ 已验证可用的接口
bash
# 获取当前用户信息
curl -H "Authorization: Bearer $TOKEN" https://api.gitcode.com/api/v5/user

# 获取当前用户邮箱
curl -H "Authorization: Bearer $TOKEN" https://api.gitcode.com/api/v5/user/emails

# 获取当前用户仓库列表
curl -H "Authorization: Bearer $TOKEN" "https://api.gitcode.com/api/v5/user/repos?per_page=20"

# 获取当前用户收藏的仓库
curl -H "Authorization: Bearer $TOKEN" https://api.gitcode.com/api/v5/user/starred

# 获取当前用户订阅的仓库
curl -H "Authorization: Bearer $TOKEN" https://api.gitcode.com/api/v5/user/subscriptions

# 获取指定用户信息
curl -H "Authorization: Bearer $TOKEN" https://api.gitcode.com/api/v5/users/:username

# 获取指定用户的仓库
curl -H "Authorization: Bearer $TOKEN" https://api.gitcode.com/api/v5/users/:username/repos

# 获取指定用户收藏的仓库
curl -H "Authorization: Bearer $TOKEN" https://api.gitcode.com/api/v5/users/:username/starred

# 获取用户的组织
curl -H "Authorization: Bearer $TOKEN" https://api.gitcode.com/api/v5/users/:username/orgs

# 获取当前用户的组织
curl -H "Authorization: Bearer $TOKEN" https://api.gitcode.com/api/v5/user/orgs

# 添加 SSH 密钥
curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"title":"My Key","key":"ssh-rsa AAA..."}' \
  https://api.gitcode.com/api/v5/user/keys

# 获取 SSH 密钥列表
curl -H "Authorization: Bearer $TOKEN" https://api.gitcode.com/api/v5/user/keys

# 删除 SSH 密钥
curl -X DELETE -H "Authorization: Bearer $TOKEN" \
  https://api.gitcode.com/api/v5/user/keys/:id

二、仓库 API (Repository) - 168 个端点
✅ 已验证可用的接口
bash
# 获取仓库详情
curl -H "Authorization: Bearer $TOKEN" https://api.gitcode.com/api/v5/repos/:owner/:repo

# 获取仓库分支列表
curl -H "Authorization: Bearer $TOKEN" https://api.gitcode.com/api/v5/repos/:owner/:repo/branches

# 获取仓库提交列表
curl -H "Authorization: Bearer $TOKEN" https://api.gitcode.com/api/v5/repos/:owner/:repo/commits

# 获取单个提交详情
curl -H "Authorization: Bearer $TOKEN" https://api.gitcode.com/api/v5/repos/:owner/:repo/commits/:sha

# 获取提交 diff
curl -H "Authorization: Bearer $TOKEN" https://api.gitcode.com/api/v5/repos/:owner/:repo/commits/:sha/diff

# 获取仓库标签列表
curl -H "Authorization: Bearer $TOKEN" https://api.gitcode.com/api/v5/repos/:owner/:repo/tags

# 获取文件内容
curl -H "Authorization: Bearer $TOKEN" https://api.gitcode.com/api/v5/repos/:owner/:repo/contents/:path

# 获取目录树
curl -H "Authorization: Bearer $TOKEN" https://api.gitcode.com/api/v5/repos/:owner/:repo/git/trees/:sha

# 获取贡献者列表
curl -H "Authorization: Bearer $TOKEN" https://api.gitcode.com/api/v5/repos/:owner/:repo/contributors

# 获取语言统计
curl -H "Authorization: Bearer $TOKEN" https://api.gitcode.com/api/v5/repos/:owner/:repo/languages

# 获取 Star 用户列表
curl -H "Authorization: Bearer $TOKEN" https://api.gitcode.com/api/v5/repos/:owner/:repo/stargazers

# 获取 Fork 列表
curl -H "Authorization: Bearer $TOKEN" https://api.gitcode.com/api/v5/repos/:owner/:repo/forks

# 获取协作者列表
curl -H "Authorization: Bearer $TOKEN" https://api.gitcode.com/api/v5/repos/:owner/:repo/collaborators

# 获取 Webhook 列表
curl -H "Authorization: Bearer $TOKEN" https://api.gitcode.com/api/v5/repos/:owner/:repo/hooks

# 获取版本列表
curl -H "Authorization: Bearer $TOKEN" https://api.gitcode.com/api/v5/repos/:owner/:repo/releases

# 获取仓库通知
curl -H "Authorization: Bearer $TOKEN" https://api.gitcode.com/api/v5/repos/:owner/:repo/notifications

# 创建用户仓库
curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"name":"my-repo","description":"My repo","private":false,"auto_init":true}' \
  https://api.gitcode.com/api/v5/user/repos

# 创建组织仓库
curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"name":"org-repo","description":"Org repo"}' \
  https://api.gitcode.com/api/v5/orgs/:org/repos

# 更新仓库
curl -X PUT -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"description":"New description","private":false}' \
  https://api.gitcode.com/api/v5/repos/:owner/:repo

# 删除仓库 ⚠️
curl -X DELETE -H "Authorization: Bearer $TOKEN" \
  https://api.gitcode.com/api/v5/repos/:owner/:repo

# Fork 仓库
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://api.gitcode.com/api/v5/repos/:owner/:repo/forks

# 转移仓库
curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"new_owner":"new-owner"}' \
  https://api.gitcode.com/api/v5/repos/:owner/:repo/transfer
⚠️ 已知问题的接口
bash
# 获取文件列表 - 404 Not Found
# curl -H "Authorization: Bearer $TOKEN" https://api.gitcode.com/api/v5/repos/:owner/:repo/file-list

# 获取最新版本 - 400 Bad Request (无 release 时)
# curl -H "Authorization: Bearer $TOKEN" https://api.gitcode.com/api/v5/repos/:owner/:repo/releases/latest

三、分支 API (Branch) - 10 个端点
✅ 已验证可用的接口
bash
# 获取分支列表
curl -H "Authorization: Bearer $TOKEN" https://api.gitcode.com/api/v5/repos/:owner/:repo/branches

# 获取单个分支详情
curl -H "Authorization: Bearer $TOKEN" https://api.gitcode.com/api/v5/repos/:owner/:repo/branches/:branch

# 获取保护分支
curl -H "Authorization: Bearer $TOKEN" https://api.gitcode.com/api/v5/repos/:owner/:repo/protect-branches
⚠️ 已知问题的接口
bash
# 创建分支 - 400 PARAMETER_ERROR
# 参数格式不明确,需要官方文档确认
# curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
#   -d '{"branch":"feature","ref":"main"}' \
#   https://api.gitcode.com/api/v5/repos/:owner/:repo/branches

# 删除分支 ⚠️
# curl -X DELETE -H "Authorization: Bearer $TOKEN" \
#   https://api.gitcode.com/api/v5/repos/:owner/:repo/branches/:name

四、文件 API (Content) - 8 个端点
✅ 已验证可用的接口
bash
# 获取文件内容
curl -H "Authorization: Bearer $TOKEN" \
  https://api.gitcode.com/api/v5/repos/:owner/:repo/contents/:path

# 获取原始文件
curl -H "Authorization: Bearer $TOKEN" \
  https://api.gitcode.com/api/v5/repos/:owner/:repo/raw/:path

# 获取目录树
curl -H "Authorization: Bearer $TOKEN" \
  https://api.gitcode.com/api/v5/repos/:owner/:repo/git/trees/:sha
⚠️ 已知问题的接口
bash
# 创建/更新文件 - 400 Bad Request (需要提供 sha)
# 更新文件时必须提供当前文件的 sha
# curl -X PUT -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
#   -d '{"content":"base64 编码","message":"Update file","branch":"main","sha":"xxx"}' \
#   https://api.gitcode.com/api/v5/repos/:owner/:repo/contents/:path

# 删除文件 ⚠️
# curl -X DELETE -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
#   -d '{"message":"Delete file","branch":"main","sha":"xxx"}' \
#   https://api.gitcode.com/api/v5/repos/:owner/:repo/contents/:path

五、Issue API - 38 个端点
✅ 已验证可用的接口
bash
# 获取 Issue 列表
curl -H "Authorization: Bearer $TOKEN" \
  "https://api.gitcode.com/api/v5/repos/:owner/:repo/issues?state=all"

# 获取 Issue 详情
curl -H "Authorization: Bearer $TOKEN" \
  https://api.gitcode.com/api/v5/repos/:owner/:repo/issues/:number

# 创建 Issue
curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"title":"Bug report","body":"Description","labels":["bug"],"assignee":"username"}' \
  https://api.gitcode.com/api/v5/repos/:owner/:repo/issues

# 获取 Issue 评论列表
curl -H "Authorization: Bearer $TOKEN" \
  https://api.gitcode.com/api/v5/repos/:owner/:repo/issues/:number/comments

# 创建 Issue 评论
curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"body":"This is a comment"}' \
  https://api.gitcode.com/api/v5/repos/:owner/:repo/issues/:number/comments

# 添加 Issue 标签
curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '["bug","enhancement"]' \
  https://api.gitcode.com/api/v5/repos/:owner/:repo/issues/:number/labels

# 获取 Issue 标签
curl -H "Authorization: Bearer $TOKEN" \
  https://api.gitcode.com/api/v5/repos/:owner/:repo/issues/:number/labels

# 获取用户的 Issue
curl -H "Authorization: Bearer $TOKEN" \
  https://api.gitcode.com/api/v5/user/issues
⚠️ 已知问题的接口
bash
# 更新 Issue - 405 Method Not Allowed (PUT 不支持,可能需要 PATCH)
# curl -X PATCH -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
#   -d '{"state":"closed","title":"New title"}' \
#   https://api.gitcode.com/api/v5/repos/:owner/:repo/issues/:number

# 获取 Issue 修改历史 - 404 Not Found
# curl -H "Authorization: Bearer $TOKEN" \
#   https://api.gitcode.com/api/v5/repos/:owner/:repo/issues/:number/modify-history

# 删除 Issue ⚠️
# curl -X DELETE -H "Authorization: Bearer $TOKEN" \
#   https://api.gitcode.com/api/v5/repos/:owner/:repo/issues/:number

六、标签 API (Labels) - 12 个端点
✅ 已验证可用的接口
bash
# 获取项目标签列表
curl -H "Authorization: Bearer $TOKEN" \
  https://api.gitcode.com/api/v5/repos/:owner/:repo/labels
⚠️ 已知问题的接口
bash
# 创建标签 - 400 Bad Request (name 需要作为 query 参数)
# 参数传递方式与文档不符
# curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
#   -d '{"name":"bug","color":"#ff0000"}' \
#   https://api.gitcode.com/api/v5/repos/:owner/:repo/labels

# 更新标签
# curl -X PUT -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
#   -d '{"name":"new-name","color":"#00ff00"}' \
#   https://api.gitcode.com/api/v5/repos/:owner/:repo/labels/:original_name

# 删除标签 ⚠️
# curl -X DELETE -H "Authorization: Bearer $TOKEN" \
#   https://api.gitcode.com/api/v5/repos/:owner/:repo/labels/:name

七、里程碑 API (Milestone) - 10 个端点
✅ 已验证可用的接口
bash
# 获取里程碑列表
curl -H "Authorization: Bearer $TOKEN" \
  https://api.gitcode.com/api/v5/repos/:owner/:repo/milestones

# 获取里程碑详情
curl -H "Authorization: Bearer $TOKEN" \
  https://api.gitcode.com/api/v5/repos/:owner/:repo/milestones/:number
⚠️ 已知问题的接口
bash
# 创建里程碑 - 400 Bad Request (日期格式要求 YYYY-MM-DD)
# curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
#   -d '{"title":"v1.0","description":"Version 1.0","due_date":"2026-12-31"}' \
#   https://api.gitcode.com/api/v5/repos/:owner/:repo/milestones

# 更新里程碑
# curl -X PATCH -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
#   -d '{"title":"New title","state":"closed"}' \
#   https://api.gitcode.com/api/v5/repos/:owner/:repo/milestones/:number

# 删除里程碑 ⚠️
# curl -X DELETE -H "Authorization: Bearer $TOKEN" \
#   https://api.gitcode.com/api/v5/repos/:owner/:repo/milestones/:number

八、Pull Request API - 46 个端点
✅ 已验证可用的接口
bash
# 获取 PR 列表
curl -H "Authorization: Bearer $TOKEN" \
  "https://api.gitcode.com/api/v5/repos/:owner/:repo/pulls?state=all"

# 获取 PR 详情
curl -H "Authorization: Bearer $TOKEN" \
  https://api.gitcode.com/api/v5/repos/:owner/:repo/pulls/:number

# 获取 PR 提交
curl -H "Authorization: Bearer $TOKEN" \
  https://api.gitcode.com/api/v5/repos/:owner/:repo/pulls/:number/commits

# 获取 PR 文件变更
curl -H "Authorization: Bearer $TOKEN" \
  https://api.gitcode.com/api/v5/repos/:owner/:repo/pulls/:number/files

# 获取 PR 评论列表
curl -H "Authorization: Bearer $TOKEN" \
  https://api.gitcode.com/api/v5/repos/:owner/:repo/pulls/:number/comments

# 创建 PR 评论
curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"body":"Comment text"}' \
  https://api.gitcode.com/api/v5/repos/:owner/:repo/pulls/:number/comments

# 获取 PR 标签
curl -H "Authorization: Bearer $TOKEN" \
  https://api.gitcode.com/api/v5/repos/:owner/:repo/pulls/:number/labels

# 获取 PR 关联的 Issue
curl -H "Authorization: Bearer $TOKEN" \
  https://api.gitcode.com/api/v5/repos/:owner/:repo/pulls/:number/issues
⚠️ 已知问题的接口
bash
# 创建 PR - 需要两个有差异的分支
# curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
#   -d '{"title":"Fix bug","body":"Description","head":"feature","base":"main"}' \
#   https://api.gitcode.com/api/v5/repos/:owner/:repo/pulls

# 合并 PR ⚠️
# curl -X PUT -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
#   -d '{"commit_title":"Merge message","merge_method":"merge"}' \
#   https://api.gitcode.com/api/v5/repos/:owner/:repo/pulls/:number/merge

# 更新 PR
# curl -X PATCH -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
#   -d '{"title":"New title","state":"closed"}' \
#   https://api.gitcode.com/api/v5/repos/:owner/:repo/pulls/:number

九、Release API - 52 个端点
✅ 已验证可用的接口
bash
# 获取版本列表
curl -H "Authorization: Bearer $TOKEN" \
  https://api.gitcode.com/api/v5/repos/:owner/:repo/releases

# 获取指定版本
curl -H "Authorization: Bearer $TOKEN" \
  https://api.gitcode.com/api/v5/repos/:owner/:repo/releases/tags/:tag
⚠️ 已知问题的接口
bash
# 获取最新版本 - 400 Bad Request (无 release 时)
# curl -H "Authorization: Bearer $TOKEN" \
#   https://api.gitcode.com/api/v5/repos/:owner/:repo/releases/latest

# 创建版本
# curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
#   -d '{"tag_name":"v1.0.0","name":"Version 1.0","body":"Release notes"}' \
#   https://api.gitcode.com/api/v5/repos/:owner/:repo/releases

# 删除版本 ⚠️
# curl -X DELETE -H "Authorization: Bearer $TOKEN" \
#   https://api.gitcode.com/api/v5/repos/:owner/:repo/releases/:id

十、搜索 API (Search) - 3 个端点
✅ 已验证可用的接口
bash
# 搜索用户
curl -H "Authorization: Bearer $TOKEN" \
  "https://api.gitcode.com/api/v5/search/users?q=keyword"

# 搜索仓库
curl -H "Authorization: Bearer $TOKEN" \
  "https://api.gitcode.com/api/v5/search/repositories?q=keyword"

# 搜索 Issue
curl -H "Authorization: Bearer $TOKEN" \
  "https://api.gitcode.com/api/v5/search/issues?q=keyword"

十一、组织 API (Organization) - 30 个端点
✅ 已验证可用的接口
bash
# 获取组织详情
curl -H "Authorization: Bearer $TOKEN" \
  https://api.gitcode.com/api/v5/orgs/:org

# 获取组织成员列表
curl -H "Authorization: Bearer $TOKEN" \
  https://api.gitcode.com/api/v5/orgs/:org/members

# 获取组织仓库列表
curl -H "Authorization: Bearer $TOKEN" \
  https://api.gitcode.com/api/v5/orgs/:org/repos

# 获取组织 Issue 列表
curl -H "Authorization: Bearer $TOKEN" \
  https://api.gitcode.com/api/v5/orgs/:org/issues

# 获取组织 PR 列表
curl -H "Authorization: Bearer $TOKEN" \
  https://api.gitcode.com/api/v5/orgs/:org/pull-requests

# 获取看板列表
curl -H "Authorization: Bearer $TOKEN" \
  https://api.gitcode.com/api/v5/org/:owner/kanban/list

十二、企业 API (Enterprise) - 27 个端点
✅ 已验证可用的接口
bash
# 获取企业成员列表
curl -H "Authorization: Bearer $TOKEN" \
  https://api.gitcode.com/api/v8/enterprises/:enterprise/members

# 获取企业 Issue 列表
curl -H "Authorization: Bearer $TOKEN" \
  https://api.gitcode.com/api/v5/enterprises/:enterprise/issues

# 获取企业 PR 列表
curl -H "Authorization: Bearer $TOKEN" \
  https://api.gitcode.com/api/v5/enterprises/:enterprise/pull-requests

# 获取企业标签
curl -H "Authorization: Bearer $TOKEN" \
  https://api.gitcode.com/api/v5/enterprises/:enterprise/labels

十三、Webhook API - 6 个端点
✅ 已验证可用的接口
bash
# 获取 Webhook 列表
curl -H "Authorization: Bearer $TOKEN" \
  https://api.gitcode.com/api/v5/repos/:owner/:repo/hooks
⚠️ 已知问题的接口
bash
# 创建 Webhook
# curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
#   -d '{"url":"https://example.com/hook","content_type":"json","events":["push"]}' \
#   https://api.gitcode.com/api/v5/repos/:owner/:repo/hooks

# 删除 Webhook ⚠️
# curl -X DELETE -H "Authorization: Bearer $TOKEN" \
#   https://api.gitcode.com/api/v5/repos/:owner/:repo/hooks/:id

十四、成员 API (Member) - 5 个端点
✅ 已验证可用的接口
bash
# 获取协作者列表
curl -H "Authorization: Bearer $TOKEN" \
  https://api.gitcode.com/api/v5/repos/:owner/:repo/collaborators

# 检查协作者权限
curl -H "Authorization: Bearer $TOKEN" \
  https://api.gitcode.com/api/v5/repos/:owner/:repo/collaborators/:username/permission
⚠️ 已知问题的接口
bash
# 添加协作者
# curl -X PUT -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
#   -d '{"permission":"push"}' \
#   https://api.gitcode.com/api/v5/repos/:owner/:repo/collaborators/:username

# 移除协作者 ⚠️
# curl -X DELETE -H "Authorization: Bearer $TOKEN" \
#   https://api.gitcode.com/api/v5/repos/:owner/:repo/collaborators/:username

十五、AI API - 6 个端点
bash
# AI 聊天完成
curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"model":"qwen-plus","messages":[{"role":"user","content":"Hello"}]}' \
  https://api.gitcode.com/api/v5/chat/completions

# 音频转录
curl -X POST -H "Authorization: Bearer $TOKEN" \
  -F "file=@audio.mp3" \
  https://api.gitcode.com/api/v5/audio/transcriptions

# 视频生成
curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"prompt":"A cat playing guitar"}' \
  https://api.gitcode.com/api/v5/video/generate

十六、OAuth API - 2 个端点
bash
# OAuth 授权
GET https://api.gitcode.com/oauth/authorize?client_id=CLIENT_ID&redirect_uri=REDIRECT_URI&response_type=code&scope=scope

# OAuth 令牌
POST https://api.gitcode.com/oauth/token?grant_type=authorization_code&code=CODE&client_id=CLIENT_ID&client_secret=SECRET

使用示例

直接对我说:

  • "获取我的 AtomGit 用户信息"
  • "获取我的 GitCode 用户信息"
  • "列出我的所有仓库"
  • "在 src-openeuler/libsoup 创建一个 Issue"
  • "在 openeuler/dde 创建一个 PR"
  • "创建名为 test-repo 的私有仓库"
  • "获取 README.md 内容"
  • "创建 feature 分支,基于 main"
  • "Fork src-openeuler/libsoup 仓库"
  • "搜索用户 weidong"
  • "搜索仓库 openclaw"

支持使用 atomgit.com 或 gitcode.com 域名,效果相同。


Show full SKILL.md (151 more words)Show less

错误码

状态码含义处理
200成功-
201创建成功-
204删除成功-
400请求错误检查参数格式
401Token 无效检查 ATOMGIT_TOKEN
403权限不足检查 token 权限
404资源不存在确认 owner/repo
405方法不允许尝试其他 HTTP 方法
429速率限制等待后重试

已知问题汇总

1. 创建分支 API
  • 问题: 返回 400 PARAMETER_ERROR
  • 原因: 参数格式不明确
  • 建议: 暂时使用 Web UI 创建分支
2. 创建标签 API
  • 问题: 返回 400 BAD_REQUEST
  • 原因: name 参数需要作为 query 参数而非 body
  • 建议: 等待官方修复或使用 Web UI
3. 创建里程碑 API
  • 问题: 返回 400 日期格式错误
  • 原因: 需要 YYYY-MM-DD 格式而非 ISO 8601
  • 解决: 使用 "due_date":"2026-12-31" 格式
4. 更新文件 API
  • 问题: 返回 400 sha is missing
  • 原因: 更新文件需要提供当前 sha
  • 解决: 先 GET 获取 sha,再 PUT 更新
5. Issue 修改历史 API
  • 问题: 返回 404 Not Found
  • 原因: API 可能未完全开放
  • 建议: 暂时无法使用

文档

平台说明

平台域名API 端点备注
GitCodegitcode.comapi.gitcode.com主域名
AtomGitatomgit.comapi.atomgit.com等效域名

两个平台账号互通、Token 通用、数据同步。选择哪个域名完全取决于个人偏好或网络环境。


最后更新: 2026-03-22
测试验证: 46 个接口已测试,37 个成功 (80.4%)

© LeoYeAI, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 6 other files in skills/atomgit of LeoYeAI/openclaw-master-skills.

  • SKILL.md
  • README.md
  • _meta.json
  • config.example.json
  • mcp-server.js
  • package.json
  • test.js

Open the folder on GitHubat commit e5199b5

Compare with similar skills

Atomgit next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Atomgit compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Atomgit this skillLeoYeAI/openclaw-master-skills2.2k—~5kAutomated safety check: PassMIT
GitcodeopenJiuwen-ai/sciencediscovery148—~4.3kAutomated safety check: PassApache-2.0
External Mindstudio Gitcode Code Reviewerascend-ai-coding/awesome-ascend-skills174—~1.7kAutomated safety check: PassMIT
Gitcode Merge Flowascend-ai-coding/awesome-ascend-skills174—~1.4kAutomated safety check: PassNone
External Gitcode Ascend Megatron Change Analyzerascend-ai-coding/awesome-ascend-skills174—~1.2kAutomated safety check: PassNone
External Gitcode Ascend Megatron Commit Trackerascend-ai-coding/awesome-ascend-skills174—~1.1kAutomated safety check: PassNone

Similar skills

  • Gitcode

    openJiuwen-ai/sciencediscovery

    Operate GitCode issues, PRs, wikis, code/MR refs, and cached org templates.

    148 GitHub stars~4.3k tokensUpdated 5 days ago
    Auto-check passed
  • External Mindstudio Gitcode Code Reviewer

    ascend-ai-coding/awesome-ascend-skills

    用于审查 GitCode PR,并结合 PR metadata、diff 与整个代码仓上下文生成深度审查结论或发布逐行评论。当用户希望 review GitCode PR、检查某个 GitCode PR 链接、分析变更风险、或将审查意见发布到 GitCode PR 时使用。典型触发方式包括“review this PR”“检视这个 PR”“检查 PR”,或直接提供 GitCode PR…

    174 GitHub stars~1.7k tokensUpdated today
    DevelopmentAuto-check passed
  • Gitcode Merge Flow

    ascend-ai-coding/awesome-ascend-skills

    Automates GitCode open-source repo merge workflow: commit → push → issue → PR → pipeline → review → /lgtm & /approve → merge.

    174 GitHub stars~1.4k tokensUpdated today
    DevelopmentAuto-check passed
  • External Gitcode Ascend Megatron Change Analyzer

    ascend-ai-coding/awesome-ascend-skills

    Analyze official Megatron-LM commits, PRs, and branch change sets to identify feature evolution, candidate breaking changes, and migration-relevant events.

    174 GitHub stars~1.2k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • External Gitcode Ascend Megatron Commit Tracker

    ascend-ai-coding/awesome-ascend-skills

    Track and normalize change requests against the official Megatron-LM repository by branch, PR, commit, commit range, or time window.

    174 GitHub stars~1.1k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • External Gitcode Ascend Megatron Impact Mapper

    ascend-ai-coding/awesome-ascend-skills

    Map migration-relevant Megatron changes onto the official MindSpeed repository by resolving branch alignment, locating affected subsystems, and identifying concrete adaptation points.

    174 GitHub stars~1.3k tokensUpdated today
    AI & LLM EngineeringAuto-check passed

More from LeoYeAI/openclaw-master-skills

All 1,215 skills in this repo
  • DevOps Pipeline Management

    LeoYeAI/openclaw-master-skills

    Manages pipelines on a DevOps quality and efficiency platform through its OpenAPI: list workspaces and templates, create, update, run and cancel pipelines, and read run records.

    2.2k GitHub stars~4.2k tokensUpdated 2 mo ago
    Auto-check: notes
  • Feishu Document Collaboration

    LeoYeAI/openclaw-master-skills

    Patches OpenClaw's Feishu extension so an edited document triggers an isolated agent session that reads the doc and replies inline, turning it into a live chat space.

    2.2k GitHub stars~2k tokensUpdated 2 mo ago
    Auto-check passed
  • Files Memory System

    LeoYeAI/openclaw-master-skills

    Multi-context memory management system for OpenClaw agents with group-isolated storage, global shared memory, workspace organization, and group-specific skills isolation.

    2.2k GitHub stars~3.8k tokensUpdated 2 mo ago
    Auto-check passed
  • GEO-Claw AI Visibility Agent

    LeoYeAI/openclaw-master-skills

    Runs a brand's AI-search visibility work end to end: diagnosing how AI platforms represent it, repositioning it, producing AI-optimized content and monitoring ongoing mentions.

    2.2k GitHub stars~4.7k tokensUpdated 2 mo ago
    Auto-check passed
  • Google Workspace CLI

    LeoYeAI/openclaw-master-skills

    Installs and authenticates the gws CLI, then automates Gmail, Drive, Sheets, Calendar, Docs, Chat and Tasks with ready-made recipes, persona bundles and security audits.

    2.2k GitHub stars~2.6k tokensUpdated 2 mo ago
    Auto-check: notes
  • HealthFit Health Advisors

    LeoYeAI/openclaw-master-skills

    Runs four advisor roles, a fitness coach, nutritionist, data analyst and TCM practitioner, to build a health profile and track workouts, diet and wellness over time.

    2.2k GitHub stars~4.4k tokensUpdated 2 mo ago
    Auto-check passed

Questions about Atomgit

What does Atomgit do?

AtomGit/GitCode 仓库管理技能,提供用户、仓库、Issue、PR、文件、分支等 API 操作。AtomGit 和 GitCode 是同一平台的不同域名(atomgit.com / gitcode.com),共享相同的 API 后端。. Atomgit is an agent skill from LeoYeAI/openclaw-master-skills.

How do I install Atomgit in Claude Code?

Run `npx skills add LeoYeAI/openclaw-master-skills --skill atomgit -a claude-code`. Or copy the skill folder (skills/atomgit in LeoYeAI/openclaw-master-skills) into .claude/skills/atomgit in your project. Claude Code loads it when a task matches its description.

How do I install Atomgit in Codex?

Run `npx skills add LeoYeAI/openclaw-master-skills --skill atomgit -a codex`. Or copy the skill folder (skills/atomgit in LeoYeAI/openclaw-master-skills) into .agents/skills/atomgit in your project. Codex loads it when a task matches its description.

Can I use Atomgit in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add LeoYeAI/openclaw-master-skills --skill atomgit -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/atomgit, .gemini/skills/atomgit, .github/skills/atomgit and .opencode/skills/atomgit in your project.

What does Atomgit need to run?

Going by SKILL.md and its folder, Atomgit needs JavaScript for the scripts in its folder, the command-line tools its instructions call (curl) and credentials named ATOMGIT_TOKEN. Our summary lists: Node.js; A credential in ATOMGIT_TOKEN.

Does Atomgit access the network?

SKILL.md names 5 domains. In commands or code: api.gitcode.com and api.atomgit.com; the agent is likely to contact these when it follows the instructions. As links in the text: gitcode.com, atomgit.com and docs.gitcode.com. This is read from the text; nothing was executed.

Is Atomgit safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Atomgit use?

Atomgit is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Atomgit use?

About 5k tokens (SKILL.md is roughly 20k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Atomgit?

Skills that share tags, products or a category with Atomgit: Gitcode (openJiuwen-ai/sciencediscovery, 148 stars), External Mindstudio Gitcode Code Reviewer (ascend-ai-coding/awesome-ascend-skills, 174 stars), Gitcode Merge Flow (ascend-ai-coding/awesome-ascend-skills, 174 stars) and External Gitcode Ascend Megatron Change Analyzer (ascend-ai-coding/awesome-ascend-skills, 174 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Atomgit?

LeoYeAI (a GitHub user) maintains it in LeoYeAI/openclaw-master-skills, which has 2,158 GitHub stars. The repository holds 1,215 skills in this directory. The repository was last updated on July 20, 2026.

Source: LeoYeAI/openclaw-master-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.