cloud-provider-detector

cloud-provider-detector is a skill for Claude Code, Codex from FortiumPartners/ensemble. It costs 0 tokens per session (1,943 once invoked), scanned A, original, MIT.

A project scanner that identifies whether infrastructure uses AWS, Google Cloud, or Microsoft Azure from files, packages, settings, and scripts.

In plain words
What is it for?
Use it to detect the likely cloud provider, review the evidence behind that result, or specify a provider manually.
Why use it?
It removes the need to inspect a project manually to work out which cloud provider its code targets.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Part of the ensemble-infrastructure plugin — 11 skills, 7 agents shipped together

Good fit Use it to detect the likely cloud provider, review the evidence behind that result, or specify a provider manually.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fortiumpartners/ensemble/cloud-provider-detector
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add FortiumPartners/ensemble --skill cloud-provider-detector
Clone the repo
git clone --depth 1 https://github.com/FortiumPartners/ensemble

Made for: Claude Code, Codex.

Or install ensemble-infrastructure, the plugin that ships this one along with the rest of its 11 skills, 7 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cloud-provider-detector

README.md
[![agentmods](https://agentmods.dev/badge/skills/fortiumpartners/ensemble/cloud-provider-detector.svg)](https://agentmods.dev/skills/fortiumpartners/ensemble/cloud-provider-detector)
Your own site
<a href="https://agentmods.dev/skills/fortiumpartners/ensemble/cloud-provider-detector"><img src="https://agentmods.dev/badge/skills/fortiumpartners/ensemble/cloud-provider-detector.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,943 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01943
Opus 5 $0.00000 $0.00971
Sonnet 5 $0.00000 $0.00389
Haiku 4.5 $0.00000 $0.00194

Measured 4d ago against content hash 18d088566455, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

cloud-provider-detector scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (detect-cloud-provider.js, test-detect-cloud-provider.js), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/infrastructure/skills/cloud-provider-detector/SKILL.md · 281 lines

How it starts

The opening of the file, as written. The whole thing — 281 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Cloud Provider Detection Skill

Auto-detect AWS, GCP, or Azure usage with 95%+ accuracy using multi-signal analysis.

Quick Start

const { detectCloudProvider } = require('./detect-cloud-provider.js');

// Auto-detect cloud provider
const result = await detectCloudProvider('/path/to/project');

if (result.detected) {
  console.log(`Detected: ${result.name}`);
  console.log(`Confidence: ${(result.confidence * 100).toFixed(1)}%`);
  console.log(`Signals: ${result.signal_count}`);
}

// Manual override
const awsResult = await detectCloudProvider('/path/to/project', {
  provider: 'aws'
});

Detection Signals

Signal Types (Weighted)

  1. Terraform (weight: 0.5) - Highest priority

    • Provider declarations: provider "aws", provider "google", provider "azurerm"
    • Resource types: aws_vpc, google_compute_instance, azurerm_storage_account
  2. Package Manifests (weight: 0.3)

    • NPM: @aws-sdk/, @google-cloud/, @azure/
    • Python: boto3, google-cloud-*, azure-*
  3. Config Files (weight: 0.3)

    • .aws/config, .gcloud/, .azure/
    • cloudformation.yml, cloudbuild.yaml, azuredeploy.json
  4. CLI Scripts (weight: 0.2)

    • aws configure, gcloud compute, az vm
    • Command patterns in .sh files
  5. Docker (weight: 0.2)

    • Base images: FROM public.ecr.aws, FROM gcr.io, FROM mcr.microsoft.com

Confidence Scoring

Base Score = Σ(detected_signals × signal_weight) / Σ(all_signal_weights)

Multi-Signal Boost:
  if (signal_count >= 3) {
    confidence += 0.2  // Up to maximum of 1.0
  }

Detection Threshold: ≥0.7 (70%)

CLI Usage

# Detect in current directory
node detect-cloud-provider.js

# Detect in specific project
node detect-cloud-provider.js /path/to/project

# Manual override
node detect-cloud-provider.js /path/to/project --provider aws

# Custom confidence threshold
node detect-cloud-provider.js /path/to/project --min-confidence 0.8

# Exit codes:
#   0 = Provider detected
#   1 = No provider detected
#   2 = Error occurred

Read the full file on GitHub · 281 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 281 lines · 0 tokens per session scan A 18d088566455

Subscribe to this mod's changes

cloud-provider-detector is a skill published in the GitHub repository FortiumPartners/ensemble (11 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,943 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

cli-forge-infra

Ops integration assistant — reads service docs, finds the simplest config path (CLI/Helm/Operator/Terraform), builds dependency trees, proposes upgrade paths, and tracks decisions in ADRs. Use when debugging infra, integrating services, bootstrapping platforms, upgrading versions, simplifying config, or reviewing…

Destynova2/cli-code-skills · 159 tokens

x-nets

Enhanced netstat module with cached data and structured output. View network connections, routing tables, and interface statistics in interactive or TSV/CSV formats. Dependency: This is an x-cmd module. Install x-cmd first (see x-cmd skill for installation options). see x-cmd skill for installation.

x-cmd/x-cmd · 69 tokens

x-osv

CLI for Google OSV database. Query vulnerabilities for packages, scan local projects for vulnerable dependencies. Dependency: This is an x-cmd module. Install x-cmd first (see x-cmd skill). Required Tool: Install osv-scanner for project scanning (see https://github.com/google/osv-scanner).

x-cmd/x-cmd · 72 tokens

x-uptime

Enhanced uptime with structured YAML output showing uptime, users, and 1/5/15-minute load averages. Dependency: This is an x-cmd module. Install x-cmd first (see x-cmd skill for installation options). see x-cmd skill for installation.

x-cmd/x-cmd · 67 tokens

tsv

TSV data processing — view, filter, convert tab-separated data. Zero barrier — use with x-cmd, awk, or Python. Use for "tsv", "tab-separated", "data", "conversion".

x-cmd/x-cmd · 47 tokens

goal

Set and track project goals. Triggered by "/goal" to define objectives, track milestones, or review progress.

x-cmd/x-cmd · 25 tokens