Communitygithub.com

NeverSight/learn-skills.dev

用于设计多租户OCI环境、搭建Landing Zone Terraform栈、强制实施安全区域(Security Zones)或规划Hub-Spoke网络拓扑。涵盖OCI特有的层级结构、多租户IAM决策树、安全区域自动化、CIS基础合规性和DRG路由。

learn-skills.dev 是什么?

该技能提供了一套基于Oracle云基础设施(OCI)最佳实践的专家级Landing Zone架构指南。它详细阐述了如何构建层级化的分区结构、实施Hub-Spoke网络拓扑以及通过安全区域(Security Zones)自动执行CIS基础合规策略,从而帮助用户避免常见的配置陷阱。技能文档中包含了多租户IAM决策树,指导用户根据隔离需求选择租户级分区或共享分区加标签的方案。此外,它还提供了安全区域自动化检查清单、标记策略建议以及多个参考文件的调用指南,适用于从零开始设计Landing Zone、进行合规审计或批量修改安全区域等场景。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/NeverSight/learn-skills.dev/tree/HEAD/data/skills-md/acedergren/agentic-tools/landing-zones

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

OCI Landing Zones - 专家架构

切勿执行以下操作

切勿创建扁平的分区结构

错误示例:
tenancy/ app1-dev, app1-test, app1-prod, app2-dev ...

问题:
- 无法对所有开发环境应用单一策略
- 无法按团队委托管理
- 成本报告结构混乱
- 策略重复度随团队数量呈O(n)增长

正确示例 - 层级结构:
tenancy/
  Network/ (Hub, Spokes)
  Security/ (Vault, Logging)
  Workloads/
    App1/ (Dev, Test, Prod)
    App2/ (Dev, Test, Prod)
  Shared-Services/ (Identity, Monitoring)

策略继承沿树形结构向下流动。在 Workloads/ 层级的一条策略适用于所有工作负载。

切勿在多个VCN中重复使用 10.0.0.0/16

错误示例 - CIDR全相同:
Dev VCN:  10.0.0.0/16
Test VCN: 10.0.0.0/16   # 无法与Dev对等
Prod VCN: 10.0.0.0/16   # 无法与两者对等

VCN CIDR 不可更改。错误的CIDR = 完全重建 + 停机。

正确示例 - 不重叠分配:
Hub VCN:  10.0.0.0/16
Dev VCN:  10.10.0.0/16
Test VCN: 10.20.0.0/16
Prod VCN: 10.30.0.0/16

切勿对生产环境分区跳过安全区域(Security Zones)

# 错误:创建无防护栏的分区
oci iam compartment create --compartment-id $PARENT --name "Prod"
# 结果:任何人可以创建公网IP、未加密的存储桶等

# 正确:安全区域在资源创建前强制实施策略
oci cloud-guard security-zone-recipe create \
  --compartment-id $TENANCY_ID \
  --display-name "CIS-Prod-Recipe" \
  --security-policies '["deny-public-ip","deny-public-bucket"]'

oci cloud-guard security-zone create \
  --compartment-id $PROD_COMPARTMENT_ID \
  --display-name "Prod-Security-Zone" \
  --security-zone-recipe-id $RECIPE_ID

安全区域在资源创建之前防止违规。审计仅在事后发现问题。

切勿将工作负载资源放入根分区

根分区仅用于租户级别的IAM(用户、组、策略)。
根分区中的资源会绕过治理,无法委托管理,违反CIS OCI Foundations基准。

根分区应仅包含:
- 顶级子分区
- 租户级IAM策略
无其他内容。

切勿将开发和生产资源混合到同一分区

拥有开发访问权限的开发者可能意外删除生产资源。无法为不同环境设置不同的备份策略、标记策略或预算告警。

切勿跳过标记策略

# 无标签:"oci.compute.instance: $5,234/月" — 属于哪个团队?哪个项目?
# 无法反算成本,无法识别浪费。

# 正确:创建带强制默认值的标签命名空间
oci iam tag-namespace create --compartment-id $TENANCY_ID --name "Organization"
# 创建:CostCenter, Environment, Owner 标签
# 在分区级别应用标签默认值(自动应用到所有资源)
oci iam tag-default create \
  --compartment-id $WORKLOAD_COMPARTMENT_ID \
  --tag-definition-id $COSTCENTER_TAG_ID \
  --value '${iam.principal.name}'

切勿允许Spoke VCN直接进行互联网出站

错误:Spoke子网 → Internet Gateway
- 数据泄露不可检测
- 每Spoke出站成本 $3k-5k/月(未计量)
- 无DPI或出站过滤

正确 - 中心辐射型并集中控制:
Spoke → DRG → Hub VCN → Network Firewall → NAT Gateway → Internet
- 单一出站点并具有防火墙策略
- 通过VCN Flow Logs获得完全可视性

