gitcode-api

Query GitCode repositories, issues, pull requests, and files via the gitcode-api CLI.

Updated Aug 31, 2026
One-click install
npx skills add https://github.com/DreamMacer/jiuwenswarm --skill gitcode-api-dreammacer
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: gitcode-api
Source: https://github.com/DreamMacer/jiuwenswarm/tree/main/resources/agent/workspace/skills/gitcode-api
Command: npx skills add https://github.com/DreamMacer/jiuwenswarm --skill gitcode-api-dreammacer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gitcode-api, githubkit, and includes scripts (resource) and references (resource) components.

What problem does it solve? It removes the need to hand-write HTTP requests against the GitCode REST API by exposing repositories, issues, pull requests, file contents, users, organizations, and search through a single command-line interface with structured JSON output. ## Core Features & Use Cases - Repository and content access: Query repo metadata, branches, commits, tags, releases, and raw file contents, with results saved to files or printed as compact JSON. - Issue and PR workflows: List, create, update, merge, and fetch templates for Issues and Pull Requests, including dynamic parameters via --set and --set-json. - Change summarization task: A built-in task guide summarizes recent commits, PRs, or issues with owners, affected modules, risks, and external interface impacts. - Use Case: Ask the assistant to summarize the last 10 pull requests of a GitCode repository, including primary owners, touched modules, and risk levels, and it will drive the gitcode-api CLI to gather details and produce an evidence-based report. ## Quick Start Ask the assistant to list the open pull requests of a GitCode repository by owner and repo name, and it will verify the CLI version and run the appropriate gitcode-api commands.

Frequently Asked Questions about gitcode-api

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I query GitCode repositories from the command line?▼

Use the gitcode-api CLI with the pattern gitcode-api <resource> <method> [options], for example gitcode-api repos get --owner openJiuwen --repo agent-core. Most commands output JSON, and --compact or --output-file control formatting and saving.

How do I authenticate gitcode-api with a GitCode token?▼

Set the GITCODE_ACCESS_TOKEN environment variable, ideally in ~/.jiuwenclaw/config/.env, and the CLI reads it by default. You can also pass --api-key per command, and tokens can be created at https://gitcode.com/setting/token-classic.

How do I list or create pull requests on GitCode?▼

Run gitcode-api pulls list --owner <owner> --repo <repo> --state open to list PRs, and gitcode-api pulls create with --title, --head, --base, and --body to create one. Check gitcode-api pulls create --help first since parameters vary by installed version.

Does gitcode-api support custom CA certificates for enterprise networks?▼

Yes, set the GITCODE_CA_BUNDLE or REQUESTS_CA_BUNDLE environment variable to the path of your CA certificate file. This handles SSL verification in corporate networks with custom certificate authorities.

Why does gitcode-api report unknown argument or missing parameter errors?▼

The CLI is generated dynamically from the SDK, so supported flags differ between versions. Run gitcode-api <resource> <method> --help to see the exact signature, and note that SDK underscore parameters become hyphenated CLI flags.

What are the limitations of the gitcode-api CLI compared to the Python SDK?▼

The CLI does not expose the SDK's decrypt capability or custom http_client configuration. For token decryption, proxies, or specialized httpx clients, use the Python SDK directly instead of the CLI.