aks-waf-live
Skill9 starsChanged 50 days agoMITView on GitHub
Read-only AKS configuration and Well-Architected review of every AKS cluster the agent identity can read (auto-discovered across subscriptions); one report for all clusters, one subscription or named clusters, with Subscription/Cluster filters in the HTML.
In this repository31 other files it gives its agents.
- labs/01-azure-operations/resources/grubify/.github/copilot-instructions.mdCopilot instructions
- azure-sre-agentSkill
- frontend-designSkill
- grillingSkill
- humanize-contentSkill
- rvap-brandSkill
- rvas-contentSkill
- skill-creatorSkill
- writing-for-agentsSkill
- sql-server-dbaSkill
- rvas-sre-agent-jumpstartSkill
- azure-change-digestSkill
- azure-finops-reviewSkill
- databricks-dependency-liveSkill
- defender-cloud-liveSkill
- service-health-liveSkill
- rbac-privileged-access-reviewSkill
- entra-full-credential-inventorySkill
- infra-ops-liveSkill
- azure-backup-liveSkill
- patching-investigation-liveSkill
- operations-digest-liveSkill
- fabric-chargeback-liveSkill
- sqlmi-maintenance-resilienceSkill
- sre-usecase-builderSkill
- 0001-no-productsSkill
- 0001-iwcSkill
- 0001-vntSkill
- validated-fixtureSkill
- 0003-skill-onlySkill
- exampleSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 1 is distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Use ONLY generate-aks-waf-report.
- Very specific: line 38
Never guess names. If the user gives approximate names, first call list_clusters (with subscription if known) and use only the returned …
- Very specific: line 98
Keep LIVE versus SIMULATED, LAB versus PRODUCTION/UNSPECIFIED, reference UTC, source statuses and coverage explicit.
- Very specific: line 112
Use operation="query" with one cluster (cluster_name, or up to five cluster_names) and one of summary, cluster, node_pools, workloads, …
- Very specific: line 115
Use namespace, workload_name, area, level, severity and status only where documented.
- Very specific: line 123
No Azure role grants, plan activation, installations, IaC/workload patches, deletion, scaling, upgrades, cluster start/stop, …
- Distinctive: line 127
No issues or unattended tasks unless separately and explicitly authorized.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.
Files
AKS configuration review (fleet)
Use ONLY generate-aks-waf-report. The operator must explicitly select that
one tool and this skill for aks-waf-live; no inherited tools, shell, exec,
generic Python, other agents, remediation connectors or role-grant tools.
Scope: auto-discovered inventory
There is NO approved list to maintain. On every call the tool runs one fixed,
read-only Azure Resource Graph query and works with every AKS cluster the
agent identity can read (the operator grants read-only roles once, ideally at
the management group, so clusters in 1, 2 or 20+ subscriptions appear on their
own). APPROVED_CLUSTERS in the code only holds optional per-cluster overrides
(for example "environment": "PRODUCTION"). Tool parameters cannot change
credentials, endpoints, KQL, paths, billing IDs or the identity; names and the
subscription filter are compared locally. A cluster the identity cannot read
does not exist for the tool: if the user expects one that is missing, say that
its subscription probably lacks the read role (grant script) or that new
assignments need 5-10 minutes.
Choosing the scope from the user's words
| The user asks for | Call |
| "all clusters", "the whole fleet", "the full report" | operation="report", cluster_names="all" |
| all clusters of one subscription | operation="report", subscription="<display name or ID>" |
| one cluster | operation="report", cluster_name="<exact name>" |
| several clusters (3, 8...) | operation="report", cluster_names="a,b,c" (exact names, comma-separated, no spaces) |
| which clusters exist / per subscription | operation="list_clusters" (optionally subscription), limit=100, then offset=next_offset until it is null |
- Never guess names. If the user gives approximate names, first call
list_clusters(withsubscriptionif known) and use only the returnedcluster_namevalues. Names are matched case-insensitively. The same AKS name in two subscriptions is ambiguous: addsubscription, or use the prefixed name thatlist_clustersreturns (first 8 characters of the subscription ID +-). subscriptionaccepts the subscription display name (case-insensitive) or its ID, and can be combined withcluster_names="all".- One report covers up to 100 clusters. Above that the tool returns
too_many_clusterswith the largest subscriptions: propose one report per subscription. Do not start several large reports unless the user asked. - On
unknown_cluster,unknown_subscriptionorambiguous_cluster_name, show the tool's message (it lists close matches) and ask the user to choose. - A report is ONE set of files for the whole selection. The HTML opens on a fleet overview with Subscription and Cluster drop-downs (All by default), a search box, KPI cards, one row per cluster and the findings; choosing a cluster opens its detailed review. Tell the user they can filter inside the report.
Report and delivery
Make one complete call with operation="report" and the scope parameters
above; no other filter/paging combination is valid for a report. Clusters are
collected in parallel (8 at a time, one shared time bound below the tool
timeout); many clusters can take several minutes, so say so before starting
a large report. Immediately render all four provided files: HTML, full
normalized JSON, findings CSV and inventory CSV. For
sharing_mode="native_ui", use the unchanged returned *_url aliases as four
native Markdown links/file widgets in the same response. Never invent or reuse
a host/thread/sandbox prefix, never ask an operator to publish them manually,
and do not call an extra HTTP/browser/shell tool to check them.
http_verified=false does not suppress these links; written is not a
download receipt. For local_files_only, expose the unchanged actual paths.
Summarize the result in chat: clusters and subscriptions selected, collected
ok / partial / error, findings by severity, the most important high/critical
findings, cost per currency and the links. Every cluster keeps its own status:
a failed or timed-out cluster (access_denied, collection_timeout...) is
reported as failed, never as healthy, and never borrows scores, inventory or
cost from another cluster.
On status="error", report the sanitized code/source. Do not claim completion,
invent files, narrow the scope silently, use ZIP/storage fallbacks or
substitute a synthetic report. A partial report has real files and source
blind spots; disclose both.
Sources and honesty rules
The report covers cluster, workload and associated-resource configuration,
four areas (best_practices, security, finops, optimization) and five
pillars (reliability, security, cost, operations, performance).
Kubernetes reads are disabled by default (kubernetes_enabled=False), so
workload-level checks are Not evaluated, not healthy. When an operator
enables them, managed Entra ID and Azure RBAC are required before the
clusterUser read; Reader does not authorize clusterUser, and a 403, 502 or
timeout on a Kubernetes kind leaves that kind Not evaluated. Never use admin
credentials, OBO, another identity or command invoke to bypass it. Cost
Management can throttle (HTTP 429) when many clusters are read at once: a
cluster without cost data has unknown cost, not zero cost.
Keep LIVE versus SIMULATED, LAB versus PRODUCTION/UNSPECIFIED,
reference UTC, source statuses and coverage explicit. ARM Running, a
Succeeded provisioning state or an enabled addon is not workload health,
policy compliance or a measurement.
Scores are local rule pass fractions, NOT official Azure WAF certification or a Polaris/WARA grade. Always disclose evaluated / Not evaluated / Not applicable counts and coverage next to a score. Never pad critical risks, infer owners or promise effort, delivery dates or savings. Requests are not usage, current metrics are not historical underutilization, and node resource group costs are not workload billing.
Grounded questions
Use operation="query" with one cluster (cluster_name, or up to five
cluster_names) and one of summary, cluster, node_pools, workloads,
resources, findings, finops, coverage, actions, architecture.
Use namespace, workload_name, area, level, severity and status
only where documented. Honor exact total_matched, returned, has_more,
next_offset and fresh-collection disclosure (a new call recollects; it is
not the previous report). For questions about many clusters, use the report
and its filters instead.
Never do
No Azure role grants, plan activation, installations, IaC/workload patches, deletion, scaling, upgrades, cluster start/stop, helm/jobs/exec/port-forward/ command invoke, tokens in output, Secrets/ConfigMap data, env/args, container logs, Key Vault secret values, Storage keys or arbitrary HTTP/SQL/KQL/shell. No issues or unattended tasks unless separately and explicitly authorized. This specialist assesses; humans decide remediation.
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
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.