切勿对需要SLA的生产工作负载使用单区域

区域故障 = 完全停机。无DR时无法自动故障转移。

多区域模式:
主区域:us-ashburn-1 + 灾难恢复区域:us-phoenix-1
- 数据库的Autonomous Data Guard(接近零RPO)
- Traffic Manager用于DNS故障转移(RTO约15分钟)
- Object Storage跨区域复制
- 在DR区域镜像分区结构

多租户IAM决策树

工作负载是单租户?
│
├─ 是 → 以环境为中心的模型
│        分区:Network, Shared-Services, Workloads/App/Dev-Test-Prod
│        IAM:针对每个环境的组(DevAdmins, ProdOps),作用域限定到环境分区
│
└─ 否(多租户SaaS)?
    │
    ├─ 需要严格的租户隔离?
    │  ├─ 是 → 每个租户一个分区:Org/TenantA, Org/TenantB
    │  │        每个租户VCN的动态组用于实例主体认证
    │  │        策略:`allow dynamic-group TenantA-VMs to manage all-resources
    │  │                  in compartment TenantA`
    │  └─ 否 → 共享分区 + 按租户标记
    │           (设置更快,共享爆炸半径)
    │
    ├─ 每个租户有多个环境?
    │  └─ 嵌套:TenantA/Dev, TenantA/Test, TenantA/Prod
    │           策略自动沿树形向下继承
    │
    └─ 集中式共享服务?
         └─ Shared-Services分区(Logging, Monitoring, Identity)
            授予租户级运维组最低权限读取访问

多租户IAM策略模板:

Allow group TenantA-Admins to manage all-resources in compartment TenantA
Allow dynamic-group TenantA-VCN to manage virtual-network-family in compartment TenantA
Allow group Shared-Network to use virtual-network-family in compartment Shared-Services

防护栏:

  • 绝不在根分区授予租户特定策略;将作用域限定到租户分区层级
  • 在添加新租户前,要求DRG路由审批流程
  • 参考 iam-identity-management 技能了解细粒度策略动词语法

安全区域部署检查清单

  1. 盘点分区 — 按标签 Environment=Prod 过滤导出JSON
  2. 创建/更新配方 — 克隆Oracle CIS配方,追加自定义策略(禁止公网负载均衡器,要求CMEK)。请参阅 references/security-zone-automation.md
  3. 通过CLI/Terraform应用 — 循环处理分区或使用Terraform模块
  4. 每晚检测漂移 — oci cloud-guard security-zone list-problems;对 PROBLEM 状态发出警报
  5. 回滚流程 — 仅在获得CISO批准后移除区域;仅在移除所有区域后删除配方

完整脚本位于 references/security-zone-automation.md。对于批量安全区域更改,视为强制要求。


参考文件

在以下情况加载 references/landing-zone-patterns.md:

  • 选择分区层级模式(以工作负载为中心 vs 以环境为中心 vs 以租户为中心)
  • 设计带有DRG的中心辐射型网络拓扑
  • 设置标记策略和跨分区成本分配

在以下情况加载 references/landing-zone-cli.md:

  • 通过CLI创建分区层级
  • 批量配置安全区域和Cloud Guard
  • 设置标签默认值和标签命名空间
  • 创建带成本追踪的预算

在以下情况加载 references/security-zone-automation.md(批量更改时强制要求):

  • 在多个分区中部署或更新安全区域配方
  • 修复漂移(分区失去安全区域强制实施)
  • 编写Cloud Guard配方的Terraform自动化

在以下情况加载 references/oci-well-architected-framework.md:

  • 从头开始新的Landing Zone设计
  • 准备架构审查或合规审计
  • 比较核心Landing Zone与运营实体Landing Zone
  • 需要Oracle官方关于所有五个支柱(安全性、可靠性、性能、成本、运维)的指导

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

NeverSight/learn-skills.dev

Use when generating or modifying Remotion video code, creating demo videos, or working with the demo-video/ directory

NeverSight/learn-skills.dev

Create AI avatar and talking head videos via inference.sh CLI. Recommended: P-Video-Avatar (fastest, cheapest, built-in TTS). Also: OmniHuman, Fabric, PixVerse. Audio: Inworld TTS-2 (100+ languages, emotion steering for characters), ElevenLabs, Kokoro. Capabilities: audio-driven avatars, text-to-avatar, lipsync videos, talking head generation, virtual presenters, UGC content. Use for: AI presenters, explainer videos, virtual influencers, dubbing, marketing videos, UGC ads, gaming avatars, NPC dialogue. Triggers: ai avatar, talking head, lipsync, avatar video, virtual presenter, ai spokesperson, audio driven video, heygen alternative, synthesia alternative, talking avatar, lip sync, video avatar, ai presenter, digital human, ugc, ugc video, ugc ad, avatar ugc

