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.
npx skills add seed-forge/harness-ai-kit --skill base-cn-registry-mirror-strategygit clone --depth 1 https://github.com/seed-forge/harness-ai-kitWrote 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.
[](https://agentmods.dev/skills/seed-forge/harness-ai-kit/base-cn-registry-mirror-strategy)<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.
<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>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00047 | $0.02316 |
| Opus 5.5 | $0.00019 | $0.00926 |
| Sonnet 5.5 | $0.00009 | $0.00463 |
| Haiku 4.5 | $0.00005 | $0.00232 |
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 3mo 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.
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
核心原则(必读)
- 单一事实源:对外发布的
Dockerfile里用ARG暴露镜像 URL,默认值可以指向公共镜像;团队内部在 CI 或docker build --build-arg中注入组织制品库地址,避免在仓库里硬编码易失效的第三方 URL 且无出口替换。 - 公共镜像 ≠ 长期承诺:域名、路径、同步延迟会变;本 skill 提供维护节奏(建议每季度巡检 + 出问题时切换
ARG),不保证某一第三方站点永久可用。 - 合规优先:若公司有「仅允许内网源」或审计要求,以安全与合规为准,本 skill 中的公共地址仅作开发/组织内部集群 基线参考。
- Docker Hub 与语言源解耦:
docker pull/FROM慢,与apt、npm、pip慢是不同链路;不要只配一种就以为全覆盖。 - 大依赖优先 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 pull、FROM 拉取慢 |
/etc/docker/daemon.json 的 registry-mirrors;或企业内 Harbor 前置缓存 |
影响构建机拉基础镜像,不写入 Dockerfile |
| L1 CI 环境变量 | 构建阶段内的网络工具与 CLI | HTTP_PROXY/HTTPS_PROXY/NO_PROXY;DOCKER_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 |
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.
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.
- 3mo ago First seen · 96 lines · 47 tokens per session scan A ebfc352839d7
base-cn-registry-mirror-strategy is a skill published in the GitHub repository seed-forge/harness-ai-kit (26 stars, last pushed 3mo 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.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.
base-cn-registry-mirror-strategy compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| base-cn-registry-mirror-strategyseed-forge/harness-ai-kit | Skill | 26 | 3mo ago | Apache-2.0 | A | 47 | Claude Code, Codex |
| github-actions-templateswshobson/agents | Skill | 43k | yesterday | MIT | A | 44 | Claude Code |
| devops-engineerJeffallan/claude-skills | Skill | 13k | today | MIT | A | 107 | Claude Code |
| deployoliver-kriska/claude-elixir-phoenix | Skill | 579 | yesterday | MIT | A | 46 | Claude Code |
| implementing-aqua-security-for-container-scanningadriannoes/awesome-agentic-ai | Skill | 108 | 3d ago | MIT | A | 41 | Claude Code, Codex |
| devops-infrastructureCloudAI-X/claude-workflow-v2 | Skill | 1.4k | 1mo ago | MIT | B | 57 | Claude Code |
| supply-chain-attack-reconadriannoes/awesome-agentic-ai | Skill | 108 | 3d ago | MIT | B | 141 | Claude Code, Codex |