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 agentmods add skills/qinye6/pi-ccg/infrastructurenpx skills add qinye6/pi-ccg --skill infrastructuregit clone --depth 1 https://github.com/qinye6/pi-ccgWrote 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/qinye6/pi-ccg/infrastructure)<a href="https://agentmods.dev/skills/qinye6/pi-ccg/infrastructure"><img src="https://agentmods.dev/badge/skills/qinye6/pi-ccg/infrastructure.svg" alt="Measured on agentmods" height="20"></a>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.00065 | $0.02126 |
| Opus 5 | $0.00032 | $0.01063 |
| Sonnet 5 | $0.00013 | $0.00425 |
| Haiku 4.5 | $0.00006 | $0.00213 |
Grade A, and why
infrastructure 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 5d 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.
This is a copy
100% identical to infrastructure — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 201 lines — stays where its author put it; the contents beside it link to each section on GitHub.
云原生基础设施 · Infrastructure
域概览
GitOps 控制平面
|
+-----------------+-----------------+
| | |
ArgoCD/Flux Kubernetes IaC 层
| | |
Git Repo ------> Helm/Kustomize --> Terraform/Pulumi
| | |
声明式配置 容器编排 云资源管理
Kubernetes 容器编排
Helm Chart 开发
标准结构:Chart.yaml + values.yaml + templates/ + charts/
核心要点:
- Chart.yaml:
apiVersion: v2, dependencies 声明子 Chart(condition 控制启用) - values.yaml 设计:image / replicaCount / resources / autoscaling / service / ingress / probes / env / persistence
- Deployment 模板:使用
_helpers.tpl定义fullname/labels/selectorLabels - 配置校验:
checksum/config: {{ include ... | sha256sum }}触发滚动更新 - 安全上下文:
runAsNonRoot: true, runAsUser: 1000
关键命令:
helm lint/helm template --debug验证helm install -f values-prod.yaml部署helm upgrade --reuse-values升级helm rollback <release> <revision>回滚helm push <chart>.tgz oci://registry推送 OCI
Kustomize 配置管理
目录结构:base/ + overlays/{dev,staging,production}/
核心能力:
- base/kustomization.yaml:resources / commonLabels / images / configMapGenerator / secretGenerator
- overlay:namespace / patchesStrategicMerge / patchesJson6902 / replicas / images / configMapGenerator(behavior: merge)
- 命令:
kubectl apply -k overlays/production/kubectl diff -k
Operator 模式
- CRD 定义:openAPIV3Schema 声明 spec/status,subresources(status/scale)
- Controller 核心循环:Get CR → 构建期望状态 → Create/Update 子资源 → 更新 Status
- OwnerReferences:子资源关联 CR,级联删除
- 初始化:
operator-sdk init→create api→make manifests→make install
部署策略
| 策略 | 实现方式 | 适用场景 |
|---|---|---|
| 滚动更新 | strategy.rollingUpdate maxSurge/maxUnavailable |
默认策略 |
| 蓝绿部署 | 两个 Deployment + Service selector 切换 | 零停机切换 |
| 金丝雀 | stable(9) + canary(1) 共享 Service | 渐进式验证 |
| Flagger | Canary CRD + 自动分析指标 |
自动化金丝雀 |
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.
- 5d ago First seen · 201 lines · 65 tokens per session scan A aa7bba89c524
infrastructure is a skill published in the GitHub repository qinye6/pi-ccg (10 stars, last pushed 11d ago), licensed MIT. It adds 65 tokens to every session and 2,126 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to infrastructure, differing in 0 lines, and is treated as a copy.
Other skills, from other repositories
azd-deployment
Deploy containerized frontend + backend applications to Azure Container Apps with remote builds, managed identity, and idempotent infrastructure.
openshell-cli
Guide agents through using the OpenShell CLI (openshell) for sandbox management, gateway registration, provider configuration and refresh, policy iteration, settings, service exposure, BYOC workflows, and inference routing. Covers basic through advanced multi-step workflows. Trigger keywords - openshell, sandbox…
langbot-deploy
Deploy and configure a LangBot instance — Docker / Docker Compose, Kubernetes, the config.yaml model, the Box sandbox runtime, the plugin runtime, and the global API key. Use when installing, deploying, upgrading, or configuring LangBot in production or self-hosted environments. Triggers on "deploy langbot", "langbot…
compute-env-setup
Set up a compute environment on a remote provider so Claude Science jobs can run there. Covers direct SSH/conda hosts, Slurm clusters, container-via-bridge runners, and managed-API providers (Modal, GCP, RunPod). Use when standing up a new provider, porting an env to a different backend, adding a tool that needs its…
azure-cloud-migrate
Assess and migrate cross-cloud workloads to Azure with reports and code conversion. Supports Lambda→Functions, Beanstalk/Heroku/App Engine→App Service, Fargate/Kubernetes/Cloud Run/Spring Boot→Container Apps. WHEN: migrate Lambda to Functions, AWS to Azure, migrate Beanstalk, migrate Heroku, migrate App Engine, Cloud…
compute-env-setup
Set up a reproducible Feynman compute environment for research jobs. Use when a task needs Python/R packages, GPU libraries, containers, Modal, SSH, caches, or managed model runtime setup.