GitCode-API: Skill for Claude Code

.claude/skills/gitcode-api/SKILL.md

gitcode-api is a skill for Claude Code from Trenza1ore/GitCode-API. It costs 5 tokens per session (1,663 once invoked), scanned A, original, MIT.

A Python software development kit for calling the GitCode API, which is a programming interface for working with GitCode repositories and related resources.

In plain words
What is it for?
It helps Python programs connect to GitCode, use repository-scoped settings and work with common groups of API resources.
Why use it?
It provides a defined client structure and authentication approach instead of making developers build those API calls themselves.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: built for openclaw.

This is Trenza1ore/GitCode-API's own configuration. It tells Claude Code how to work on GitCode-API itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything GitCode-API configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Trenza1ore/GitCode-API. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Trenza1ore/GitCode-API/main/.claude/skills/gitcode-api/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Trenza1ore/GitCode-API

Made for: Claude Code.

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/trenza1ore/gitcode-api/gitcode-api/github.svg)](https://agentmods.dev/skills/trenza1ore/gitcode-api/gitcode-api)
Your own site
<a href="https://agentmods.dev/skills/trenza1ore/gitcode-api/gitcode-api"><img src="https://agentmods.dev/badge/skills/trenza1ore/gitcode-api/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/trenza1ore/gitcode-api/gitcode-api"><img src="https://agentmods.dev/badge/skills/trenza1ore/gitcode-api/gitcode-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,663 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.00005 $0.01663
Opus 5.5 $0.00002 $0.00665
Sonnet 5.5 $0.00001 $0.00333
Haiku 4.5 $0.00001 $0.00166

Measured 2mo ago against content hash 78be072fc61e, 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 2mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/check_env.py, scripts/gitcode_api_cli.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.

.claude/skills/gitcode-api/SKILL.md · 189 lines

How it starts

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

GitCode API SDK

Use the published Python package:

pip install -U gitcode-api

Authentication defaults to the GITCODE_ACCESS_TOKEN environment variable, or pass api_key=... explicitly. If either value is encrypted, pass decrypt=... so the client can decode it before authenticating.

Confirm with user before installation or setup environment variable

Consult user for confirmation before installation:

  • like all python packages, installing gitcode-api may introduce change to global environment.
  • when user ask for additional information, you may guide them to:
  • ask user to provide the GITCODE_ACCESS_TOKEN environment variable, preferably encrypted:
    • environment variable may be read by untrusted software as that is not unscoped.
    • a decrypt argument can be passed into GitCode clients' constructor to decrypt an encrypted api_key value or encrypted GITCODE_ACCESS_TOKEN at runtime.

Client shape

This SDK is structured similarly to OpenAI's Python clients:

  • Start from a top-level client object: GitCode(...) or AsyncGitCode(...).
  • Call resource groups off the client, such as client.repos, client.pulls, client.users, and client.search.
  • Invoke methods on those resource groups, such as client.repos.get() or await client.pulls.list().
  • Each resource group exposes methods (public callable names in stable SDK order via a segment-based sorting) and method_signature(name) (a cached inspect.signature string for one callable) for runtime introspection; see the "Resource introspection" section in references/api-reference.md.
  • Prefer with GitCode(...) as client: or async with AsyncGitCode(...) as client: so the SDK closes the underlying httpx client automatically, including a custom http_client.

Unlike OpenAI's typed request/response shapes, this SDK focuses on GitCode REST resources and returns lightweight response objects with attribute access.

Read the full file on GitHub · 189 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2mo ago First seen · 189 lines · 0 tokens per session scan A 78be072fc61e

Subscribe to this mod's changes

gitcode-api is a skill published in the GitHub repository Trenza1ore/GitCode-API (8 stars, last pushed 3mo ago), licensed MIT. It adds 5 tokens to every session and 1,663 once invoked, about $0.0000 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-08-31.

Related

gitcode-api compared with skills from other repositories

gitcode-api next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
gitcode-apiTrenza1ore/GitCode-APISkill83mo agoMITA5Claude Code
flask-expertpersonamanagmentlayer/pclSkill4411d agoApache-2.0A49Claude Code
http-client-migrationGen-Verse/PAST-BenchSkill353mo agoApache-2.0A14Claude Code, Codex
django-patternsaffaan-m/ECCSkill298k4d agoMITA32Claude Code, Kiro
fastapi-patternsaffaan-m/ECCSkill298k4d agoMITA35Claude Code, Kiro
biopythonsynthetic-sciences/openscienceSkill4.3k2d agoApache-2.0A76Claude Code, Codex
stack-trace-python-probeopensquilla/opensquillaSkill7.1k6d agoApache-2.0A40Claude Code