jpskill.com
🛠️ 開発・MCP コミュニティ

arch-cloud

Cloud: serverless Lambda/CF Workers, edge, CDN, multi-region, HA patterns, IaC Terraform

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o arch-cloud.zip https://jpskill.com/download/22267.zip && unzip -o arch-cloud.zip && rm arch-cloud.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/22267.zip -OutFile "$d\arch-cloud.zip"; Expand-Archive "$d\arch-cloud.zip" -DestinationPath $d -Force; ri "$d\arch-cloud.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して arch-cloud.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → arch-cloud フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
1
📖 Claude が読む原文 SKILL.md(中身を展開)

この本文は AI(Claude)が読むための原文(英語または中国語)です。日本語訳は順次追加中。

arch-cloud

Purpose

This skill helps design and implement cloud architectures focused on serverless technologies (e.g., AWS Lambda, Cloudflare Workers), edge computing, CDNs, multi-region setups for high availability (HA), and Infrastructure as Code (IaC) using Terraform. It ensures scalable, cost-effective solutions by guiding precise configuration and deployment.

When to Use

Use this skill for applications needing low-latency edge delivery, serverless backends to reduce costs, multi-region redundancy for HA, or IaC automation. Examples include building global APIs, migrating to serverless, or optimizing CDN for media delivery. Avoid for simple monolithic apps or on-prem setups.

Key Capabilities

  • Deploy serverless functions: Create AWS Lambda or Cloudflare Workers for event-driven processing.
  • Edge and CDN integration: Configure Cloudflare for edge caching and routing to reduce latency.
  • Multi-region HA patterns: Set up auto-failover with AWS Route 53 or Cloudflare load balancers.
  • IaC with Terraform: Define and provision cloud resources declaratively for reproducibility.
  • Cost optimization: Analyze patterns like using Lambda's reserved concurrency or Terraform's cost modules.

Usage Patterns

  1. Serverless API Deployment: Use Terraform to define a Lambda function and API Gateway, then deploy for quick scaling. Ensure multi-region setup by adding Route 53 for failover.
  2. Edge-Computing CDN Setup: Integrate Cloudflare Workers with a CDN to cache assets and handle requests at the edge, reducing origin server load. Combine with Terraform for automated provisioning across regions.

Common Commands/API

  • Terraform Commands: Initialize with terraform init; plan changes with terraform plan -out=plan.tfplan; apply with terraform apply plan.tfplan. Use -var="region=us-east-1" for region-specific vars.
  • AWS CLI for Lambda: Create a function using aws lambda create-function --function-name myLambda --zip-file fileb://function.zip --handler index.handler --runtime nodejs14.x --role arn:aws:iam::123456789012:role/lambdaRole. Invoke with aws lambda invoke --function-name myLambda out.txt.
  • Cloudflare API Endpoints: Authenticate with $CLOUDFLARE_API_KEY env var. Create a Worker script via POST to https://api.cloudflare.com/client/v4/accounts/{account_id}/workers/scripts with JSON body: {"id": "myWorker", "content": "addEventListener('fetch', event => event.respondWith(new Response('Hello')));"}.
  • Config Formats: Use HCL in Terraform files, e.g., resource "aws_lambda_function" "example" { function_name = "myFunction" runtime = "nodejs14.x" handler = "index.handler" filename = "function.zip" }. For API keys, set in env vars like export AWS_ACCESS_KEY_ID=$AWS_API_KEY.

Integration Notes

Integrate Terraform with CI/CD by running terraform plan in GitHub Actions via a workflow step: run: terraform plan -out=plan.out. For serverless, link Lambda to S3 triggers using Terraform: resource "aws_lambda_permission" "allow_s3" { action = "lambda:InvokeFunction" function_name = aws_lambda_function.example.function_name principal = "s3.amazonaws.com" source_arn = aws_s3_bucket.example.arn }. Use $TERRAFORM_STATE_BUCKET for remote state storage. For edge services, route traffic from Cloudflare to AWS via API Gateway by configuring Cloudflare's origin settings with the Gateway endpoint.

Error Handling

Handle Terraform errors by checking terraform plan output for diffs and running terraform apply --auto-approve only after review; common issues include dependency cycles—fix by ordering resources in .tf files. For Lambda, catch invocation errors with aws lambda invoke --function-name myLambda out.txt and parse logs via CloudWatch: use aws logs get-log-events --log-group /aws/lambda/myLambda --log-stream latest. If Cloudflare API returns 401, verify $CLOUDFLARE_API_KEY and retry with exponential backoff. In code, wrap API calls in try-catch: try { const response = await fetch('https://api.cloudflare.com/...'); } catch (error) { console.error(error.message); }. Always validate region configs to avoid "region not supported" errors.

Concrete Usage Examples

  1. Deploy a Multi-Region Serverless Function: First, set env vars: export AWS_REGION=us-east-1 and export AWS_ACCESS_KEY_ID=$AWS_API_KEY. Create a Terraform file: resource "aws_lambda_function" "globalFn" { ... } resource "aws_route53_record" "failover" { zone_id = "Z1234567890" name = "api.example.com" type = "A" failover_routing_policy { ... } }. Run terraform init && terraform apply to deploy Lambda in us-east-1 and set up Route 53 for HA.
  2. Set Up Edge CDN with Workers: Authenticate Cloudflare with export CLOUDFLARE_API_KEY=your_key. Use Terraform to provision: resource "cloudflare_worker_script" "edgeScript" { name = "edgeWorker" content = "addEventListener('fetch', event => { ... }); } resource "cloudflare_zone" "example" { zone = "example.com" }. Deploy with terraform apply, then test by curling the Worker endpoint.

Graph Relationships

  • Related to: se-architecture cluster (e.g., 'design-patterns' for architectural blueprints, 'deployment-strategies' for rollout techniques).
  • Connected via tags: 'cloud' links to 'aws-services' skill; 'serverless' to 'lambda-optimizations'; 'terraform' to 'iac-best-practices'.