base-cn-registry-mirror-strategy

base-cn-registry-mirror-strategy is a skill for Claude Code, Codex from seed-forge/harness-ai-kit. It costs 47 tokens per session (2,316 once invoked), scanned A, original, Apache-2.0.

A set of guidelines for speeding up Docker images and programming-language package downloads in mainland China or other unstable cross-border networks. It covers sources and proxies for Docker, Debian, Alpine, Node, Python, Maven, Gradle, and Go.

In plain words
What is it for?
Use it when writing or reviewing Dockerfiles and CI pipelines, choosing public or company-hosted mirrors, and defining configurable download sources with security and compliance limits.
Why use it?
It prevents slow builds caused by treating container images and language packages as one download problem, and keeps mirror choices replaceable.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when writing or reviewing Dockerfiles and CI pipelines, choosing public or company-hosted mirrors, and defining configurable download sources with security and compliance limits.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/seed-forge/harness-ai-kit/base-cn-registry-mirror-strategy
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add seed-forge/harness-ai-kit --skill base-cn-registry-mirror-strategy
Clone the repo
git clone --depth 1 https://github.com/seed-forge/harness-ai-kit

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for base-cn-registry-mirror-strategy

README.md
[![agentmods](https://agentmods.dev/badge/skills/seed-forge/harness-ai-kit/base-cn-registry-mirror-strategy/github.svg)](https://agentmods.dev/skills/seed-forge/harness-ai-kit/base-cn-registry-mirror-strategy)
Your own site
<a href="https://agentmods.dev/skills/seed-forge/harness-ai-kit/base-cn-registry-mirror-strategy"><img src="https://agentmods.dev/badge/skills/seed-forge/harness-ai-kit/base-cn-registry-mirror-strategy/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for base-cn-registry-mirror-strategy

Your own site · 80×15
<a href="https://agentmods.dev/skills/seed-forge/harness-ai-kit/base-cn-registry-mirror-strategy"><img src="https://agentmods.dev/badge/skills/seed-forge/harness-ai-kit/base-cn-registry-mirror-strategy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,316 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00047 $0.02316
Opus 5 $0.00023 $0.01158
Sonnet 5 $0.00009 $0.00463
Haiku 4.5 $0.00005 $0.00232

Measured 11d ago against content hash ebfc352839d7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

base-cn-registry-mirror-strategy scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/base-cn-registry-mirror-strategy/SKILL.md · 96 lines

How it starts

The opening of the file, as written. The whole thing — 96 lines — stays where its author put it; the contents beside it link to each section on GitHub.

base-cn-registry-mirror-strategy

用途

中国大陆网络或跨境不稳定场景下,为容器镜像与语言包拉取提供一套可维护的分层策略:先定「谁负责加速」(宿主机 Docker、CI 注入、Dockerfile 内显式换源),再按栈选用可替换的默认候选 URL,避免每次临时拼命令。

适用于:

  • 编写、审查或重构 Dockerfile、多阶段构建
  • 配置 CI(含 Kaniko、BuildKit、自托管 Runner)
  • 与团队内 Nexus / Harbor 策略对齐前的公共默认基线

输入

  • 基础镜像家族:Debian/Ubuntu 系、Alpine,或其它(需单独评估)
  • 语言与工具:Node/npm、Python/pip、Maven、Gradle、Go modules
  • 构建环境:本地、云 CI、是否允许访问外网公共镜像
  • 组织是否提供:Docker Registry 镜像、PyPI/npm/Maven 代理、HTTP(S)_PROXY

输出

  • 分层策略表:每一层配置什么、何时用、与安全的边界
  • 默认候选:阿里云、清华 TUNA、中科大等可互换的「默认占位」,团队应收敛为单一事实源
  • 可复制片段:见 references/REFERENCE-MIRROR-RECIPES.md

核心原则(必读)

  1. 单一事实源:对外发布的 Dockerfile 里用 ARG 暴露镜像 URL,默认值可以指向公共镜像;团队内部在 CI 或 docker build --build-arg 中注入组织制品库地址,避免在仓库里硬编码易失效的第三方 URL 且无出口替换。
  2. 公共镜像 ≠ 长期承诺:域名、路径、同步延迟会变;本 skill 提供维护节奏(建议每季度巡检 + 出问题时切换 ARG),不保证某一第三方站点永久可用。
  3. 合规优先:若公司有「仅允许内网源」或审计要求,以安全与合规为准,本 skill 中的公共地址仅作开发/组织内部集群 基线参考。
  4. Docker Hub 与语言源解耦docker pull / FROM 慢,与 aptnpmpip 慢是不同链路;不要只配一种就以为全覆盖。
  5. 大依赖优先 Nexus 预热,而非仅 CN 公网镜像:凡 Nexus 能承接的生态(pip、npm、Maven、Gradle、Go 等),若存在大体积或 CI 关键路径依赖,应建议 Nexus group 统一入口 + hosted/manifest 预热;仅把 ARG 改成 npmmirror / 阿里云 / goproxy.cn 仍可能很慢(公网 CDN、代理、镜像站滞后)。决策表与分生态清单见 references/REFERENCE-NEXUS-ECOSYSTEM-PRELOAD.md

分层策略

层级 解决什么问题 典型手段 备注
L0 宿主机 / Runner docker pullFROM 拉取慢 /etc/docker/daemon.jsonregistry-mirrors;或企业内 Harbor 前置缓存 影响构建机拉基础镜像,不写入 Dockerfile
L1 CI 环境变量 构建阶段内的网络工具与 CLI HTTP_PROXY/HTTPS_PROXY/NO_PROXYDOCKER_BUILDKIT=1 组织内部集群 宿主机默认代理见 组织内部集群-组织内部集群-ops/references/REFERENCE-组织内部集群-OUTBOUND-HTTP-PROXY.md
L2 Dockerfile ARG 可重复、可审计的换源 各语言 *_MIRROR / *_URL 默认 + build-arg 覆盖 推荐作为团队统一模式
L3 仅内网发布 出网受限 FROM 与包源全部改为内网 registry / Nexus group infra-source-image-pipeline-ops 等流水线 skill 配合
L3b Nexus 预热 大 wheel/jar、钉死版本、镜像站缺包 hosted 上传 + group 消费;manifest + Ansible(PyPI 已示范) 组织内部集群 deploy-apps / Woodpecker 标准路径;见 REFERENCE-NEXUS-ECOSYSTEM-PRELOAD.md

Read the full file on GitHub · 96 lines

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 96 lines · 47 tokens per session scan A ebfc352839d7

Subscribe to this mod's changes

base-cn-registry-mirror-strategy is a skill published in the GitHub repository seed-forge/harness-ai-kit (22 stars, last pushed 10d ago), licensed Apache-2.0. It adds 47 tokens to every session and 2,316 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

github-actions-templates

Create production-ready GitHub Actions workflows for automated testing, building, and deploying applications. Use when setting up CI/CD with GitHub Actions, automating development workflows, or creating reusable workflow templates.

wshobson/agents · 44 tokens

devops-engineer

Creates Dockerfiles, configures CI/CD pipelines, writes Kubernetes manifests, and generates Terraform/Pulumi infrastructure templates. Handles deployment automation, GitOps configuration, incident response runbooks, and internal developer platform tooling. Use when setting up CI/CD pipelines, containerizing…

Jeffallan/claude-skills · 107 tokens

deploy

Elixir/Phoenix deployment patterns — Dockerfile, fly.toml, runtime.exs, mix release, rel/ overlays. Use when configuring Fly.io, Docker, CI/CD, health checks, or production migrations.

oliver-kriska/claude-elixir-phoenix · 46 tokens

devops-infrastructure

Guides Docker, CI/CD pipelines, deployment strategies, infrastructure as code, and observability setup. Use when writing Dockerfiles, configuring GitHub Actions, planning deployments, setting up monitoring, or when asked about containers, pipelines, Terraform, or production infrastructure.

CloudAI-X/claude-workflow-v2 · 57 tokens

devops-specialist

A DevOps and operations guide for running software reliably. DevOps combines software development with the work of building, deploying, monitoring, and maintaining systems.

huangwb8/skills · 55 tokens

act Local GitHub Actions Runner

Skill "act Local GitHub Actions Runner" from agentskillexchange/skills, covering act local github actions runner, installation and source.

agentskillexchange/skills · 48 tokens