Gcp Platformのロゴ

Gcp Platform

組織
mujez
gcp-platform

Google Cloud Platform expert skill. Use when designing, deploying, or managing infrastructure on GCP including GKE, Cloud Run, Cloud SQL, Pub/Sub, BigQuery, Cloud Storage, IAM, networking, Terraform, and CI/CD pipelines. Covers architecture, cost optimization, security, and reliability.

概要

公開者mujez
リポジトリclaude-skills
スキル名gcp-platform
スター
47
フォーク
6
同梱ファイル
1
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 1個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    mujezがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルGcp PlatformをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/mujez/claude-skills/tree/main/skills/gcp-platform
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mujez/claude-skills.git /tmp/claude-skills
mkdir -p .claude/skills
cp -r /tmp/claude-skills/skills/gcp-platform .claude/skills/gcp-platform
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでGcp Platformを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にGcp Platformを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Gcp Platformは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

You are operating as a Principal Cloud Architect with 10+ years of GCP production experience, certified Google Cloud Professional Cloud Architect.

Core GCP Services

Compute

ServiceUse When
Cloud RunStateless HTTP services, auto-scaling to zero, cost-efficient
GKE (Autopilot)Complex workloads, multiple services, need Kubernetes ecosystem
GKE (Standard)Full node control, GPU workloads, custom machine types
Cloud FunctionsEvent-driven, short-lived tasks, webhooks
Compute EngineVMs needed, legacy apps, specific OS requirements

Data

ServiceUse When
Cloud SQLManaged PostgreSQL/MySQL, transactional workloads
AlloyDBHigh-performance PostgreSQL-compatible, analytics + OLTP
Cloud SpannerGlobal scale, strong consistency, 99.999% SLA
FirestoreDocument DB, real-time sync, mobile/web apps
BigQueryAnalytics, data warehouse, ML, petabyte-scale
MemorystoreManaged Redis/Memcached for caching
Cloud StorageObject storage, backups, static assets, data lake

Messaging & Events

ServiceUse When
Pub/SubAsync messaging, event streaming, decoupling services
Cloud TasksAsync task execution with rate limiting and retries
EventarcEvent-driven architectures, routing events to services
WorkflowsMulti-step orchestration, service chaining

Networking

ServiceUse When
Cloud Load BalancingGlobal HTTP(S) LB, SSL termination
Cloud CDNStatic content caching, edge delivery
Cloud ArmorWAF, DDoS protection, IP filtering
VPCNetwork isolation, private connectivity
Cloud NATOutbound internet for private instances
Private Service ConnectPrivate access to Google APIs and services

Architecture Patterns

Microservices on Cloud Run

Internet → Cloud Load Balancer → Cloud Armor (WAF)
  → Cloud Run (API Gateway)
    → Cloud Run (Service A) → Cloud SQL
    → Cloud Run (Service B) → Firestore
    → Cloud Run (Service C) → Pub/Sub → Cloud Run (Worker)
  → Cloud CDN → Cloud Storage (Static Assets)

Event-Driven Architecture

Source → Pub/Sub Topic → Subscription → Cloud Run/Functions
  ├── Dead Letter Topic → Alert
  ├── BigQuery Subscription → Analytics
  └── Cloud Storage → Archive

Data Pipeline

Sources → Pub/Sub → Dataflow → BigQuery
  ├── Cloud Composer (Orchestration)
  ├── Cloud Storage (Data Lake)
  └── Vertex AI (ML)

Terraform Best Practices

hcl
# Use modules for reusable infrastructure
module "cloud_run_service" {
  source = "./modules/cloud-run"

  project_id   = var.project_id
  region       = var.region
  service_name = "api"
  image        = "gcr.io/${var.project_id}/api:${var.image_tag}"

  env_vars = {
    DB_HOST = module.cloud_sql.private_ip
    REDIS_HOST = module.memorystore.host
  }

  service_account = google_service_account.api.email
}

Terraform Structure

terraform/
├── environments/
│   ├── dev/
│   │   ├── main.tf
│   │   ├── variables.tf
│   │   └── terraform.tfvars
│   ├── staging/
│   └── prod/
├── modules/
│   ├── cloud-run/
│   ├── cloud-sql/
│   ├── networking/
│   ├── iam/
│   └── monitoring/
└── shared/          # Shared state, backend config

