CNB Git Skill for Openclaw

A comprehensive automation skill for Git operations and REST API interactions within the CNB cloud-native build platform.

twksos
v2.0.1
Mar 27, 2026
0
888
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install cnb-cool-git

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 cnb-cool-git 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 CNB Git Skill?

The CNB Git Skill is a powerful integration designed for the CNB (cnb.cool) ecosystem, enabling AI agents to perform complex version control tasks and platform management. By leveraging this Openclaw Skills component, developers can automate the entire development lifecycle, from initial code cloning and branch management to advanced Merge Request (MR) workflows and pipeline monitoring.

This skill acts as a bridge between local workspace operations and the CNB Open API, ensuring that AI coding agents have the necessary permissions and tools to push code, review pull requests, and respond to build status updates. It prioritizes security by utilizing masked environment variables for sensitive tokens while maintaining developer productivity through automated global Git configurations.

CNB Git Skill Use Cases

  • Automating the creation and management of Merge Requests (MRs) based on feature branch updates.
  • Triggering cloud-native CI/CD pipelines via API during specific development milestones.
  • Automated code review workflows including adding comments and approving or requesting changes on PRs.
  • Batch processing of repository labels and reviewer assignments for project management.
  • Real-time monitoring and retrieval of pipeline build logs for automated debugging.

How CNB Git Skill Works

  1. The skill initializes by sourcing Git user identity and authentication tokens from the Openclaw Skills environment.
  2. It configures the global Git environment to ensure all commits are correctly attributed to the authorized user.
  3. For repository access, it constructs authenticated HTTPS clone URLs using secure access tokens.
  4. When performing platform actions, it sends structured REST API requests to the CNB service endpoint with required headers.
  5. It monitors execution results, such as pipeline build status or MR merge success, and returns the data to the agent for further action.

CNB Git Skill Setup

To get started with this member of the Openclaw Skills library, configure your credentials and environment:

  1. Add your sensitive tokens to your openclaw.json under env.vars:
  • CNB_COOL_GIT_TOKEN: Classic Token for clone/push operations.
  • CNB_COOL_API_TOKEN: REST API authorized token.
  1. Configure your identity in /workspace/.env:
CNB_COOL_GIT_USER_NAME=your_username
[email protected]
  1. Initialize the Git configuration:
git config --global user.name "${CNB_COOL_GIT_USER_NAME}"
git config --global user.email "${CNB_COOL_GIT_USER_EMAIL}"

CNB Git Skill Data Schema & Taxonomy

The skill utilizes specific environment variables and API structures to organize data effectively within the Openclaw Skills framework:

Variable Description
CNB_REPO_SLUG The full repository path (group/repo)
CNB_BRANCH The active working branch name
CNB_COMMIT The specific commit SHA being processed
CNB_BUILD_STATUS Current state of the pipeline (success/error/cancel)

API interactions require the Accept: application/vnd.cnb.api+json header to ensure consistent data parsing.

CNB Git Skill Advanced Features

  • Multi-stage Merge Request reviews (APPROVE/REQUEST_CHANGES) via automated API calls.
  • Dynamic pipeline triggering with custom environment variable injection for complex CI/CD scenarios.
  • Automated label management and reviewer rotation for large-scale repository maintenance.
  • Granular build log extraction to facilitate AI-driven root cause analysis of failed builds.
  • Secure token rotation support through modular Openclaw Skills secret management.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*