check-infra

Validate API tokens, environment variables, Docker status, and disk space for benchmark tasks.

32|4|Updated Feb 1, 2026
One-click install
npx skills add https://github.com/sourcegraph/CodeScaleBench --skill check-infra-sourcegraph
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: check-infra
Source: https://github.com/sourcegraph/CodeScaleBench/tree/main/skills/check-infra
Command: npx skills add https://github.com/sourcegraph/CodeScaleBench --skill check-infra-sourcegraph

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill ensures that all necessary system configurations, credentials, and resources are in place before initiating benchmark runs, preventing common setup failures.

Core Features & Use Cases

  • Environment Validation: Checks for valid API tokens, necessary environment variables, and running Docker services.
  • Resource Monitoring: Verifies sufficient disk space and the presence of required command-line tools like harbor.
  • Use Case: Before starting a large-scale benchmark execution, run this Skill to confirm that your ANTHROPIC_API_KEY and SOURCEGRAPH_ACCESS_TOKEN are valid and that Docker is operational, avoiding wasted execution time due to setup errors.

Quick Start

Run the check infra skill to verify your environment is ready for benchmark execution.

Frequently Asked Questions about check-infra

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate environment variables and API tokens before running benchmark tasks?

To validate environment variables and API tokens for benchmark tasks, you can run a pre-run infrastructure check. This verifies the validity of credentials like your ANTHROPIC_API_KEY and SOURCEGRAPH_ACCESS_TOKEN to prevent execution failures caused by invalid or missing configurations.

What is a pre-run environment check for benchmark execution?

A pre-run environment check is a validation process that confirms system readiness before benchmark execution. It verifies API token validity, required environment variables, Docker service status, available disk space, and the presence of necessary directories to prevent wasted execution time.

Does my Docker service need to be running for infrastructure validation?

Yes, your Docker service needs to be running for infrastructure validation. The environment check explicitly verifies Docker service status to ensure containerized benchmark tasks can execute properly without encountering setup errors during the run.

Do I need the Harbor CLI installed to check benchmark infrastructure readiness?

Yes, you need the Harbor CLI installed to check benchmark infrastructure readiness. The environment validation verifies the presence of required command-line tools like Harbor, alongside checking available disk space and necessary directories, ensuring complete setup readiness.

Why does my benchmark setup fail with infrastructure validation errors?

Your benchmark setup fails with infrastructure validation errors when system configurations are incomplete. Common setup issues include invalid API tokens, missing environment variables, inactive Docker services, insufficient disk space, or absent required command-line tools like Harbor.