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.6K0Profile unavailable
Security

Flue — Desktop Software Bridge

Flue is a lightweight bridge enabling command-line control of professional desktop software by executing scripts inside the app's automation runtime and retu...

Registry SourceRecently Updated
891Profile unavailable
Coding

Find Skills

Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express...

Registry SourceRecently Updated
2440Profile unavailable
Coding

CLI-Hub Tools

CLI-Hub工具箱 - 100+ CLI工具一键安装。浏览器自动化、视频编辑、知识管理、AI模型、云服务等。源自HKUDS CLI-Anything项目。

Registry SourceRecently Updated
720Profile unavailable