What problem does it solve? Working with GitCode repositories requires juggling API endpoints, token handling, PR branch fetching, merge-base diffs, and safe write operations. This Skill centralizes that shared knowledge and tooling so GitCode collaboration skills (PR handlers, Issue generators, Issue handlers) can reuse one consistent, verified foundation instead of duplicating fragile logic. ## Core Features & Use Cases - GitCode API Reference: Complete v5 API documentation for PRs, Issues, comments, repository contents, and user accounts, including error-code handling and rate-limit (429) recovery policy. - Deterministic Scripts: URL parsing to JSON, environment preflight checks, one-shot PR context fetching (clone + diff + log), a shared HTTP client with cross-process rate limiting, and CI pipeline triggering. - Safe Write Workflows: Authorization contracts requiring explicit user confirmation before comments, pushes, or PR creation, plus post-write verification via GET or git ls-remote. - Use Case: When reviewing a GitCode PR, run the fetch_pr_context script to clone the repo, check out the PR branch via refs/merge-requests, compute the merge-base, and get changed files and commit history in one JSON output. ## Quick Start Ask the assistant to fetch the context of a GitCode pull request by providing its URL, for example to clone and summarize the changes of a PR in a repository like cann/ops-math.