Guides evaluation workflow execution for SF-Bench. The agent invokes this skill when running evaluations, discussing scoring methodology, or working with the evaluation pipeline.
This skill provides expertise in executing SF-Bench evaluations, understanding the scoring methodology, and managing the evaluation pipeline.
1. Preflight Checks
├── API Key validation
├── DevHub connectivity
├── Scratch org capacity
└── LLM model validation
2. Solution Generation
├── Load task definition
├── Generate prompt from task
├── Call AI provider API
└── Validate git diff format
3. Task Execution
├── Clone task repository
├── Apply solution patch
├── Create scratch org
├── Deploy to scratch org
└── Execute validation
4. Validation
├── Deployment validation (code compiles/deploys)
├── Test validation (unit tests pass)
└── Functional validation (business outcome achieved)
5. Scoring & Reporting
├── Calculate component scores
├── Aggregate results
├── Generate reports (JSON + Markdown)
└── Create checkpoint
python scripts/evaluate.py \
--model grok-4.1-fast \
--tasks data/tasks/verified.json
python scripts/evaluate.py \
--model claude-3-opus \
--tasks data/tasks/realistic.json \
--functional
python scripts/evaluate.py \
--model gemini-pro \
--tasks data/tasks/verified.json \
--output results/existing-run-dir/
python scripts/evaluate.py \
--model gpt-4 \
--tasks data/tasks/verified.json \
--solutions solutions/gpt-4/
| Component | Weight | Description |
|---|---|---|
| Deployment | 10% | Code deploys without errors |
| Tests | 20% | Unit tests pass |
| Functional | 50% | Business outcome achieved |
| Bulk | 10% | Handles 200+ records |
| No Tweaks | 10% | No manual modifications needed |
score = (
deploy_score * 0.10 +
test_score * 0.20 +
functional_score * 0.50 +
bulk_score * 0.10 +
no_tweaks_score * 0.10
)
{
"evaluation_id": "run-20260127-123456",
"completed_tasks": ["task-001", "task-002"],
"results": {...},
"metadata": {
"model": "grok-4.1-fast",
"provider": "routellm",
"timestamp": "2026-01-27T12:34:56Z"
},
"hash": "sha256:abc123..."
}
{
"model_name_or_path": "grok-4.1-fast",
"instance_id": "task-001",
"model_patch": "--- a/file.cls\n+++ b/file.cls\n...",
"resolved": true,
"scores": {
"deploy": 1.0,
"tests": 1.0,
"functional": 1.0,
"bulk": 1.0,
"no_tweaks": 1.0,
"total": 1.0
}
}
sf org list --all# Check DevHub orgs
sf org list --all
# View scratch org details
sf org display -o <alias>
# Run tests manually
sf apex run test -o <alias> -n <TestClass> -r human
# Execute anonymous Apex
sf apex run -o <alias> -f test-script.apex