x-mirror

x-mirror is a comprehensive mirror source management tool for various package managers. Use this skill whenever users need to configure, switch, or query package manager download mirrors. This skill handles: setting up and switching mirrors for package managers (pip, npm, brew, apt, go, cargo, gem, etc.), viewing available mirror options, checking current mirror configuration, restoring default official sources, and optimizing download speeds in China regions. Triggered by queries like "set npm mirror", "change pip source", "npm mirror speed", "pip Tsinghua mirror", "brew Chinese mirror", "x mirror apt", "how to speed up npm download", "configure pip mirror", "switch npm registry", or any request related to package manager mirrors, registry settings, or download acceleration. This skill is essential for developers in China or anyone needing to optimize package download speeds.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "x-mirror" with this command: npx skills add X-CMD/x-mirror

x mirror - Mirror Source Manager

Prerequisites

  1. Load x-cmd before use:

    . ~/.x-cmd.root/X
    
  2. x-cmd not installed? → data/install.md

Core Functions

  • List mirror sources: x mirror <pkgmgr> ls
  • Set mirror source: x mirror <pkgmgr> set <mirror-name>
  • View current mirror: x mirror <pkgmgr> current
  • Restore default source: x mirror <pkgmgr> unset

Supported Package Managers

System Package Managers

CommandDescription
aptDebian/Ubuntu
brewHomebrew
pacmanArch Linux
dnfFedora/RHEL
yumCentOS/RHEL
apkAlpine Linux

Language Package Managers

CommandDescription
pipPython
npmNode.js
pnpmNode.js
yarnNode.js
goGo modules
cargoRust
gemRuby

Container

CommandDescription
dockerDocker registry

Usage Examples

List available mirrors

x mirror npm ls
x mirror pip ls
x mirror brew ls

Set mirror source

x mirror npm set npmmirror    # Set npm to use Alibaba Cloud mirror
x mirror pip set tuna         # Set pip to use Tsinghua mirror
x mirror brew set tuna        # Set brew to use Tsinghua mirror

View current mirror

x mirror npm current
x mirror pip current

Restore default source

x mirror npm unset
x mirror pip unset

Common Scenarios

  • Check available npm mirrors: x mirror npm ls
  • Set pip to Tsinghua mirror: x mirror pip set tuna
  • Check current brew mirror: x mirror brew current
  • Restore npm to official: x mirror npm unset

Get Help

Run x mirror --help or x mirror <subcmd> --help for full documentation.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

letcairn.work

Project management for AI agents using markdown files. Install and use the cairn CLI to create projects, manage tasks, track status, and coordinate human-AI collaboration through a shared workspace of markdown files.

Registry SourceRecently Updated
1.3K0Profile unavailable
Coding

TickTick CLI (ttg)

Manage TickTick tasks and projects via the `ttg` CLI (github.com/dhruvkelawala/ticktick-go). Full CRUD, checklists/subtasks with progress display, reminders,...

Registry SourceRecently Updated
1220Profile unavailable
Coding

agentcli-go

agentcli-go framework reference for building Go CLI tools. Use when working on agentcli-go itself, scaffolding new CLI projects, adding commands, integrating...

Registry SourceRecently Updated
3140Profile unavailable
Coding

airq

Check air quality, AQI, PM2.5, PM10, pollution levels for any city from the terminal using airq CLI. Installs, configures, and runs air quality queries. Use...

Registry SourceRecently Updated
790Profile unavailable