infrastructure

infrastructure is a skill for Claude Code from fengshao1227/ccg-workflow. It costs 65 tokens per session (2,126 once invoked), scanned A, original, MIT.

A guide for cloud-native infrastructure: software and configuration used to run applications in containers and manage cloud resources. It covers Kubernetes, Helm, Kustomize, GitOps tools such as ArgoCD and Flux, and infrastructure-as-code tools such as Terraform and Pulumi.

In plain words
What is it for?
Use it when working on Kubernetes deployments, Helm charts, Kustomize overlays, operators, custom resources, GitOps workflows, or cloud-resource definitions.
Why use it?
It brings deployment and infrastructure practices into one reference, reducing uncertainty when configuring or reviewing these systems. It also lists checks and commands for validating, deploying, upgrading, and rolling back configurations.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Part of the ccg plugin — 58 skills, 12 commands, 7 agents shipped together

Good fit Use it when working on Kubernetes deployments, Helm charts, Kustomize overlays, operators, custom resources, GitOps workflows, or cloud-resource definitions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fengshao1227/ccg-workflow/infrastructure
About the project

CCG is a command-line workflow engine that coordinates Claude, Codex, Gemini, and other models as specialized collaborators on coding tasks. It is used to analyze requests, choose a strategy, delegate work to model-specific roles, and combine their results. The catalogue entries provide the skills, commands, agents, and plugin that implement this workflow.

fengshao1227/ccg-workflow · 5,875 stars · on GitHub · ccg.fengshao1227.com

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 fengshao1227/ccg-workflow --skill infrastructure
Clone the repo
git clone --depth 1 https://github.com/fengshao1227/ccg-workflow

Made for: Claude Code.

Or install ccg, the plugin that ships this one along with the rest of its 58 skills, 12 commands, 7 agents.

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 infrastructure

README.md
[![agentmods](https://agentmods.dev/badge/skills/fengshao1227/ccg-workflow/infrastructure.svg)](https://agentmods.dev/skills/fengshao1227/ccg-workflow/infrastructure)
Your own site
<a href="https://agentmods.dev/skills/fengshao1227/ccg-workflow/infrastructure"><img src="https://agentmods.dev/badge/skills/fengshao1227/ccg-workflow/infrastructure.svg" alt="Measured on agentmods" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,126 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.00065 $0.02126
Opus 5 $0.00032 $0.01063
Sonnet 5 $0.00013 $0.00425
Haiku 4.5 $0.00006 $0.00213

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

Security

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 8d 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.

Origin

Copies of this mod

3 near-identical copies found in the catalogue:

templates/skills/domains/infrastructure/SKILL.md · 201 lines

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 initcreate apimake manifestsmake install

部署策略

策略 实现方式 适用场景
滚动更新 strategy.rollingUpdate maxSurge/maxUnavailable 默认策略
蓝绿部署 两个 Deployment + Service selector 切换 零停机切换
金丝雀 stable(9) + canary(1) 共享 Service 渐进式验证
Flagger Canary CRD + 自动分析指标 自动化金丝雀

Read the full file on GitHub · 201 lines

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. 8d ago First seen · 201 lines · 65 tokens per session scan A aa7bba89c524

Subscribe to this mod's changes

infrastructure is a skill published in the GitHub repository fengshao1227/ccg-workflow (5,875 stars, last pushed 4d 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. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.