Skip to content
Agentmart
Submit a tool

validate-tasks

Pre-flight validation of benchmark tasks before launching runs.

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-validate-tasks

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

Pre-flight validation of benchmark tasks before launching runs. Catches truncated instructions, metadata mismatches, missing test scripts. Triggers on validate tasks, preflight, pre-flight check, check tasks.

Use cases: testing

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/validate-tasks

What's inside

Skill name
validate-tasks
Description
Pre-flight validation of benchmark tasks before launching runs. Catches truncated instructions, metadata mismatches, missing test scripts. Triggers on validate tasks, preflight, pre-flight check, check tasks.
License
Apache-2.0
Instructions
61 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Validate Tasks

Run pre-flight checks on benchmark task definitions to catch problems before committing to multi-hour runs.

## What It Catches

- Truncated or missing `instruction.md` (< 200 chars)
- Template placeholders left in instructions (`#ISSUE_NUMBER`, `{{...}}`)
- Missing or non-executable `tests/test.sh`
- Language/difficulty mismatches between `task.toml` and `selected_benchmark_tasks.json`
- Tasks not registered in the selection registry
- `expected_changes.json` referencing repos not mentioned in `instruction.md` (crossrepo)
- Known bad flags in test.sh (`--output_path` vs `--result_path`)

## Steps

### 1. Run validation

For a specific suite (most common before a run):
```bash
cd ~/CodeScaleBench && python3 scripts/validate_tasks_preflight.py --suite csb_sdlc_pytorch
```

For all selected tasks:
```bash
cd ~/CodeScaleBench && python3 scripts/validate_tasks_preflight.py --all
```

For a single task:
```bash
cd ~/CodeScaleBench && python3 scripts/validate_tasks_preflight.py --task benchmarks/csb_sdlc_pytorch/sgt-005
```

### 2. Present results

Show issues grouped by severity:
- **CRITICAL**: Will definitely cause run failures — must fix before launching
- **WARNING**: May affect results quality — should fix
- **INFO**: Informational (e.g., task not in selection registry)

### 3. Offer to fix

If issues are found, offer to fix them:
- Truncated instruction → investigate and regenerate
- Language mismatch → update task.toml to match selection registry
- test.sh not executable → `chmod +x`
- Template placeholders → need manual replacement

## Variants

### JSON output (for piping)
```bash
python3 scripts/validate_tasks_preflight.py --all --format json
```

### Critical only
```bash
python3 scripts/validate_tasks_preflight.py --all --critical-only
```

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

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