원클릭으로
k8s-readonly-query
Answer a single Kubernetes question using readonly investigation and evidence-first output.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Answer a single Kubernetes question using readonly investigation and evidence-first output.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Guide non-technical contributors through making safe code changes to CityCatalyst. Use when someone without coding experience wants to update text, translations, colors, copy, or small UI details, and needs the agent to handle git, verification, and PR creation for them.
Create or update pull requests with repository-derived context and concise title/body standards. Use when creating, updating, automating, drafting, or polishing PRs, or preparing GitHub PR tool payloads.
Review pull requests for high-impact issues only. Use when the user asks to review a PR, especially requests like "do a review of PR <id>", "review PR <id>", or "PR review". Evaluate security, AGENTS.md alignment, repository structure, reuse over reimplementation, complexity, and regression risk. Return only actionable comments worth changing.
Run a read-only Kubernetes health audit against an explicit readonly cluster context such as `dev-cluster-readonly` or `prod-cluster-readonly`. Use when the user wants an automated cluster/pod health check, diagnosis of failing workloads, or a report of likely causes without making any write changes.
Generate structured Linear tickets (stories, tasks, bugs, spikes) with AI-enriched code references and acceptance criteria from a brief description. Use when the product team asks to create a ticket, write a story, draft a task, report a bug, or plan a spike for CityCatalyst.
Enrich an existing ticket with detailed technical breakdown, sub-tasks, code references, and estimation guidance. Use when an engineer asks to refine a ticket, break down a story, add technical details, estimate a task, or decompose work into sub-tasks.
| name | k8s-readonly-query |
| description | Answer a single Kubernetes question using readonly investigation and evidence-first output. |
Use this skill when the user asks a specific Kubernetes question about one resource, namespace, or hosting concern and wants a fast, targeted answer from an explicit readonly cluster context.
Answer one concrete question with the minimum readonly evidence needed, while keeping strict Kubernetes safety guardrails.
Readonly access is mandatory for this workflow. Do not use it with writable or admin contexts.
Examples:
api have?"worker-abc restarting?"city-app routing to the expected service?"The expected behavior is:
This skill is not for broad incident sweeps. Use k8s-health-audit for cluster-wide triage.
kubectl config use-context.kubectl exec, kubectl cp, or kubectl port-forward.apply, patch, edit, delete, scale, rollout restart, set image, annotate, or label.--context <name>.dev-cluster-readonly or prod-cluster-readonly.yes, fail instead of continuing.If the user asks for write actions, stop and request a separate workflow.
python .cursor/skills/k8s-readonly-query/scripts/k8s_readonly_query.py --context dev-cluster-readonly --question "what internal address does service api have?" --kind service --name api
python .cursor/skills/k8s-readonly-query/scripts/k8s_readonly_query.py --context dev-cluster-readonly --question "what internal address does service api have?" --kind service --name apipython .cursor/skills/k8s-readonly-query/scripts/k8s_readonly_query.py --context dev-cluster-readonly --question "why is pod worker-abc restarting?" --kind pod --name worker-abcpython .cursor/skills/k8s-readonly-query/scripts/k8s_readonly_query.py --context prod-cluster-readonly --question "is ingress city-app routing correctly?" --kind ingress --name city-apppython .cursor/skills/k8s-readonly-query/scripts/k8s_readonly_query.py --context dev-cluster-readonly --question "what is failing in this namespace right now?"Use these patterns as needed, always with --context and -n where applicable.
kubectl --context <ctx> -n <ns> get svc <name> -o widekubectl --context <ctx> -n <ns> get svc <name> -o jsonpath="{.spec.clusterIP}"kubectl --context <ctx> -n <ns> describe svc <name>kubectl --context <ctx> -n <ns> get endpoints <name> -o widekubectl --context <ctx> -n <ns> get pod <name> -o widekubectl --context <ctx> -n <ns> describe pod <name>kubectl --context <ctx> -n <ns> logs <name> --tail=200kubectl --context <ctx> -n <ns> logs <name> --previous --tail=200kubectl --context <ctx> -n <ns> get deploy <name> -o widekubectl --context <ctx> -n <ns> get rs -l <selector>kubectl --context <ctx> -n <ns> get pod -l <selector> -o widekubectl --context <ctx> -n <ns> get ingress <name> -o yamlkubectl --context <ctx> -n <ns> describe ingress <name>kubectl --context <ctx> -n <ns> get svc <backend-service> -o widekubectl --context <ctx> -n <ns> get pod <name> -o widekubectl --context <ctx> get node <node-name> -o widekubectl --context <ctx> describe node <node-name>kubectl --context <ctx> -n <ns> get events --sort-by=.lastTimestampkubectl --context <ctx> -n <ns> get events --field-selector involvedObject.name=<name>Return a compact report:
Be explicit when evidence is limited by RBAC, deleted resources, or missing historical logs.
dev-cluster-readonly and prod-cluster-readonly.references/oef-clusters.md if needed.kubectl checks only against readonly contexts for single questions.k8s-health-audit only when the goal is broad health triage.