gitcode-api

gitcode-api is a skill for Claude Code, Codex from XiaoLuoLYG/GOD. It costs 79 tokens per session (918 once invoked), scanned A, original, Apache-2.0.

A command-line tool for accessing the GitCode REST API, a web service for reading and managing repository data. It can query repositories, issues, pull requests, files, users, organisations, and search results.

In plain words
What is it for?
Use it to look up repository content, list or inspect issues and pull requests, search repositories, and summarise recent commits, reviews, owners, risks, or interface effects.
Why use it?
It lets scripts and coding agents inspect GitCode without manually browsing the website. It can also gather recent change and review information for a repository.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to look up repository content, list or inspect issues and pull requests, search repositories, and summarise recent commits, reviews, owners, risks, or interface effects.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xiaoluolyg/god/gitcode-api
About the project

GOD is a control room for observing and directing societies of language-model agents running in simulated worlds. It lets researchers inspect replays, question individual agents, alter future events, reset simulations, and export experiments for reuse. The catalogue entries are skills and agents for operating and investigating these simulations.

XiaoLuoLYG/GOD · 1,292 stars · on GitHub · xiaoluolyg.github.io

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add XiaoLuoLYG/GOD --skill gitcode-api
Clone the repo
git clone --depth 1 https://github.com/XiaoLuoLYG/GOD

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gitcode-api

README.md
[![agentmods](https://agentmods.dev/badge/skills/xiaoluolyg/god/gitcode-api/github.svg)](https://agentmods.dev/skills/xiaoluolyg/god/gitcode-api)
Your own site
<a href="https://agentmods.dev/skills/xiaoluolyg/god/gitcode-api"><img src="https://agentmods.dev/badge/skills/xiaoluolyg/god/gitcode-api/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gitcode-api

Your own site · 80×15
<a href="https://agentmods.dev/skills/xiaoluolyg/god/gitcode-api"><img src="https://agentmods.dev/badge/skills/xiaoluolyg/god/gitcode-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 918 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00079 $0.00918
Opus 5.5 $0.00032 $0.00367
Sonnet 5.5 $0.00016 $0.00184
Haiku 4.5 $0.00008 $0.00092

Measured 17d ago against content hash 65bb5452a323, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

gitcode-api scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 17d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/gitcode_api_cli.py, scripts/open_github_issue.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

jiuwenclaw/jiuwenswarm/resources/agent/workspace/skills/gitcode-api/SKILL.md · 93 lines

How it starts

The opening of the file, as written. The whole thing — 93 lines — stays where its author put it; the contents beside it link to each section on GitHub.

gitcode-api CLI

使用 gitcode-api 命令行调用 GitCode REST API。这个技能只覆盖 gitcode-api 1.2.14 及以上版本的 CLI。

Quickstart

  1. 先确认 CLI 是否可用:
gitcode-api --version
  1. 如果未安装或版本低于 1.2.14,提示用户安装或升级:
pip install -U gitcode-api

也可以使用 uv 临时运行或安装:

uvx gitcode-api --version
uv pip install -U gitcode-api
  1. 优先使用环境变量保存 token,避免把 token 写进命令历史:
  • 用户需要在 ~/.jiuwenclaw/config/.env 中配置 GITCODE_ACCESS_TOKEN 环境变量
  • 若用户没有GitCode token,告知可以使用此链接新建并按需配置读写权限:https://gitcode.com/setting/token-classic
  1. CLI 基本形状:
gitcode-api <resource> <method> [options]

例如:

gitcode-api repos get --owner openJiuwen --repo agent-core
gitcode-api pulls list --owner openJiuwen --repo agent-core --state open
gitcode-api search repositories --q sdk
  1. 不确定命令或参数时,先看 help,不要猜参数:
gitcode-api --help
gitcode-api pulls --help
gitcode-api pulls create --help

使用原则

  • 优先运行 gitcode-api --version 和分级 help 来确认本机实际 CLI 能力。
  • 资源组和方法名使用 kebab-case,例如 SDK 的 build_authorize_url 在 CLI 中是 build-authorize-url。
  • 大多数命令输出 JSON;需要机器处理时使用 --compact,需要保存结果时使用 --output-file。
  • 遇到 **params 或 **payload 类型的额外参数,用 --set key=value 或 --set-json '{...}'。
  • 如果用户要求的是完整开发流程、提交、创建 PR、解决 Issue,本技能只负责 GitCode CLI 查询或调用部分,不负责端到端工程流程。

何时阅读参考文件

任务文档

脚本入口

如果当前环境更适合运行 Python 脚本(不建议),可调用:

python scripts/gitcode_api_cli.py --help

该脚本只是 gitcode_api.cli.main 的薄封装,行为应与 gitcode-api 控制台命令一致。

企业网络 SSL / 自定义 CA

Read the full file on GitHub · 93 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 17d ago First seen · 93 lines · 79 tokens per session scan A 65bb5452a323

Subscribe to this mod's changes

gitcode-api is a skill published in the GitHub repository XiaoLuoLYG/GOD (1,292 stars, last pushed 5d ago), licensed Apache-2.0. It adds 79 tokens to every session and 918 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-13.

Related

gitcode-api compared with skills from other repositories

gitcode-api next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
gitcode-apiXiaoLuoLYG/GODSkill1.3k5d agoApache-2.0A79Claude Code, Codex
Git WorkflowAmariahAK/atlarix-skillsSkill02mo agoApache-2.0A2Claude Code, Codex
github-pr-workflowpaperclipai/paperclipSkill118kyesterdayMITA39Claude Code, Codex
review-deltatirth8205/code-review-graphSkill33k13d agoMITA24Claude Code
git-pr-workflows-git-workflowrmyndharis/antigravity-skillsSkill2.1k22d agoMITA37Claude Code, Codex
dyl-reviewcursor/pluginsSkill20kyesterdaynoneA80Claude Code, Cursor
hero-diff-highlightUnclecheng-li/AI_AnimationSkill1.9k1mo agoMITA0Claude Code, Codex