NeverSight/learn-skills.dev

Create AI marketing videos for ads, promos, product launches, and brand content. Models: Veo, Seedance, Wan, FLUX for visuals, Kokoro for voiceover. Types: product demos, testimonials, explainers, social ads, brand videos. Use for: Facebook ads, YouTube ads, product launches, brand awareness. Triggers: marketing video, ad video, promo video, commercial, brand video, product video, explainer video, ad creative, video ad, facebook ad video, youtube ad, instagram ad, tiktok ad, promotional video, launch video

NeverSight/learn-skills.dev

Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0, HappyHorse 1.0, Wan 2.5, Grok Imagine Video, OmniHuman, Fabric, HunyuanVideo. Capabilities: text-to-video, image-to-video, reference-to-video, video editing, lipsync, avatar animation, video upscaling, foley sound. Use for: social media videos, marketing content, explainer videos, product demos, AI avatars. Triggers: video generation, ai video, text to video, image to video, veo, animate image, video from image, ai animation, video generator, generate video, t2v, i2v, ai video maker, create video with ai, runway alternative, pika alternative, sora alternative, kling alternative, seedance, happyhorse

NeverSight/learn-skills.dev

ElevenLabs automatic dubbing - translate and dub audio/video into 29 languages while preserving speaker voice via inference.sh CLI. Capabilities: auto speaker detection, voice-preserving translation, video dubbing, audio localization. Use for: content localization, video translation, multilingual content, international distribution. Triggers: dubbing, dub video, translate audio, video translation, audio translation, localize content, elevenlabs dubbing, eleven labs dub, multilingual dub, voice translation, auto dub, language dub, content localization

NeverSight/learn-skills.dev

Explainer video production guide: scripting, voiceover, visuals, and assembly. Covers script formulas, pacing rules, scene planning, and multi-tool pipelines. Use for: product demos, how-it-works videos, onboarding videos, social explainers. Triggers: explainer video, how to make explainer, product video, demo video, video production, video script, animated explainer, product demo video, tutorial video, onboarding video, walkthrough video, video pipeline

NeverSight/learn-skills.dev

Still-to-video conversion guide: model selection, motion prompting, and camera movement. Covers Wan 2.5 i2v, Seedance, Fabric, Grok Video with when to use each. Use for: animating images, creating video from stills, adding motion, product animations. Triggers: image to video, i2v, animate image, still to video, add motion to image, image animation, photo to video, animate still, wan i2v, image2video, bring image to life, animate photo, motion from image

NeverSight/learn-skills.dev

Generate talking head avatar videos with Pruna P-Video-Avatar via inference.sh CLI. Turn a portrait image into a realistic speaking video with built-in TTS. 18x faster and 6x cheaper than competitors. Models: P-Video-Avatar, P-Image (for portrait generation). Capabilities: text-to-avatar, audio-driven avatars, 30 voices, 10 languages, 720p/1080p, built-in TTS, dynamic backgrounds, full-body control. Use for: AI presenters, product demos, explainer videos, virtual influencers, marketing, education, multilingual content, UGC, gaming avatars. Triggers: avatar video, talking head, ai avatar, p-video-avatar, pruna avatar, video avatar, ai presenter, digital human, virtual presenter, lipsync, talking avatar, ai spokesperson, heygen alternative, synthesia alternative, veed alternative, fabric alternative, omnihuman alternative

NeverSight/learn-skills.dev

Generate videos with Pruna P-Video and WAN models via inference.sh CLI. Models: P-Video, WAN-T2V, WAN-I2V. Capabilities: text-to-video, image-to-video, audio support, 720p/1080p, fast inference. Pruna optimizes models for speed without quality loss. Triggers: pruna video, p-video, pruna ai video, fast video generation, optimized video, wan t2v, wan i2v, economic video generation, cheap video generation, pruna text to video, pruna image to video

NeverSight/learn-skills.dev

Render videos from React/Remotion component code via inference.sh. Pass TSX code, get MP4. Supports all Remotion APIs: useCurrentFrame, useVideoConfig, spring, interpolate, AbsoluteFill, Sequence. Configurable resolution, FPS, duration, codec. Use for: programmatic video generation, animated graphics, motion design, data-driven videos, React animations to video. Triggers: remotion, render video from code, tsx to video, react video, programmatic video, remotion render, code to video, animated video, motion graphics code, react animation video

NeverSight/learn-skills.dev

