微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🧩

K8s 安全策略

k8s-security-policies · v
作者 wshobson 公开目录收录

简介

实现 Kubernetes 安全策略,包括 NetworkPolicy、PodSecurityPolicy 和 RBAC,用于生产级安全。适用于集群加固、网络隔离或 Pod 安全标准实施。

原始描述

Implement Kubernetes security policies including NetworkPolicy, PodSecurityPolicy, and RBAC for production-grade security. Use when securing Kubernetes clusters, implementing network isolation, or enforcing pod security standards.

通过你的 Agent 添加

安装目录:k8s-security-policies/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/k8s-security-policies/
Codex CLI~/.codex/skills/k8s-security-policies/
DeepSeek Harness~/.agents/skills/k8s-security-policies/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: k8s-security-policies description: "Plan, implement, or review kubernetes security policies work in an existing codebase with compatibility, security, and verification controls. Use when the user explicitly requests kubernetes security policies work."

Kubernetes Security Policies

Use this Skill to produce a bounded, verifiable Kubernetes Security Policies outcome. Preserve the user's chosen stack, source material, and authorization boundaries.

Read the SandBase API map only when the task genuinely needs an external data source or generative model.

Workflow

  1. Inspect the available files, runtime, versions, inputs, and existing conventions before deciding what to change.
  2. Restate the requested outcome, constraints, acceptance checks, and any assumption that could change the result.
  3. Produce the smallest complete implementation, analysis, or artifact that satisfies those checks.
  4. Verify the real output with appropriate tests, previews, calculations, or source comparison; do not infer success from file creation alone.
  5. Return the deliverable, evidence of validation, material assumptions, and unresolved limitations.

Quality gates

  • Inspect repository instructions, current versions, tests, and user changes before proposing an implementation.
  • Make the smallest compatible change, preserve public contracts unless change is requested, and avoid new dependencies without a concrete benefit.
  • Run focused tests plus the relevant build or static checks, then report observed results and any unverified paths.
  • Separate recommendations from live changes. Resolve the exact environment, show impact and rollback, protect secrets, and require authorization before applying or deploying configuration.

SandBase boundary

Keep the core Kubernetes Security Policies work local. Use SandBase only for current external documentation, repository evidence, or explicitly requested model inference.

  1. Call sandbase_discover with a short capability query.
  2. Call sandbase_inspect for viable candidates and compare the live schema, coverage, limits, output, execution mode, and price.
  3. Prefer a dedicated tool or API the user already has. Send only the minimum necessary data.
  4. Before any paid call, show the endpoint, important arguments, current unit price, call count, and total estimate or uncertainty, then obtain confirmation.
  5. Use sandbase_account before an approved multi-call batch and call sandbase_run only with current schema-defined arguments.
  6. Poll asynchronous work with sandbase_run_get using the same run ID; never resubmit merely because it is pending.
  7. Use sandbase_runs only to recover status or reconcile observed cost.

If SandBase is unavailable, continue with local work and authorized sources when possible. Do not silently switch providers, fabricate external results, or claim a generation or retrieval succeeded.

Handoff

Provide the completed artifact or findings, concise reproduction steps, checks actually run, source or asset provenance, SandBase endpoint and run IDs when used, observed cost when available, and any follow-up that still requires user action.

正文来自原始仓库, 版权归作者所有,许可:MIT。 权利人认为有不妥,可申请下架。

原始仓库

作者的项目地址:https://github.com/sandbaseai/sandbase-skills

标签

没有标签

同类 Skill