CN Dev Setup for Openclaw

A comprehensive automation utility for switching development tool registries to high-speed domestic mirrors in China.

ironmanc2014
v1.0.0
Mar 17, 2026
0
931
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install cn-dev-setup

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 cn-dev-setup 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 CN Dev Setup?

CN Dev Setup is an essential utility designed for the Openclaw Skills ecosystem to resolve the common challenges of slow download speeds and connection timeouts faced by developers in China. This skill automates the configuration of domestic mirrors for a wide range of package managers and development environments, ensuring a smooth and efficient coding experience.

By leveraging this component of Openclaw Skills, developers can instantly transition their local environments to use trusted high-speed registries such as Alibaba Cloud, Tsinghua TUNA, and npmmirror. It covers everything from Node.js and Python to Docker and Rust, removing the need for manual configuration of individual config files and environment variables.

CN Dev Setup Use Cases

  • Resolving timeout issues during npm install, pip install, or cargo build operations.
  • Accelerating Docker image pulls by configuring domestic mirror endpoints.
  • Streamlining the initial setup of a new development machine for optimal performance in China.
  • Switching back to official upstream registries when required for specific testing or debugging.
  • Configuring Git proxies to handle GitHub connection instability.

How CN Dev Setup Works

  1. The Openclaw Skills agent executes the status check command to identify current registry settings for all installed development tools.
  2. Users can trigger a global optimization or select specific tools like npm, Go, or Maven for mirror migration.
  3. The skill automatically updates configuration files (such as .npmrc, daemon.json, or settings.xml) or executes tool-specific CLI commands to point to domestic mirrors.
  4. A verification step confirms that the new mirrors are active and reachable, providing a summary of the environment status.

CN Dev Setup Setup

To deploy this configuration using your Openclaw Skills setup, run the following Python-based scripts from within the skill directory:

# Configure all detected tools to use domestic mirrors
python scripts/setup_mirrors.py --all

# Configure only specific tools like npm and pip
python scripts/setup_mirrors.py npm pip

# Check the current mirror configuration status
python scripts/setup_mirrors.py --status

# Reset specific tools to their default official mirrors
python scripts/setup_mirrors.py --reset npm pip

CN Dev Setup Data Schema & Taxonomy

The skill manages configurations across several package managers. Below is how the data and mirrors are mapped:

Tool Domestic Mirror Source Configuration Method
npm / pnpm npmmirror.com CLI Config Command
pip Tsinghua TUNA / Aliyun pip config set
Docker Aliyun / USTC / Proxy daemon.json update
Cargo Tsinghua TUNA / USTC config.toml modification
Maven / Gradle Aliyun Maven settings.xml / build.gradle
Go goproxy.cn go env variable
Git User-defined Proxy git config --global

CN Dev Setup Advanced Features

  • Intelligent detection of installed tools to prevent configuration errors on missing environments.
  • Support for Docker daemon configuration across Linux, macOS, and Windows platforms.
  • Selective Git proxying to optimize only GitHub traffic while keeping other traffic direct.
  • Sparse protocol support for Cargo to significantly speed up Rust crate indexing.
  • Comprehensive troubleshooting guide for common mirror synchronization and cache issues.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*