AGENT SKILL

chsrc

Use this skill when the user wants to switch package manager mirrors or registries — speed up npm, pip, brew, cargo, or apt downloads by pointing to a faster regional mirror.

License 许可
MIT
所属仓库
javimosch/supercli
最近更新
2026-11-02
Stars
★ 57
Forks
5

01 前言 Front Matter

name
chsrc
description
Use this skill when the user wants to switch package manager mirrors or registries — speed up npm, pip, brew, cargo, or apt downloads by pointing to a faster regional mirror.

03 SKILL.md 正文

chsrc Plugin

Cross-platform universal source mirror changer. Switches software sources for package managers and language toolchains (brew, pip, npm, cargo, apt, and more).

Commands

  • chsrc <resource> <action> — Execute chsrc commands
  • chsrc self version — Print chsrc version
  • chsrc source list — List available source mirrors
  • chsrc source set — Set a source mirror for a tool
  • chsrc source reset — Reset source mirrors to default

Installation

brew install chsrc
# or download from GitHub releases
curl -L https://github.com/RubyMetric/chsrc/releases/latest/download/chsrc-x64-linux \
  -o /usr/local/bin/chsrc && chmod +x /usr/local/bin/chsrc

Basic Usage

# List available mirrors
chsrc list

# Set a mirror for a tool (interactive selection)
chsrc set npm
chsrc set pip
chsrc set brew

# Reset to default mirrors
chsrc reset npm

Usage Examples

  • "Switch npm to a faster mirror in China"
  • "Change pip registry to Tsinghua mirror"
  • "Reset brew sources to default"

SuperCLI

sc chsrc source list
sc chsrc source set npm
sc plugins learn chsrc

04 同仓库更多 Skills