askill
x-mirror

x-mirrorSafety 70Repository

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.

14 stars
1.2k downloads
Updated 3/13/2026

Package Files

Loading files...
SKILL.md

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.

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

78/100Analyzed 3/27/2026

x-mirror is a well-structured and highly actionable skill for managing package manager mirrors across multiple ecosystems. It provides comprehensive coverage of system and language package managers with clear command examples, organized tables, and practical usage scenarios. The skill includes excellent metadata, trigger phrases, and tags for discoverability. Minor gaps include no troubleshooting section, limited advanced usage details, and no explicit safety warnings about configuration modifications. The skill is public-facing and reusable but the path structure (data/x-cmd/x-mirror/) suggests project-internal context rather than a dedicated skills folder format.

70
85
80
75
85

Metadata

Licenseunknown
Version-
Updated3/13/2026
Publisherx-cmd

Tags

aptbrewcargocligemgomirrornpmpackage-managerpipregistryshelltools