跳到主内容
智客 ZICQ

技能库 智客分类:运维与云 devops

Devops

Kubernetes、CI/CD、Bash脚本、Ansible和云基础设施的综合DevOps工程实践.

701 安装量

官方网址:skills.sh

技能介绍

先看中文介绍;官方 description 原文单独保留,不改写 SKILL.md。

做什么

Kubernetes、CI/CD、Bash脚本、Ansible和云基础设施的综合DevOps工程实践.

何时用

官方 description 未单独写出 Use when。按规范,代理会在用户任务与这段 description 的关键词匹配时激活本技能。

代理如何加载

按 Agent Skills 渐进披露:启动时只加载 name 与 description(约 100 token);任务匹配后才读入整份 SKILL.md 正文;scripts/、references/、assets/ 仅在需要时再读。 本文件正文结构:DevOps Engineering、Core Principles、Naming Conventions、Bash Scripting、Ansible Guidelines、Kubernetes Practices。

文件分析

文件分析:这是一份仅含 SKILL.md 的指令型技能,代理激活后整份正文进入上下文。

官方 description(原文)

Comprehensive DevOps engineering practices for Kubernetes, CI/CD, Bash scripting, Ansible, and cloud infrastructure.

DevOps EngineeringCore PrinciplesNaming ConventionsBash ScriptingAnsible GuidelinesKubernetes PracticesPython StandardsCI/CD PrinciplesSystem Design

来源分类:skills.sh agent-skill

SKILL.md 与 Agent 调用

官方规范 ↗
name
devops
description
Comprehensive DevOps engineering practices for Kubernetes, CI/CD, Bash scripting, Ansible, and cloud infrastructure.
  1. 发现技能客户端向 Agent 提供名称与描述目录。
  2. 匹配与调用用户指定或任务匹配后,载入 SKILL.md 指令。
  3. 按需加载按步骤读取参考文档、使用脚本与素材。

具体调用语法与可用工具以目标 Agent 客户端为准。 查看调用机制说明 ↗

安装这个技能

Skills CLI ↗

先选择目标 Agent 和安装范围,保留技能包的附属文件,安装后检查客户端能否发现该技能。

交给 Agent 安装

复制安装指令给支持 Agent Skills 的代理,确认其中的目标目录与客户端匹配。

把 Agent Skill「devops」安装到我的项目:SKILL.md 原文与官方 description 见 https://zicq.com/zh/skills/skl-9673a3228339bf4d-Devops.html
请存为 .cursor/skills/devops/SKILL.md 或 .claude/skills/devops/SKILL.md,frontmatter 的 name 与 description 保持原样,不要改写。

GitHub 完整包 ↗

终端安装 · Skills CLI

需要 Node.js 与 npx。先查看仓库技能列表,确认实际名称。

npx skills add 'https://github.com/mindrally/skills' --list

npx skills add 'https://github.com/mindrally/skills' --skill 'devops'

CLI 会交互选择目标 Agent,默认安装到项目;用户级安装使用 -g。先通过查看命令核对仓库内容,再用 npx skills list 检查已安装技能。

阅读排版

name: devops description: Comprehensive DevOps engineering practices for Kubernetes, CI/CD, Bash scripting, Ansible, and cloud infrastructure.

DevOps Engineering

You are a Senior DevOps Engineer with expertise in Kubernetes, CI/CD pipelines, Python, Bash scripting, Ansible, and cloud services.

Core Principles

  • Use English exclusively for code, documentation, and comments
  • Prioritize modularity, reusability, and scalability
  • Avoid hard-coded values; use environment variables or configuration files
  • Apply Infrastructure-as-Code principles
  • Implement least privilege access controls

Naming Conventions

  • camelCase for variables and functions
  • PascalCase for classes
  • snake_case for files and directories
  • UPPER_CASE for environment variables

Bash Scripting

  • Use descriptive script and variable names
  • Write modular scripts with functions
  • Validate inputs using getopts or manual validation
  • Ensure portability by using POSIX-compliant syntax
  • Lint scripts with shellcheck
  • Separate stdout and stderr in log files
  • Use trap for error handling and cleanup
  • Automate cron jobs securely with key-based authentication

Ansible Guidelines

  • Follow idempotent design principles for all playbooks
  • Organize via group_vars, host_vars, and roles
  • Validate playbooks with ansible-lint
  • Use handlers for conditional service restarts
  • Implement Ansible Vault for sensitive data
  • Use dynamic inventories for cloud environments
  • Apply tags for flexible execution
  • Leverage Jinja2 templates for configuration

Kubernetes Practices

  • Use Helm charts or Kustomize for deployments
  • Follow GitOps principles for declarative state management
  • Implement workload identities for pod-to-service security
  • Prefer StatefulSets for persistent applications
  • Monitor with Prometheus, Grafana, and Falco

Python Standards

  • Write Pythonic code adhering to PEP 8 standards
  • Use type hints throughout
  • Follow DRY and KISS principles
  • Implement pytest for unit testing

CI/CD Principles

  • Automate repetitive tasks
  • Create modular, reusable pipelines
  • Use containerized applications with secure registries
  • Manage secrets via vault solutions
  • Implement blue-green or canary deployments

System Design

  • Design for high availability and fault tolerance
  • Use event-driven architecture where appropriate
  • Analyze bottlenecks and scale resources effectively
  • Secure systems with TLS, IAM roles, and firewalls

相关技能

运维与云

Docker Essentials

用于容器管理,图像操作,调试的基本道克命令和工作流程.

运维与云

Find Skills

从开放的代理技能生态系统中发现并安装技能. 使用时:(1)用户问"我如何做X",X可能拥有现有技能,(2)用户说"为X找到技能"或"是否为X有技能",(3)用户问"你能否做X",X是专门能力,(4)用户想扩展代理能力,(5)用户想搜索工具,模板,或工作流程,(6)用户提到他们希望…

运维与云

Azure Diagnostics

Azure上使用AppLens,AzureMonitor,资源健康,安全分型的调试Azure生产问题. 当:调试生产问题,故障解答应用服务,应用服务高CPU,应用服务部署失败,故障解答容器应用,故障解答功能,故障解答AKS,VM RDP,Linux SSH,VM黑屏幕,无法连接到…

运维与云

Azure Prepare

准备 azd 用于部署的Azure项目:为Azure开发者CLI(azd)工作流程生成azure.yaml,基础设施(Bicep/Terraform)和多克文件. 仅当用户明确想要使用 azd 作为部署工具时使用, 或项目已经有一个 azure 。 雅姆尔文件。 不使用: 非az…