شعار K8s Podspec Pro

K8s Podspec Pro

المجتمع
BretFisher
k8s-podspec-pro

Writes and reviews Kubernetes pod specs against Bret Fisher's production floor (github.com/BretFisher/podspec) for security context, user namespaces, service account tokens, probes, resources, and graceful shutdown. Use it when the user creates or edits a Deployment, StatefulSet, DaemonSet, Job, CronJob, or Pod, changes a Helm chart or Kustomize base that renders one, asks to review or harden a workload for production, or asks why a pod spec setting matters, even if they only say "deploy this to Kubernetes".

نظرة عامة

الناشرBretFisher
المستودعskills
اسم المهارةk8s-podspec-pro
النجوم
21
التفريعات
1
الملفات المرفقة
5
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 5

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها BretFisher على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي K8s Podspec Pro في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى الإضافات → المهارات.
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/BretFisher/skills/tree/main/plugins/devops/skills/k8s-podspec-pro
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات → المهارات → إضافة مهارة → من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/BretFisher/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/plugins/devops/skills/k8s-podspec-pro .claude/skills/k8s-podspec-pro
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل K8s Podspec Pro في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج K8s Podspec Pro تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط K8s Podspec Pro بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تترتب أي تكلفة على المهارة غير المستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Kubernetes pod spec floor

Every pod template you write or review meets the floor: the settings in pod.yaml, an exact copy of https://github.com/BretFisher/podspec/blob/main/pod.yaml. Read pod.yaml at the start of each task. Its field layout and its inline comments are the shape you copy, and the table below is the summary with the exceptions.

Working style

  1. Find the pod template. Deployment, StatefulSet, DaemonSet, ReplicaSet, and Job: spec.template.spec. CronJob: spec.jobTemplate.spec.template.spec. Pod: spec. A Job, CronJob, DaemonSet, StatefulSet, Helm chart, or Kustomize base → read workload-kinds.md first.
  2. Facts are yours to find: the Dockerfile USER and EXPOSE, the health endpoints in the code, the conventions of the repo's other manifests. Read them before you write a value.
  3. Values only the user knows are decisions: memory and CPU numbers, a UID when the image has no numeric USER, a probe path the code does not show, a livenessProbe, a grace period other than 600. Ask for them in one bundled question. When the user is unavailable or says to go ahead, write the pod.yaml value with a # TODO: comment and list it under ## Placeholders.
  4. An edit brings every pod template you touch up to the floor, because the user asked you into that file; other files keep their content.

The floor

FieldValueWhy, and the exception
imagean immutable tag (semver, git SHA, build ID) or a digestA moving tag (latest, stable, none) runs different code in two pods and breaks rollback. Keep the user's tag and add # TODO: pin to an immutable tag. Leave imagePullPolicy out: its defaults are correct.
ports[].containerPortthe app's port, written in the specMany images have no EXPOSE. A batch container with no server gets no port.
readinessProbeon every long-running container; exec when there is no portA rolling update and a Service wait for it. Jobs and CronJobs have neither, so they get no readinessProbe.
livenessProbeonly for an app known to hangA bad one restarts healthy pods. It never checks a dependency, because then a database outage restarts every pod.
resourcesrequests.memory = limits.memory, requests.cpu set, no limits.cpuMemory cannot be throttled, so the limit equals what the scheduler reserves. A CPU limit throttles on an idle node. This gives Burstable QoS; Guaranteed needs CPU and memory limits equal to requests on every container, so add limits.cpu = requests.cpu only when the user needs Guaranteed (static CPU manager). The pod.yaml numbers are placeholders.
container securityContextallowPrivilegeEscalation: false, privileged: falseBlocks setuid gain; a privileged container is host root.
pod securityContext.seccompProfiletype: RuntimeDefaultKubernetes runs Unconfined unless asked.
pod securityContext userrunAsNonRoot: true; runAsUser and runAsGroup: 1001 unless the image sets a numeric non-root USERA named USER (USER node) with runAsNonRoot fails with CreateContainerConfigError; set runAsUser or tell the user to make USER numeric. Keep UIDs below 65536.
hostUsersfalseContainer root maps to an unused host UID. GA in 1.36, on by default since 1.33. A pod with hostNetwork, hostPID, or hostIPC keeps the host user namespace: leave hostUsers out and say why. Name the node requirements in the hand-back.
automountServiceAccountTokenfalseMost apps never call the API. An app that does (operator, controller, CI runner) gets true, its own serviceAccountName, and minimal RBAC.
enableServiceLinksfalseService env vars clash with the app's own. Tell the user to search the app for _SERVICE_HOST, _SERVICE_PORT, and _PORT_ and use DNS names.
terminationGracePeriodSeconds600The 30s default cuts long polls, uploads, and queue drains. It is a maximum: an app that exits early does not wait.
appArmorProfileunset, as the commented block in pod.yamlSetting it stops pods on SELinux nodes. Uncomment it only when every node runs AppArmor; Unconfined is a finding.

