Skip to content
Agentmart
Submit a tool

check-infra

Verify infrastructure readiness before launching benchmark runs — tokens, Docker, disk, credentials.

Skill by sourcegraph

IndexedApache-2.0★ 37
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/sourcegraph-check-infra

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Verify infrastructure readiness before launching benchmark runs — tokens, Docker, disk, credentials. Triggers on check infra, infrastructure check, ready to run, pre-run check.

Use cases: devops

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/check-infra

What's inside

Skill name
check-infra
Description
Verify infrastructure readiness before launching benchmark runs — tokens, Docker, disk, credentials. Triggers on check infra, infrastructure check, ready to run, pre-run check.
License
Apache-2.0
Instructions
42 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Check Infrastructure

Verify all infrastructure prerequisites before launching a benchmark run.

## What It Checks

- OAuth token validity and time remaining (per account for multi-account setups)
- `.env.local` (project root) has `ANTHROPIC_API_KEY` and `SOURCEGRAPH_ACCESS_TOKEN`
- Docker daemon is running and responsive
- Disk space is sufficient (>5GB required, >20GB recommended)
- `harbor` CLI is installed
- `runs/official/` directory exists

## Steps

### 1. Run the checker

```bash
cd ~/CodeScaleBench && python3 scripts/check_infra.py
```

### 2. Present results

Show the table output directly — it's already formatted with color-coded status.

### 3. Fix any issues

If FAIL items found, provide the specific fix:
- **Token expired**: `source configs/_common.sh && refresh_claude_token`
- **Multi-account tokens**: `source configs/_common.sh && setup_multi_accounts && ensure_fresh_token_all`
- **Missing env.local**: Create `.env.local` (project root) with required exports
- **Docker down**: `sudo systemctl start docker`
- **Low disk**: `python3 scripts/archive_run.py --older-than 7 --execute`

## Variants

### JSON output
```bash
python3 scripts/check_infra.py --format json
```

From sourcegraph/CodeScaleBench, Apache-2.0.

More from sourcegraph/CodeScaleBench

Signals

Stars
37
Forks
5
Open issues
0
Last commit (this folder)
Mar 17, 2026 (7 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from sourcegraph

Cite this page

check-infra skill. Agent Mart. https://agentmart.dev/skills/sourcegraph-check-infra (last updated 2026-10-24)