Skip to content

jeremylongshore/tons-of-skills-marketplace / plugins/devops/network-policy-manager/skills/managing-network-policies

managing-network-policies

Verified

Execute use when managing Kubernetes network policies and firewall rules. Trigger with phrases like "create network policy", "configure firewall rules", "restrict pod communication", or "setup ingress/egress rules". Generates Kubernetes NetworkPolicy manifests following least privilege and zero-trust principles.

FileKindSize
SKILL.mdskill md4.5 KB
assets/README.mdmarkdown310 B
assets/network_policy_template.yamlconfig2.2 KB
references/README.mdmarkdown65 B
scripts/README.mdmarkdown547 B
scripts/generate_network_policy.pyexecutablescript3.6 KB

assets/network_policy_template.yaml

View on GitHub
# network_policy_template.yaml
# A template for creating Kubernetes Network Policies.
# Replace placeholders with your desired values.

apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: example-value-network-policy # A unique name for your network policy
  namespace: YOUR_VALUE_HERE # The namespace this policy applies to
  labels:
    app: example-value # Optional labels for organization
    tier: example-value # Optional labels for organization
spec:
  podSelector:
    matchLabels:
      app: example-value # Selects the pods this policy applies to.  Must match a pod label.
      tier: example-value # Selects the pods this policy applies to.  Must match a pod label.
  policyTypes:
    - Ingress # Defines whether this policy applies to incoming traffic
    - Egress  # Defines whether this policy applies to outgoing traffic
  ingress:
    - from:
        - podSelector:
            matchLabels:
              app: YOUR_VALUE_HERE # Allow traffic from pods with this label
              tier: YOUR_VALUE_HERE # Allow traffic from pods with this label
        - namespaceSelector:
            matchLabels:
              name: YOUR_VALUE_HERE # Allow traffic from pods in this namespace
      ports:
        - protocol: TCP # Protocol allowed for ingress traffic
          port: 80 # Port allowed for ingress traffic
        - protocol: UDP
          port: 53 # Example: Allow DNS resolution
  egress:
    - to:
        - podSelector:
            matchLabels:
              app: YOUR_VALUE_HERE # Allow traffic to pods with this label
              tier: YOUR_VALUE_HERE # Allow traffic to pods with this label
        - namespaceSelector:
            matchLabels:
              name: YOUR_VALUE_HERE # Allow traffic to pods in this namespace
        - ipBlock: # Allows traffic to a specific IP address range
            cidr: 10.0.0.0/8 # Example: Allow traffic to internal network
            except: # Optional: Exclude specific IP ranges from the CIDR
              - 10.0.1.0/24
      ports:
        - protocol: TCP # Protocol allowed for egress traffic
          port: 443 # Port allowed for egress traffic
        - protocol: UDP
          port: 53 # Example: Allow DNS resolution
writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deploymentStars: 323kUpdated Claude CodeCodexVerifiedInstall
xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release.Stars: 118kUpdated Claude CodeCodexVerifiedInstall