The node requirements, the token alternatives, and the full reasons are in why.md: read it when the user asks why, or when an exception in the table applies.

Teaching comments

A manifest you write keeps the pod.yaml style: one short inline # comment on each floor field that says why it is there. The comments are how the user's team learns the floor, so they stay in the output.

Review

When the user asks you to review, audit, or check a manifest for production, run scripts/floor-check.py on it (or on helm template / kustomize build output piped to -) and write the report under these three ## headings, in this order:

  • ## Meets the floor: the floor fields already set.
  • ## Missing or wrong: one entry per finding with the field, its location, the fixed YAML, and one sentence on why. Cite the script's rule id. Add what the script cannot see: a probe that checks a dependency, numbers that look copied from pod.yaml.
  • ## Suggested: readOnlyRootFilesystem: true, capabilities.drop: [ALL], a startupProbe for a slow boot, a PodDisruptionBudget, a NetworkPolicy. One line each.

Change the manifest only when the user asks for fixes, because a review is a report.

Hand-back

End every create or edit task with these three ## sections, in this order:

  • ## Defaults applied: a | Default | Why here | table, one row per floor field you set.
  • ## Questions: the decisions from working style step 3 that are still open, numbered. Write none when there are none.
  • ## Placeholders: every # TODO: value with its field. Write none when there are none.

Validate

Run scripts/floor-check.py <file>... on every manifest you wrote or edited. It prints one line per finding with a rule id and ends with floor-check: clean or the finding count. Fix each finding, or keep it and say why in the hand-back (a CPU limit for Guaranteed QoS, a token for an operator). When kubeconform is installed, also run kubeconform -strict -summary <file> for schema errors. A tool that is absent: say so by name and offer the brew install command.

For fields newer than your training data, the k8s-catch-up skill has one file per feature.

Done when

  • floor-check.py is clean on every manifest you wrote or edited, or each remaining rule id is named in the hand-back with its reason
  • Every floor field in the output has its teaching comment
  • A review has the three headings and changes no file the user did not ask to change
  • A create or edit ends with ## Defaults applied, ## Questions, and ## Placeholders

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة أثناء تحميل المهارة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي K8s Podspec Pro؟

Writes and reviews Kubernetes pod specs against Bret Fisher's production floor (github.com/BretFisher/podspec) for security context, user namespaces, service account tokens, probes, resources, and graceful shutdown. Use it when the user creates or edits a Deployment, StatefulSet, DaemonSet, Job, CronJob, or Pod, changes a Helm chart or Kustomize base that renders one, asks to review or harden a workload for production, or asks why a pod spec setting matters, even if they only say "deploy this to Kubernetes".

لماذا تستخدم K8s Podspec Pro على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة K8s Podspec Pro عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت K8s Podspec Pro في TypingMind؟

افتح الإضافات → المهارات → التثبيت من GitHub في TypingMind والصق https://github.com/BretFisher/skills/tree/main/plugins/devops/skills/k8s-podspec-pro. يقرأ TypingMind ملف SKILL.md الخاص بها، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام K8s Podspec Pro؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع K8s Podspec Pro؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام K8s Podspec Pro معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي K8s Podspec Pro مجانية؟

نعم. نشرها BretFisher على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