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.
curl -O https://raw.githubusercontent.com/Trenza1ore/GitCode-API/main/.claude/skills/gitcode-api/SKILL.mdgit clone --depth 1 https://github.com/Trenza1ore/GitCode-APIWrote 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.
[](https://agentmods.dev/skills/trenza1ore/gitcode-api/gitcode-api)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.
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-apimay introduce change to global environment. - when user ask for additional information, you may guide them to:
- the project's pypi page: https://pypi.org/project/gitcode-api/
- documentation: https://gitcode-api.readthedocs.io/
- source repository: https://github.com/Trenza1ore/GitCode-API
- ask user to provide the
GITCODE_ACCESS_TOKENenvironment variable, preferably encrypted:- environment variable may be read by untrusted software as that is not unscoped.
- a
decryptargument can be passed into GitCode clients' constructor to decrypt an encryptedapi_keyvalue or encryptedGITCODE_ACCESS_TOKENat runtime.
Client shape
This SDK is structured similarly to OpenAI's Python clients:
- Start from a top-level client object:
GitCode(...)orAsyncGitCode(...). - Call resource groups off the client, such as
client.repos,client.pulls,client.users, andclient.search. - Invoke methods on those resource groups, such as
client.repos.get()orawait client.pulls.list(). - Each resource group exposes
methods(public callable names in stable SDK order via a segment-based sorting) andmethod_signature(name)(a cachedinspect.signaturestring for one callable) for runtime introspection; see the "Resource introspection" section inreferences/api-reference.md. - Prefer
with GitCode(...) as client:orasync with AsyncGitCode(...) as client:so the SDK closes the underlyinghttpxclient automatically, including a customhttp_client.
Unlike OpenAI's typed request/response shapes, this SDK focuses on GitCode REST resources and returns lightweight response objects with attribute access.
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.
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.
- 2mo ago First seen · 189 lines · 0 tokens per session scan A 78be072fc61e
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.
gitcode-api compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| gitcode-apiTrenza1ore/GitCode-API | Skill | 8 | 3mo ago | MIT | A | 5 | Claude Code |
| flask-expertpersonamanagmentlayer/pcl | Skill | 44 | 11d ago | Apache-2.0 | A | 49 | Claude Code |
| http-client-migrationGen-Verse/PAST-Bench | Skill | 35 | 3mo ago | Apache-2.0 | A | 14 | Claude Code, Codex |
| django-patternsaffaan-m/ECC | Skill | 298k | 4d ago | MIT | A | 32 | Claude Code, Kiro |
| fastapi-patternsaffaan-m/ECC | Skill | 298k | 4d ago | MIT | A | 35 | Claude Code, Kiro |
| biopythonsynthetic-sciences/openscience | Skill | 4.3k | 2d ago | Apache-2.0 | A | 76 | Claude Code, Codex |
| stack-trace-python-probeopensquilla/opensquilla | Skill | 7.1k | 6d ago | Apache-2.0 | A | 40 | Claude Code |