kfl
Skill by kubeshark
Reference for KFL2, the Kubeshark Filter Language, used to write display filters over Kubernetes traffic. It is aimed at AI assistants and users who need to search or narrow captured cluster traffic in Kubeshark.
Install kfl
Built from the published package, never by AI.
git clone --depth 1 https://github.com/kubeshark/kubeshark /tmp/kubeshark && mkdir -p ~/.claude/skills && cp -r /tmp/kubeshark/skills/kfl ~/.claude/skills/kflRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/kubeshark/kubeshark /tmp/kubeshark && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/kubeshark/skills/kfl ~/.gemini/antigravity-cli/skills/kflAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill is a reference for KFL2, the Kubeshark Filter Language. KFL2 is built on Google's CEL and works as a display filter, so it changes only what is shown, not what is captured. The skill covers boolean operators, string, collection and time functions, and protocol detection flags such as http, dns, tls and conn.
It also documents Kubernetes-aware fields such as pod, service, namespace, labels and annotations, along with field lists for HTTP, DNS, Redis, Kafka, MongoDB, MySQL, PostgreSQL, gRPC and L4 connection tracking. The source says it should be loaded before any KFL filter is written, because field names and syntax are strict. It is intended for AI assistants and users who need to slice or search Kubeshark traffic.
Written from the project's SKILL.md and checked against it.
What it can do
- Core syntaxExplains KFL operators, string functions, collection functions and time functions.
- Protocol detectionLists boolean flags such as http, dns, redis, kafka and grpc to narrow filters.
- Kubernetes contextFilters traffic by pod, service, namespace, node, labels and annotations.
- HTTP filteringCovers method, path, status code, headers, cookies and elapsed time fields.
- DNS filteringCovers DNS questions, answers, record types and request or response flags.
- Database and messagingCovers Redis, Kafka, MongoDB, MySQL and PostgreSQL field patterns.
- Transport layer (L4)Covers TCP, UDP and connection tracking fields such as state and byte counts.
What you need
- Kubeshark
Try asking
- Write a KFL filter that shows HTTP responses with status 500 or higher
- Build a KFL filter for DNS lookups of api.example.com
- Show me a KFL filter for slow gRPC calls over one second
Good to know
- Acts as a display filter only and does not change what is captured
- The tls flag is an alias for capture_source equal to ebpf_tls, not TLS dissection
- postgresql_error_code is a string, while mysql_error_code is an int
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/kfl/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md14 KB -
references/kfl2-reference.md21 KB
Alternatives to kfl
All alternatives →Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.
Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.
Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.
Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.
Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.
Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.
Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli
kfl: common questions
What is KFL2?
KFL2 is the Kubeshark Filter Language. The source describes it as built on Google's CEL and as the query language for all Kubeshark traffic analysis.
Does a KFL filter change what Kubeshark captures?
No. The source says KFL operates as a display filter, so it only changes what you see, not what is captured.
Why load this skill before writing a filter?
The source states that KFL is statically typed, so incorrect field names or syntax will fail silently or error.
How do I install kfl?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is kfl free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is kfl safe to use?
It scores 89 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to kfl?
Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.
