Relay GitCode CLI for Openclaw

An advanced command-line interface skill for automated control of GitCode API v5 platforms, managing code pipelines, repositories, and migration workflows.

stevetdp
v0.1.5
May 20, 2026
0
907
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install relay-gitcode-cli

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install relay-gitcode-cli using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Relay GitCode CLI?

The Relay GitCode CLI skill leverages the gd binary to serve as an authoritative control surface for GitCode API v5. Built as an optimized extension within Openclaw Skills, it provides robust capabilities for managing code hosting workflows without relying on external, unrelated platform paradigms. It equips developers and automated agents with localized capabilities for deep repository manipulation, pull request reviews, pipeline execution, and fine-grained authentication state monitoring.

By prioritizing automated JSON parsing options (--json), it functions seamlessly as a bridge for AI agents to interact directly with internal version control mechanisms. It replaces complex manual API crafting with structured terminal tasks, enabling effortless project-wide management spanning custom webhooks, code checking configurations, and remote repository synchronization.

Relay GitCode CLI Use Cases

  • Orchestrating GitCode repositories, issues, releases, and labels directly from automated terminal routines.
  • Migrating metadata, release targets, and assets natively from GitHub repositories over to GitCode namespaces.
  • Executing and tracking continuous integration pipelines, compliance gates, and CodeCheck workflows utilizing OpenLibing credentials.
  • Providing an explicit execution path for AI-driven development agents operating inside headless CI environments.

How Relay GitCode CLI Works

  1. Binary Evaluation: The system searches for the most up-to-date and usable gd executable by scanning local skill asset bundles and the system PATH.
  2. Authentication Injection: Token checks (GD_TOKEN or GITCODE_TOKEN) execute alongside localized credential lookup to populate active agent sessions securely.
  3. Command Processing: Structured command payloads are dispatched down to the GitCode API surface, enforcing specific flags such as --json for safe automation.
  4. Pipeline Tracking: Specialized sub-commands cross-reference with OpenLibing portals to track PR verification status, run histories, and testing gates.
  5. Diagnostic Verification: Error returns translate into dense, single-line JSON streams to allow downstream tools to easily parse failures.

Relay GitCode CLI Setup

Identify or force-install the binary dependency required by the environment:

# Check system execution readiness and auth payload status
"$GD_BIN" --version
"$GD_BIN" version check --json
"$GD_BIN" auth status --json

# Fallback to Cargo installation if no local binary assets exist
cargo install relay-gitcode-cli --force

# Securely supply tokens via interactive stream parameters
printf '%s' "$GITCODE_TOKEN" | gd auth login --with-token --json

Relay GitCode CLI Data Schema & Taxonomy

The skill manages localized automation tasks and interfaces via standard structured data paradigms:

Mechanism / Path Data Context / Target Mapping Formats Supported
Local Assets Path assets/bin/ paths per operating system target (linux-x86_64, windows-x86_64) Executable binaries
Workflow Files .gitcode/workflows/ storage directories YAML configurations
Command Outputs Standard Error (stderr) & Standard Output (stdout) streams JSON Objects / String Scalars
Fields Injection Multi-pass --field key=value entries Scaled Booleans, Numbers, Strings, Nulls

Relay GitCode CLI Advanced Features

  • GitHub Mirroring Operations: Offers advanced synchronization structures like gd repo sync-github supporting multi-protocol URL parsing, Git-based pushes, and automated target recreation updates.
  • OpenLibing Pipeline Integration: Features separate OAuth integrations enabling automated CodeCheck tracking, project access management, and strict PR quality gate evaluations.
  • GitHub Release Migration: Utilizes gd release migrate-github to automatically read GitHub Release metadata and rewrite assets directly to corresponding GitCode releases.
  • Structured Diagnostic Intercepts: Emits dedicated parse-time diagnostics containing contextual keys like matched_path, unexpected_token, and exact schema suggestions directly to stderr streams.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*