用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/ffsshhttiikk/opencode-agents-skills --skill cloud-security命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | cloud-security |
| description | Cloud security best practices and implementation |
| license | MIT |
| compatibility | opencode |
| metadata | {"audience":"security-engineer, devops-engineer","category":"security"} |
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:GetObject",
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::my-bucket",
"arn:aws:s3:::my-bucket/*"
],
"Condition": {
"IpAddress": {
"aws:SourceIp": "10.0.0.0/8"
}
}
},
{
"Effect": "Deny",
"Action": "s3:*",
"NotResource": "arn:aws:s3:::my-bucket/*"
}
]
}
# AWS Security Group
resource "aws_security_group" "web" {
name = "web-sg"
description = "Security group for web servers"
vpc_id = aws_vpc.main.id
ingress {
description = "HTTPS"
from_port = 443
to_port = 443
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
}
egress {
from_port = 0
to_port = 0
protocol = "-1"
cidr_blocks = ["0.0.0.0/0"]
}
}
# Kubernetes secrets encryption
apiVersion: v1
kind: Secret
metadata:
name: encrypted-secret
type: Opaque
data: # Already base64 encoded
username: dmFsdWU=
encryption:
- providers:
- aescbc:
keys:
- name: key1
secret: <base64-32-byte-key>
resources:
- secrets
# Trivy in CI/CD
trivy fs --severity HIGH,CRITICAL .
trivy image --severity HIGH,CRITICAL myimage:latest
trivy db --update
trivy kubernetes cluster --report summary
┌─────────────────────────────────────────┐
│ User │
└──────────────┬──────────────────────────┘
│
┌──────────────▼──────────────────────────┐
│ Identity Provider │
│ (OAuth2/OIDC + MFA) │
└──────────────┬──────────────────────────┘
│
┌──────────────▼──────────────────────────┐
│ Policy Enforcement Point │
│ (API Gateway / Service Mesh) │
└──────────────┬──────────────────────────┘
│
┌──────────────▼──────────────────────────┐
│ Workloads (Services) │
│ (Verify identity, encrypt, log) │
└─────────────────────────────────────────┘