agentleFS
MicrosoftKnown publishermicrosoft/AKS-Lab-GitHubCopilot/.github/skills/aks-helm/SKILL.md

aks-helm

Skill8 starsChanged 5 months agoMITView on GitHub

  • Reads credentials

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not create cluster-scoped RBAC, policy assignments, Log Analytics workspaces, or Defender settings in this Helm chart.

    line 110
  2. Very specific:

    Add labels that help Azure Policy and Defender inventory the workload: app.kubernetes.io/name, app.kubernetes.io/part-of=zavashop, and …

    line 111
  3. Very specific:

    Keep ingress/service exposure explicit.

    line 112
  4. Very specific:

    Never value: a secret. Always secretKeyRef or CSI projection.

    line 118
  5. Distinctive:

    Never set privileged containers, host networking, host PID, or host IPC.

    line 120
  6. Very specific:

    Never use an image tag default or latest.

    line 121

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Skill: AKS Helm Chart for the Orchestrator

Chart layout

infra/aks/helm/zavashop/
├── Chart.yaml
├── values.yaml
└── templates/
    ├── _helpers.tpl
    ├── serviceaccount.yaml
    ├── secretproviderclass.yaml
    ├── deployment.yaml
    └── service.yaml

values.yaml shape

image:
  repository: ""        # acr.azurecr.io/zavashop/orchestrator
  tag: ""               # git short sha — REQUIRED, no default
  pullPolicy: IfNotPresent

workloadIdentity:
  clientId: ""          # UAMI client id, REQUIRED

keyVault:
  name: ""              # REQUIRED
tenantId: ""            # REQUIRED

a2a:
  inventory: ""
  supplier:  ""
  logistics: ""
  pricing:   ""

resources:
  requests: { cpu: "200m", memory: "256Mi" }
  limits:   { cpu: "1",    memory: "1Gi"  }

podSecurityContext:
  runAsNonRoot: true
  runAsUser: 10001
  runAsGroup: 10001
  fsGroup: 10001

securityContext:
  allowPrivilegeEscalation: false
  readOnlyRootFilesystem: true
  capabilities:
    drop: ["ALL"]

serviceaccount.yaml

apiVersion: v1
kind: ServiceAccount
metadata:
  name: orchestrator-sa
  namespace: {{ .Release.Namespace }}
  annotations:
    azure.workload.identity/client-id: {{ required "workloadIdentity.clientId" .Values.workloadIdentity.clientId }}
  labels:
    azure.workload.identity/use: "true"

secretproviderclass.yaml

apiVersion: secrets-store.csi.x-k8s.io/v1
kind: SecretProviderClass
metadata:
  name: zavashop-github-token
spec:
  provider: azure
  parameters:
    usePodIdentity: "false"
    useVMManagedIdentity: "false"
    clientID: {{ .Values.workloadIdentity.clientId }}
    keyvaultName: {{ .Values.keyVault.name }}
    tenantId: {{ .Values.tenantId }}
    objects: |
      array:
        - |
          objectName: GITHUB-TOKEN
          objectType: secret
  secretObjects:
    - secretName: github-token
      type: Opaque
      data:
        - objectName: GITHUB-TOKEN
          key: token

deployment.yaml essentials

  • metadata.labels.azure.workload.identity/use: "true" on the pod template.
  • serviceAccountName: orchestrator-sa.
  • topologySpreadConstraints over topology.kubernetes.io/zone, maxSkew: 1.
  • Non-root pod and container security contexts from values.yaml.
  • Mount the CSI volume; project GITHUB_TOKEN env via secretKeyRef to github-token/token.
  • Env: AZURE_CLIENT_ID, ZAVA_COPILOT_MODEL=gpt-5.5, ZAVA_COPILOT_TIMEOUT_SECONDS=120, and four specialist A2A URLs from .Values.a2a.*.
  • Probes: /healthz, /readyz on the orchestrator service port 8000 (see deploy-engineer rule 7).

Landing zone expectations

  • The chart assumes the cluster was created with Microsoft Entra ID, Azure RBAC, Azure Policy, Container Insights, and Defender for Cloud in Lab 01.
  • Do not create cluster-scoped RBAC, policy assignments, Log Analytics workspaces, or Defender settings in this Helm chart.
  • Add labels that help Azure Policy and Defender inventory the workload: app.kubernetes.io/name, app.kubernetes.io/part-of=zavashop, and azure.workload.identity/use=true on the pod template.
  • Keep ingress/service exposure explicit. The lab uses LoadBalancer; production landing zones should evaluate private ingress, Application Gateway for Containers, firewall egress, and private DNS before exposing the service.

Rules

  • helm lint MUST pass.
  • image.tag has no default — fail fast if not supplied.
  • Never value: a secret. Always secretKeyRef or CSI projection.
  • replicaCount defaults to 2.
  • Never set privileged containers, host networking, host PID, or host IPC.
  • Never use an image tag default or latest.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.