用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/ffsshhttiikk/opencode-agents-skills --skill orchestration命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | orchestration |
| description | Workload orchestration and automation |
| license | MIT |
| compatibility | opencode |
| metadata | {"audience":"devops-engineer, platform-engineer","category":"devops"} |
apiVersion: batch/v1
kind: Job
metadata:
name: data-processor
spec:
ttlSecondsAfterFinished: 100
backoffLimit: 3
template:
spec:
restartPolicy: OnFailure
containers:
- name: processor
image: data-processor:latest
command: ["./process.sh"]
env:
- name: BATCH_SIZE
value: "1000"
resources:
requests:
memory: "256Mi"
cpu: "250m"
limits:
memory: "512Mi"
cpu: "500m"
---
apiVersion: batch/v1
kind: CronJob
metadata:
name: daily-backup
spec:
schedule: "0 2 * * *"
successfulJobsHistoryLimit: 3
failedJobsHistoryLimit: 1
concurrencyPolicy: Forbid
jobTemplate:
spec:
template:
spec:
restartPolicy: OnFailure
containers:
- name: backup
image: backup-tool:latest
command: ["./backup.sh"]
env:
- name: BACKUP_PATH
value: "/data"
job "data-processor" {
datacenters = ["dc1"]
type = "batch"
group "processor" {
count = 10
task "process" {
driver = "docker"
config {
image = "processor:latest"
args = ["--batch-size", "1000"]
}
resources {
cpu = 500
memory = 512
}
constraint {
attribute = "${attr.platform.arch}"
value = "amd64"
}
service {
name = "processor"
port = "http"
check {
type = "http"
path = "/health"
interval = "10s"
timeout = "5s"
}
}
}
}
}
version: '3.8'
services:
app:
image: myapp:latest
deploy:
replicas: 3
update_config:
parallelism: 1
delay: 10s
failure_action: rollback
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
resources:
limits:
cpus: '0.5'
memory: 512M
networks:
- backend
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
interval: 30s
timeout: 10s
retries: 3
networks:
backend:
driver: overlay
# Airflow DAG example
from airflow import DAG
from airflow.operators.python import PythonOperator
from datetime import datetime, timedelta
default_args = {
'owner': 'dataeng',
'depends_on_past': False,
'start_date': datetime(2024, 1, 1),
'retries': 3,
'retry_delay': timedelta(minutes=5),
}
dag = DAG(
'etl_pipeline',
default_args=default_args,
schedule_interval='@daily',
)
def extract():
pass
def transform():
pass
def load():
pass
t1 = PythonOperator(
task_id='extract',
python_callable=extract,
dag=dag,
)
t2 = PythonOperator(
task_id='transform',
python_callable=transform,
dag=dag,
)
t3 = PythonOperator(
task_id='load',
python_callable=load,
dag=dag,
)
t1 >> t2 >> t3
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
name: ml-pipeline
spec:
entrypoint: ml-training
templates:
- name: ml-training
dag:
tasks:
- name: preprocess
template: preprocess
- name: train
template: train
dependencies: [preprocess]
- name: evaluate
template: evaluate
dependencies: [train]
- name: deploy
template: deploy
dependencies: [evaluate]
- name: preprocess
container:
image: ml-preprocess:latest
command: [python, preprocess.py]
- name: train
[, ]
[, ]
[, ]