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…
от x-cmd★ 26 звёзд на GitHubОб этом скилле
x mirror - Mirror Source Manager
Prerequisites
Load x-cmd before use:
. ~/.x-cmd.root/Xx-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
| Command | Description |
|---|---|
| apt | Debian/Ubuntu |
| brew | Homebrew |
| pacman | Arch Linux |
| dnf | Fedora/RHEL |
| yum | CentOS/RHEL |
| apk | Alpine Linux |
Language Package Managers
| Command | Description |
|---|---|
| pip | Python |
| npm | Node.js |
| pnpm | Node.js |
| yarn | Node.js |
| go | Go modules |
| cargo | Rust |
| gem | Ruby |
Container
| Command | Description |
|---|---|
| docker | Docker 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.
Установить x-mirror в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл 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.
Как установить скилл x-mirror?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл x-mirror запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic