preflight-check

Pre-flight environment validator — checks that all required binaries, environment variables, and services are available before running other skills

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "preflight-check" with this command: npx skills add guifav/preflight-check

Preflight Check

You are a systems engineer responsible for validating that the development environment has all required tools, credentials, and services configured before any other skill runs. This skill produces a diagnostic report showing what is ready, what is missing, and how to fix each issue.

Planning Protocol (MANDATORY — execute before ANY action)

  1. Understand the request. Determine which stack the user intends to use: (a) Vercel/Supabase stack, (b) GCP stack, (c) both, or (d) a specific skill only.
  2. Build the check list. Based on the target stack, compile the list of required binaries, environment variables, and service connectivity checks.
  3. Execute checks. Run each check sequentially and record pass/fail with details.
  4. Generate report. Produce a structured report (JSON and human-readable) showing results.

Stack Requirements Matrix

Vercel/Supabase Stack (full)

CategoryRequirementCheck commandRequired by
Binarynode (v18+)node -vAll skills
Binarynpxnpx -vAll skills
Binarygitgit -vstack-scaffold, deploy-pilot
Binaryghgh --versiondeploy-pilot
Binarycurlcurl --versioncloudflare-guard
Env varNEXT_PUBLIC_SUPABASE_URLecho $NEXT_PUBLIC_SUPABASE_URLstack-scaffold, supabase-ops
Env varNEXT_PUBLIC_SUPABASE_ANON_KEYecho $NEXT_PUBLIC_SUPABASE_ANON_KEYstack-scaffold, supabase-ops
Env varSUPABASE_SERVICE_ROLE_KEYecho $SUPABASE_SERVICE_ROLE_KEYsupabase-ops, firebase-auth-setup
Env varNEXT_PUBLIC_FIREBASE_API_KEYecho $NEXT_PUBLIC_FIREBASE_API_KEYstack-scaffold, firebase-auth-setup
Env varNEXT_PUBLIC_FIREBASE_PROJECT_IDecho $NEXT_PUBLIC_FIREBASE_PROJECT_IDstack-scaffold, firebase-auth-setup
Env varFIREBASE_PROJECT_IDecho $FIREBASE_PROJECT_IDfirebase-auth-setup
Env varFIREBASE_CLIENT_EMAILecho $FIREBASE_CLIENT_EMAILfirebase-auth-setup
Env varFIREBASE_PRIVATE_KEYecho $FIREBASE_PRIVATE_KEY | head -c 20firebase-auth-setup
Env varVERCEL_TOKENecho $VERCEL_TOKEN | head -c 10deploy-pilot
Env varCLOUDFLARE_API_TOKENecho $CLOUDFLARE_API_TOKEN | head -c 10cloudflare-guard
Env varCLOUDFLARE_ZONE_IDecho $CLOUDFLARE_ZONE_IDcloudflare-guard

GCP Stack

CategoryRequirementCheck commandRequired by
Binarynode (v18+)node -vgcp-fullstack
Binarynpxnpx -vgcp-fullstack
Binarygitgit -vgcp-fullstack
Binaryghgh --versiongcp-fullstack
Binarygcloudgcloud --versiongcp-fullstack
Binarydockerdocker infogcp-fullstack
Binarycurlcurl --versiongcp-fullstack
Env varGCP_PROJECT_IDecho $GCP_PROJECT_IDgcp-fullstack
Env varGCP_REGIONecho $GCP_REGIONgcp-fullstack
Env varGOOGLE_APPLICATION_CREDENTIALStest -f $GOOGLE_APPLICATION_CREDENTIALSgcp-fullstack
Env varFirebase vars (same as above)gcp-fullstack
Env varCloudflare vars (same as above)gcp-fullstack

Cross-Stack Skills

CategoryRequirementCheck commandRequired by
Binarypython3 (v3.10+)python3 --versionweb-scraper
Binarypippip --versionweb-scraper
BinaryPlaywright browsersnpx playwright install --dry-runweb-scraper
Env varOPENROUTER_API_KEY (optional)echo $OPENROUTER_API_KEY | head -c 10web-scraper (Stage 5 only)

Check Execution

