Skip to content
Development
Command

/context-load-cilium

Load comprehensive Cilium eBPF networking and security documentation with project-specific optimization

From plugin
claude-cmd
313180 skills180 commands

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/context-load-cilium

Context preview

What this command does when you run it.

Load comprehensive Cilium eBPF networking and security documentation with project-specific optimization

Command definition

context-load-cilium.md
allowed-tools: Read, WebFetch, Bash(kubectl:*), Bash(helm:*), Bash(fd:*), Bash(rg:*), Bash(jq:*), Bash(gdate:*), Bash(yq:*)
name: "Context Load Cilium"
description: "Load comprehensive Cilium eBPF networking and security documentation with project-specific optimization"
author: "wcygan"
tags: ["context","k8s"]
version: "1.0.0"
created_at: "2025-07-14T00:00:00Z"
updated_at: "2025-07-14T00:00:00Z"

/context-load-cilium

Context

  • Session ID: !`gdate +%s%N 2>/dev/null || date +%s000000000 2>/dev/null || echo "session-$(date +%s)000000000"`
  • Current directory: !`pwd`
  • Kubernetes manifests: !`fd "\\.ya?ml$" . | rg "(kind:|apiVersion:)" | head -5 || echo "No Kubernetes manifests found"`
  • Cilium configuration: !`fd "(cilium|cni)" . -t f | head -3 || echo "No Cilium config found"`
  • CNI configuration: !`fd "(cni|network)" . -t d | head -3 || echo "No CNI directories found"`
  • Helm charts: !`fd "Chart\\.ya?ml$" . | head -3 || echo "No Helm charts found"`
  • Network policies: !`rg "kind: NetworkPolicy" . --type yaml | wc -l | tr -d ' ' || echo "0"`
  • Service mesh config: !`rg "(envoy|istio|linkerd)" . --type yaml | wc -l | tr -d ' ' || echo "0"`
  • Cluster access: !`kubectl cluster-info 2>/dev/null | head -2 || echo "No cluster access"`
  • Cilium status: !`kubectl get pods -n kube-system -l app.kubernetes.io/name=cilium 2>/dev/null | head -3 || echo "Cilium not detected"`

Your Task

Execute strategic Cilium documentation loading with project-specific context optimization.

STEP 1: Initialize context loading session

  • CREATE session state file: `/tmp/cilium-context-$SESSION_ID.json`
  • SET initial state:
  {
    "sessionId": "$SESSION_ID",
    "phase": "discovery",
    "context_sources": [],
    "loaded_topics": [],
    "project_specific_focus": [],
    "documentation_cache": {},
    "cilium_features_detected": []
  }

STEP 2: Project-specific context analysis

TRY:

  • ANALYZE Kubernetes and Cilium usage from Context section
  • DETERMINE specific Cilium features in use or planned
  • IDENTIFY documentation priorities based on project needs

IF Cilium already deployed:

  • FOCUS on operational guides, troubleshooting, and advanced features
  • PRIORITIZE monitoring, policy management, and performance optimization
  • INCLUDE upgrade procedures and cluster management

ELSE IF Kubernetes cluster detected:

  • FOCUS on installation guides, CNI setup, and basic configuration
  • PRIORITIZE getting started guides and initial deployment
  • INCLUDE migration from existing CNI if applicable

ELSE:

  • LOAD general Cilium concepts and architecture overview
  • EMPHASIZE evaluation criteria and deployment planning
  • INCLUDE infrastructure requirements and compatibility

CATCH (cluster_access_failed):

  • CONTINUE with general Cilium documentation loading
  • NOTE cluster access limitations in session state
  • FOCUS on documentation that doesn't require live cluster

STEP 3: Strategic documentation loading

Execute systematic context loading from prioritized Cilium documentation sources:

FOR EACH priority documentation source:

1. **Cilium Core Documentation**

  • URL: `https://docs.cilium.io/en/stable/overview/intro/`
  • FETCH: eBPF networking concepts, architecture overview, core features
  • FOCUS: CNI functionality, network connectivity, identity-based security
  • EXTRACT: Installation procedures and basic configuration patterns

2. **Network Policy Documentation**

  • URL: `https://docs.cilium.io/en/stable/security/policy/`
  • FETCH: L3/L4 policies, L7 policies, DNS policies, Kafka policies
  • FOCUS: Policy specification, enforcement mechanisms, security isolation
  • EXTRACT: Policy examples and troubleshooting guides

3. **Service Mesh Integration**

  • URL: `https://docs.cilium.io/en/stable/network/servicemesh/`
  • FETCH: Envoy integration, sidecar-less service mesh, traffic management
  • FOCUS: Load balancing, ingress/egress, mutual TLS, observability
  • EXTRACT: Service mesh configuration and operational patterns

4. **Hubble Observability Platform**

  • URL: `https://docs.cilium.io/en/stable/observability/hubble/`
  • FETCH: Network visibility, flow monitoring, metrics collection
  • FOCUS: Hubble UI, CLI tools, metrics export, troubleshooting
  • EXTRACT: Observability setup and monitoring best practices

5. **Performance and Operations**

  • URL: `https://docs.cilium.io/en/stable/operations/performance/`
  • FETCH: Performance tuning, benchmarking, resource optimization
  • FOCUS: eBPF program optimization, datapath tuning, scalability
  • EXTRACT: Performance monitoring and optimization techniques

6. **Installation and Upgrade Procedures**

  • URL: `https://docs.cilium.io/en/stable/installation/`
  • FETCH: Kubernetes installation, Helm charts, operator deployment
  • FOCUS: CNI configuration, cluster requirements, upgrade procedures
  • EXTRACT: Production deployment patterns and best practices

CATCH (documentation_fetch_failed):

  • LOG failed sources to session state
  • CONTINUE with available documentation
  • PROVIDE manual context loading instructions
  • SAVE fallback documentation references

STEP 4: Context organization and synthesis

  • ORGANIZE loaded context by functional area:
  • eBPF networking fundamentals and architecture
  • CNI installation and cluster integration
  • Network policy specification and enforcement
  • Service mesh capabilities and configuration
  • Load balancing and traffic management
  • Security enforcement and identity management
  • Observability with Hubble and monitoring
  • Performance optimization and tuning
  • Troubleshooting and operational procedures
  • SYNTHESIZE project-specific guidance:
  • Integration with existing Kubernetes infrastructure
  • Migration strategies from other CNI solutions
  • Best practices for detected use cases
  • Security considerations for network policies
  • Observability integration with existing monitoring

STEP 5: Session state management and completion

  • UPDATE session state
Read more
Ships withclaude-cmd

A lightweight (~46kB) and comprehensive CLI tool for managing Claude commands, configurations, and workflows.

Get the whole plugin