Communitygithub.com

OCI Landing Zones - 專家架構 (NeverSight/learn-skills.dev)

在設計多租戶 OCI 環境、建立登陸區域 Terraform 堆疊、強制執行安全區域或規劃中樞-分支網路拓撲時使用。涵蓋 OCI 特定的區隔層次結構、多租戶 IAM 決策樹、安全區域自動化、CIS 基礎合規性及 DRG 路由。

learn-skills.dev) 是什麼?

此技能提供設計和實作 OCI 登陸區域的專家級指導,特別針對多租戶環境。它是一份全面的參考資料,涵蓋從區隔層次結構規劃、中樞-分支網路拓撲到安全區域強制執行和 CIS Foundations 合規性的所有內容。技能的主要價值在於其明確的「切勿」模式,這些模式記錄了常見的架構陷阱(例如平面區隔結構或重疊 CIDR),並提供經過驗證的替代方案。該技能支援透過 CLI 和 Terraform 進行自動化,並引導使用者參考專門的配套文件(如 `references/landing-zone-cli.md`),以進行大量變更。它專為在 OCI 上設計可擴展、安全且可持續的多租戶架構的雲端架構師和平台工程師量身打造。

相容平台~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 登陸區域 - 專家架構

切勿這樣做

切勿建立平面區隔結構

錯誤:
tenancy/ app1-dev, app1-test, app1-prod, app2-dev ...

問題:
- 無法針對所有開發環境套用單一政策
- 無法按團隊委派管理權限
- 成本報告無結構
- 政策重複隨團隊數量呈 O(n) 增長

正確 - 層次結構:
tenancy/
  Network/ (中樞, 分支)
  Security/ (保管庫, 日誌記錄)
  Workloads/
    App1/ (開發, 測試, 正式)
    App2/ (開發, 測試, 正式)
  Shared-Services/ (身分, 監控)

政策繼承流向樹狀結構的下方。在 Workloads/ 層級的一個政策適用於所有工作負載。

切勿跨 VCN 重複使用 10.0.0.0/16

錯誤 - 到處使用相同 CIDR:
開發 VCN:  10.0.0.0/16
測試 VCN:  10.0.0.0/16   # 無法與開發 VCN 對等互連
正式 VCN: 10.0.0.0/16   # 無法與任一 VCN 對等互連

VCN CIDR 是不可變的。錯誤的 CIDR = 完整重建 + 停機。

正確 - 不重疊的分配:
中樞 VCN:  10.0.0.0/16
開發 VCN:  10.10.0.0/16
測試 VCN:  10.20.0.0/16
正式 VCN: 10.30.0.0/16

切勿跳過正式環境區隔的安全區域

# 錯誤:沒有護欄的區隔
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 基礎基準。

根區隔應僅包含:
- 頂層子區隔
- 租戶範圍的 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}'

切勿允許從分支 VCN 直接進行網際網路對外連線

錯誤:分支子網路 → 網際網路閘道
- 資料外洩無法偵測
- 每個分支的對外連線成本為 $3k-5k/月(未計量)
- 無 DPI 或對外連線過濾

正確 - 使用集中控制的中樞-分支:
分支 → DRG → 中樞 VCN → 網路防火牆 → NAT 閘道 → 網際網路
- 具有防火牆政策的單一對外連線點
- 透過 VCN Flow Logs 提供完整可見性

切勿對需要 SLA 的正式環境工作負載使用單一區域

區域中斷 = 完全停機。若無災難備援,則無法自動容錯移轉。

多區域模式:
主要:us-ashburn-1 + 災難備援:us-phoenix-1
- 資料庫的 Autonomous Data Guard(接近零 RPO)
- 用於 DNS 容錯移轉的 Traffic Manager(RTO 約 15 分鐘)
- 物件儲存的跨區域複寫
- 在災難備援區域鏡像區隔結構

多租戶 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 區隔(記錄、監控、身分)
            授予租戶層級營運群組最低權限的讀取存取權

多租戶的 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. 清查區隔 — 匯出 JSON,並依標籤 Environment=Prod 篩選
  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:

  • 從頭開始新的登陸區域設計
  • 準備架構審查或合規稽核
  • 比較核心登陸區域與營運實體登陸區域
  • 需要 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.

相關技能