mirror-optimizer SKILL.md skillA
mirror-optimizer from huangwb8/skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add huangwb8/skills/mirror-optimizer@git:20260906.d2681a7Pins git:20260906.d2681a7 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- huangwb8/skills
- Path
skills/alpha/awesome-code/agents/mirror-optimizer/SKILL.md- Versions recorded
- 4
- Latest version
- git:20260906.d2681a7, committed Sep 6, 2026
- First version recorded
- Aug 25, 2026
- Size
- 8,142 bytes
- Repository stars
- 50
- License
- MIT
当用户明确要求优化镜像源、配置国内镜像、加速部署或切换依赖源时使用。分析项目技术栈并生成适配的镜像配置。⚠️ 不适用:用户只是询问镜像源概念、无需部署加速,或明确要求使用官方源。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Mirror Optimizer - 镜像源优化代理 ## 铁律 ``` NO DEPLOYMENT WITHOUT MIRROR CONFIGURATION FIRST ``` 任何涉及依赖下载的部署任务,必须先确认并优化镜像源配置,否则在国内环境下部署将极慢或失败。 ## 核心理念 **智能适配,透明可逆**。根据项目技术栈自动识别需要配置的镜像源类型,生成标准化的配置文件,同时保持官方源兼容性,支持一键切换。 ## 何时使用 - 项目包含 `Dockerfile`、`docker-compose.yml` 或 `.dockerignore` - 项目包含 `requirements.txt`、`pyproject.toml`、`Pipfile`、`setup.py`、`setup.cfg` 或 `poetry.lock` - 项目包含 `package.json`、`yarn.lock`、`pnpm-lock.yaml` 或 `package-lock.json` - 项目包含 `go.mod`、`go.sum`、`Gopkg.lock` 或 `Gopkg.toml` - 项目包含 `pom.xml`、`build.gradle`、`build.gradle.kts` 或 `settings.gradle` - 项目包含 `Gemfile`、`gems.rb` 或 `Cargo.toml` - 用户明确要求"配置国内镜像"、"加速部署"、"切换镜像源" - 部署过程中出现依赖下载超时或失败 ## 输入 - **必需**:项目根目录路径 - **可选**:目标部署区域(默认:中国大陆) ## 输出 - 检测报告:识别出的包管理器类型和当前配置状态 - 配置文件:为每个包管理器生成的镜像源配置 - Dockerfile 优化建议(如适用) - 使用说明:如何应用配置和验证效果 - 跳过清单:未生成的包管理器与原因(记录在报告中) ## 支持的镜像源类型 | 类型 | 检测文件 | 配置输出 | 国内镜像源 | |------|----------|----------|-----------| | **Docker** | `Dockerfile`, `docker-compose.yml`, `.dockerignore` | `Dockerfile.mirror` | 阿里云、腾讯云 | | **Python/pip** | `requirements.txt`, `pyproject.toml` | `pip.conf` | 清华、阿里云、中科大 | | **Node.js/npm** | `package.json`, `package-lock.json` | `.npmrc` | 淘宝、腾讯云 | …
Read the whole file at its exact version.
How to install
mdr add huangwb8/skills/mirror-optimizer@sha256:8091c3d74490192aThe line at the top of this page pins the label git:20260906.d2681a7, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_ffdxra7itb4e2til)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 4 versions of this file, between Aug 25, 2026 and Sep 6, 2026, about one every 4 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260906.d2681a7 latest | 2026-09-06 | d2681a7 | 8,142 B | A | view · diff |
| git:20260905.a346b91 | 2026-09-05 | a346b91 | 8,413 B | A | view · diff |
| git:20260905.7c0ea7c | 2026-09-05 | 7c0ea7c | 8,374 B | A | view · diff |
| git:20260825.4f192d9 | 2026-08-25 | 4f192d9 | 7,374 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (8142 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
huangwb8/skills · 50 stars · license MIT · pushed 2026-11-01 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_ffdxra7itb4e2til GET https://markdownregistry.com/api/v1/resolve?ref=huangwb8/skills/mirror-optimizer GET https://markdownregistry.com/api/v1/blob/8091c3d74490192a1bacb70758dc76bdecbdb15fe720b7626dc14eaefa349337
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.