For each check, the agent runs the command and records:

{
  "check": "node",
  "category": "binary",
  "status": "pass",
  "detail": "v20.11.0",
  "required_by": ["stack-scaffold", "feature-forge", "test-sentinel"]
}

or:

{
  "check": "docker",
  "category": "binary",
  "status": "fail",
  "detail": "command not found",
  "required_by": ["gcp-fullstack"],
  "fix": "Install Docker Desktop: https://docs.docker.com/get-docker/"
}

Report Format

After all checks complete, produce a report:

{
  "timestamp": "2026-03-22T12:00:00Z",
  "target_stack": "vercel",
  "summary": {
    "total": 15,
    "passed": 12,
    "failed": 2,
    "warnings": 1
  },
  "checks": [ ... ],
  "blocked_skills": ["cloudflare-guard"],
  "ready_skills": ["stack-scaffold", "supabase-ops", "feature-forge", "test-sentinel", "deploy-pilot", "firebase-auth-setup"],
  "recommendations": [
    "Install jq for better Cloudflare API output formatting: brew install jq",
    "Set CLOUDFLARE_API_TOKEN to enable cloudflare-guard skill"
  ]
}

Save the report to preflight-report.json in the project root.

Human-Readable Summary

After generating the JSON report, print a clear summary:

Preflight Check — Vercel/Supabase Stack
========================================
Passed:  12/15
Failed:  2
Warnings: 1

FAILED:
  ✗ CLOUDFLARE_API_TOKEN — not set
    → Get it from: Cloudflare Dashboard > My Profile > API Tokens
  ✗ CLOUDFLARE_ZONE_ID — not set
    → Get it from: Cloudflare Dashboard > your domain > Overview (right sidebar)

WARNINGS:
  ⚠ jq — not found (optional, used by cloudflare-guard for JSON formatting)
    → Install: brew install jq (macOS) or sudo apt install jq (Linux)

READY SKILLS: stack-scaffold, supabase-ops, feature-forge, test-sentinel, deploy-pilot, firebase-auth-setup
BLOCKED SKILLS: cloudflare-guard (missing 2 env vars)

Fix Suggestions

For every failed check, provide a specific fix with:

  1. What to install or configure.
  2. The exact command or URL to follow.
  3. Which skills are blocked by this missing requirement.

Refer to the README.md Credentials Guide for detailed setup instructions.

Connectivity Checks (Optional)

When the user requests a deep check, also verify service connectivity:

  • Supabase: curl -sf "$NEXT_PUBLIC_SUPABASE_URL/rest/v1/" -H "apikey: $NEXT_PUBLIC_SUPABASE_ANON_KEY" -o /dev/null && echo "ok"
  • Vercel: curl -sf "https://api.vercel.com/v2/user" -H "Authorization: Bearer $VERCEL_TOKEN" -o /dev/null && echo "ok"
  • Cloudflare: curl -sf "https://api.cloudflare.com/client/v4/user/tokens/verify" -H "Authorization: Bearer $CLOUDFLARE_API_TOKEN" -o /dev/null && echo "ok"
  • GCP: gcloud auth print-access-token > /dev/null 2>&1 && echo "ok"

Usage

The user can invoke this skill with:

  • "Run preflight check for Vercel stack" — checks all Vercel/Supabase requirements
  • "Run preflight check for GCP stack" — checks all GCP requirements
  • "Run preflight check for web-scraper" — checks only web-scraper requirements
  • "Run full preflight check" — checks everything
  • "Run preflight check with connectivity" — includes service connectivity tests

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Ephemeral Media Hosting

自動削除機能付き一時メディアホスティングシステム

Registry SourceRecently Updated
General

Ethereum Read Only

Foundry castを使用したウォレット不要のオンチェーン状態読み取り

Registry SourceRecently Updated
General

OpenClaw Memory

Manage, optimize, and troubleshoot the OpenClaw memory system — MEMORY.md curation, daily logs (memory/YYYY-MM-DD.md), memory_search tuning, compaction survi...

Registry SourceRecently Updated
General

ImageRouter

Generate AI images with any model using ImageRouter API (requires API key).

Registry SourceRecently Updated
2.6K2dawe35