Video ad creation with exact platform-specific specs for TikTok, Instagram, YouTube, Facebook, LinkedIn. Covers dimensions, duration limits, AIDA framework, and caption requirements. Use for: video ads, social media ads, paid media creative, video marketing, ad production. Triggers: video ad, social media ad, tiktok ad, instagram ad, youtube ad, facebook ad, linkedin ad, video creative, ad specs, paid media, video marketing, ad production, reels ad, stories ad, pre roll, bumper ad

NeverSight/learn-skills.dev

Best practices and techniques for writing effective AI video generation prompts. Covers: Veo, Seedance, Wan, Grok, Kling, Runway, Pika, Sora prompting strategies. Learn: shot types, camera movements, lighting, pacing, style keywords, negative prompts. Use for: improving video quality, getting consistent results, professional video prompts. Triggers: video prompt, how to prompt video, veo prompts, video generation tips, better ai video, video prompt engineering, video prompt guide, video prompt template, ai video tips, video prompt best practices, video prompt examples, cinematography prompts

NeverSight/learn-skills.dev

YouTube thumbnail design with specific dimensions, contrast rules, and mobile preview optimization. Covers safe zones, text placement, face expression psychology, and A/B testing. Use for: YouTube thumbnails, video cover images, click-through optimization. Triggers: youtube thumbnail, thumbnail design, video thumbnail, click through rate, ctr optimization, youtube cover, video cover image, thumbnail maker, thumbnail tips, youtube design, video preview image

NeverSight/learn-skills.dev

Landing page conversion optimization with layout rules, hero section design, and CTA psychology. Covers above-the-fold formula, social proof placement, mobile design, and F-pattern reading. Use for: startup landing pages, product pages, SaaS marketing, conversion optimization. Triggers: landing page, hero section, above the fold, conversion optimization, landing page design, cta button, hero image, landing page layout, saas landing page, product page design, conversion rate, landing page best practices

NeverSight/learn-skills.dev

Configure and use the hosted YouTube Data MCP end-to-end with minimal user input. Use when users want the agent to verify Node.js and `npx`, configure MCP server config (Windows/macOS, Cursor/Codex/OpenClaw/OpenCode), request API key at setup time, run post-install capability discovery (`tools/list` and `get_patch_notes`), and then strongly recommend helper skill and Python setup for full local document and spreadsheet workflows.

NeverSight/learn-skills.dev

Creates 120fps GPU-accelerated animations with Motion.dev (Framer Motion successor) for React, Next.js, Svelte, and Astro projects. Use when user requests animation, motion, scroll effects, parallax, hero animations, gestures, drag interactions, spring physics, whileHover effects, whileInView animations, animated UI, micro-interactions, page transitions, or layout animations. Generates production TypeScript/JSX code with accessibility (prefers-reduced-motion) and performance validation (≥60fps). Supports entrance animations, gesture interactions (hover/tap/drag), scroll-based reveals, and layout transitions using spring physics and natural timing. Do NOT use for CSS-only transitions (use native CSS), static sites without JavaScript, Vue animations (use motion-v variant instead), or SVG/Canvas complex animations (GSAP better suited).

NeverSight/learn-skills.dev

Static artifact craft skill for self-contained HTML/CSS/JS documents: docs, sheets, dashboards, explainers, slides, tools, and landing pages. Use when the user asks for a durable, openable, shareable web deliverable they'll keep or hand off — a report, a dashboard, a slide deck, a data table, a page. Local folder first, temporary public link via tunnel (localhost.run), optional durable publish to Surge, GitHub Pages, or Cloudflare. Not for quick look renders, inline snippets, or throwaway scratch. Not for SPA frameworks, backend APIs, database apps, or production product UI.

NeverSight/learn-skills.dev

FFmpeg commands for video/audio conversion, trimming, compression, and processing. Use when user mentions "ffmpeg", "convert video", "compress video", "extract audio", "trim video", "gif from video", "video codec", "transcode", "screen recording", "merge videos", "video to mp4", "reduce file size", or any media processing task.

NeverSight/learn-skills.dev

Vim keybindings, motions, text objects, and operators for efficient text editing. Use when user asks about "vim commands", "vim motions", "text objects", "vim keybindings", "vim cheat sheet", "learn vim", "vim in VS Code", or any Vim editing tasks.

NeverSight/learn-skills.dev

Grok Build ONLY. Turn a 2D character still into smooth animation sprites via image_gen/image_edit base → image_to_video (6s/10s run-in-place) → ffmpeg frames → magenta chroma-key → dense sampled sprites (strip/grid/GIF). Use when the user wants video-to-sprite, motion capture from generated video, smoother run/walk cycles from dense frames, or runs /video2dsprite. Do NOT use on Codex/Claude — only Grok Build has image_to_video. Prefer generate2dsprite for crisp pixel sheets without video.

相关技能