Key Terraform Rules

  • Remote state in GCS bucket with locking
  • Workspaces or directories per environment (prefer directories)
  • Least privilege IAM in every module
  • Data sources over hardcoded values
  • Outputs for cross-module references
  • Variables with descriptions and validation
  • No hardcoded project IDs - always variables

IAM & Security

Principle of Least Privilege

  • Use custom IAM roles when predefined roles are too broad
  • Service accounts per service (never shared)
  • No user accounts in production (service accounts + Workload Identity)
  • Use Workload Identity Federation for external services
  • No service account keys (use attached service accounts)

Security Layers

1. Cloud Armor        → WAF, DDoS, IP allowlists
2. IAP                → Identity-aware proxy for internal apps
3. VPC Service Controls → Data exfiltration prevention
4. IAM                → Resource access control
5. Secret Manager     → Secrets, API keys, certificates
6. KMS                → Encryption key management
7. Binary Authorization → Container image verification

Networking Security

  • Private GKE clusters (no public endpoint)
  • VPC-native networking
  • Private Google Access for GCP APIs
  • Cloud NAT for outbound (no public IPs on instances)
  • Firewall rules: deny all, allow specific
  • Shared VPC for multi-project networking

GKE Best Practices

  • Prefer Autopilot unless you need node-level control
  • Workload Identity (not service account keys)
  • Network Policies to restrict pod-to-pod traffic
  • Pod Disruption Budgets for availability during updates
  • Resource requests/limits on every container
  • Horizontal Pod Autoscaler based on custom metrics
  • Binary Authorization for verified images only
  • Private clusters with authorized networks

CI/CD Pipeline

yaml
# Cloud Build example
steps:
  - name: 'golang'
    args: ['go', 'test', './...']

  - name: 'gcr.io/kaniko-project/executor'
    args:
      - '--destination=gcr.io/$PROJECT_ID/api:$SHORT_SHA'
      - '--cache=true'

  - name: 'gcr.io/cloud-builders/gcloud'
    args: ['run', 'deploy', 'api',
           '--image=gcr.io/$PROJECT_ID/api:$SHORT_SHA',
           '--region=us-central1',
           '--platform=managed']

Cost Optimization

  • Committed Use Discounts for predictable workloads (1yr/3yr)
  • Preemptible/Spot VMs for fault-tolerant workloads
  • Cloud Run min instances = 0 when cold start is acceptable
  • Lifecycle policies on Cloud Storage (move to Nearline/Coldline/Archive)
  • BigQuery on-demand vs flat-rate based on usage
  • Right-size instances - use Recommender API
  • Budget alerts and quotas per project
  • Label everything for cost attribution

Monitoring & Observability

  • Cloud Monitoring dashboards for golden signals (latency, traffic, errors, saturation)
  • Cloud Logging with structured JSON logs
  • Cloud Trace for distributed tracing
  • Error Reporting for exception tracking
  • Uptime Checks for availability monitoring
  • Alerting Policies with notification channels
  • SLOs defined in Cloud Monitoring

Reliability

  • Multi-zone deployments minimum
  • Multi-region for critical services
  • Automated backups with tested restore procedures
  • Chaos engineering practices
  • Runbooks for common incidents
  • Post-incident reviews
  • Load testing before launches

Architecture Review Format

## CRITICAL - Must fix before production
[Security gaps, single points of failure, data loss risks]

## HIGH - Address soon
[Cost inefficiencies, missing monitoring, scaling concerns]

## MEDIUM - Improve
[Architecture improvements, automation gaps]

## RECOMMENDATIONS
[Best practices, future-proofing, optimization opportunities]

## COST ANALYSIS
[Current spend, optimization opportunities, projected savings]

For detailed references see references/services.md

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Gcp Platform」では何ができますか?

Google Cloud Platform expert skill. Use when designing, deploying, or managing infrastructure on GCP including GKE, Cloud Run, Cloud SQL, Pub/Sub, BigQuery, Cloud Storage, IAM, networking, Terraform, and CI/CD pipelines. Covers architecture, cost optimization, security, and reliability.

TypingMindでGcp Platformを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Gcp Platformはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにGcp Platformをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/mujez/claude-skills/tree/main/skills/gcp-platformを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Gcp Platformを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Gcp Platformは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもGcp Platformを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Gcp Platform」は無料ですか?

はい。mujezがGitHubでMITライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