基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/ffsshhttiikk/opencode-agents-skills --skill paas命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | paas |
| description | Platform as a Service cloud computing |
| license | MIT |
| compatibility | opencode |
| metadata | {"audience":"developer, devops-engineer","category":"devops"} |
# app.json - Heroku Review Apps
{
"name": "myapp",
"buildpacks": [
{
"url": "heroku/python"
}
],
"environments": {
"review": {
"addons": ["heroku-postgresql:hobby-dev"],
"environment": {
"LOG_LEVEL": "DEBUG"
},
"formation": {
"web": {
"quantity": 1,
"size": "hobby"
}
}
},
"production": {
"addons": ["heroku-postgresql:standard-0"],
"formation": {
"web": {
"quantity": 2,
"size": "performance-m"
}
}
}
}
}
# .ebextensions/python.config
option_settings:
aws:elasticbeanstalk:container:python:
WSGIPath: application:application
aws:elasticbeanstalk:environment:proxy:staticfiles:
/static: static
aws:autoscaling:asg:
MinSize: 2
MaxSize: 10
aws:autoscaling:trigger:
MeasureName: CPUUtilization
UpperThreshold: 80
LowerThreshold: 20
# azure-pipelines.yml
trigger: main
pool:
vmImage: 'ubuntu-latest'
variables:
azureSubscription: 'Azure-Service-Connection'
appName: 'myapp'
runtime: 'python'
version: '3.11'
stages:
- stage: Build
jobs:
- job: BuildJob
steps:
- task: UsePythonVersion@0
- script: |
pip install -r requirements.txt
pip install pytest
pytest tests/
- task: ArchiveFiles@2
inputs:
rootFolder: '$(System.DefaultWorkingDirectory)'
archiveFile: '$(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip'
- publish: $(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip
artifact: drop
- stage: Deploy
jobs:
- deployment: DeployJob
environment:
# app.yaml
runtime: python311
env: standard
instance_class: F2
automatic_scaling:
min_instances: 1
max_instances: 10
target_cpu_utilization: 0.65
min_latency: '500ms'
inbound_services:
- warmup
liveness_check:
path: /_ah/health
check_interval_seconds: 30
timeout_seconds: 4
failure_threshold: 2
success_threshold: 2
readiness_check:
path: /_ah/ready
check_interval_seconds: 5
timeout_seconds: 4
failure_threshold: 2
success_threshold: 1
env_variables:
LOG_LEVEL: 'INFO'
DATABASE_URL: 'postgres://...'
beta_settings:
cloud_sql_instances: 'project:region:instance'
# cloudrun.yaml
apiVersion: serving.knative.dev/v1
kind: Service
metadata:
name: myapp
annotations:
run.googleapis.com/launch-stage: BETA
spec:
template:
metadata:
annotations:
autoscaling.knative.dev/minScale: "1"
autoscaling.knative.dev/maxScale: "10"
spec:
containers:
- image: gcr.io/project/myapp:latest
ports:
- containerPort: 8080
resources:
limits:
cpu: "1000m"
memory: "512Mi"
env:
- name: PORT
value: "8080"
startupProbe:
httpGet:
path: /_ah/health
initialDelaySeconds: 0
periodSeconds: 10
timeoutSeconds: 1
failureThreshold: 3
| Platform | Languages | Database | Scaling | Best For |
|---|---|---|---|---|
| Heroku | All | Add-ons | Auto | Quick deployment |
| AWS EB | All | RDS, ElastiCache | Auto | AWS integration |
| Azure App Service | .NET, Node, Python | SQL, Cosmos | Auto | Enterprise .NET |
| Cloud Run | All | Cloud SQL | Auto | Containers |
| Vercel | Node, Go, Python | External | Auto | Frontend/JAMstack |