swe-bench

GitHub

在官方 Docker 镜像中运行 SWE-bench 实例,自动拉取镜像、启动容器并执行 OpenSquilla Agent 生成补丁。支持验证和多语言数据集评估,提供详细的日志、成本及结果解析,适用于基准测试或代码修复任务。

src/opensquilla/skills/bundled/swe-bench/SKILL.md opensquilla/opensquilla

Trigger Scenarios

用户要求运行或解决 SWE-bench 实例 用户希望评估 Agent 在 SWE-bench_Verified 或多语言数据集上的表现 用户询问生成的补丁是否解决了特定实例问题

Install

npx skills add opensquilla/opensquilla --skill swe-bench -g -y
More Options

Non-standard path

npx skills add https://github.com/opensquilla/opensquilla/tree/main/src/opensquilla/skills/bundled/swe-bench -g -y

Use without installing

npx skills use opensquilla/opensquilla@swe-bench

指定 Agent (Claude Code)

npx skills add opensquilla/opensquilla --skill swe-bench -a claude-code -g -y

安装 repo 全部 skill

npx skills add opensquilla/opensquilla --all -g -y

预览 repo 内 skill

npx skills add opensquilla/opensquilla --list

SKILL.md

Frontmatter
{
    "name": "swe-bench",
    "metadata": {
        "platform": {
            "emoji": "🧪",
            "install": [
                {
                    "id": "swebench-extra",
                    "kind": "uv",
                    "label": "Install SWE-bench extras (uv pip)",
                    "package": "opensquilla[swebench]"
                }
            ],
            "requires": {
                "env": [
                    "OPENROUTER_API_KEY"
                ]
            }
        }
    },
    "triggers": [
        "swe-bench",
        "swebench",
        "SWE-bench",
        "跑一道题",
        "解一道 SWE",
        "benchmark instance"
    ],
    "provenance": {
        "origin": "opensquilla-original",
        "license": "Apache-2.0",
        "maintained_by": "OpenSquilla"
    },
    "description": "Run SWE-bench instances with an OpenSquilla agent inside the official Docker images. Trigger when the user wants to run\/solve\/evaluate a SWE-bench instance (e.g. 'run django__django-16429', 'test OpenSquilla on SWE-bench', '跑一道 SWE-bench 题'), benchmark the agent on SWE-bench_Verified or SWE-bench_Multilingual, or check whether a generated patch resolves an instance. Optional dependency — install via `pip install opensquilla[swebench]`; also needs the docker CLI and an OPENROUTER_API_KEY."
}

swe-bench

Run a SWE-bench instance end-to-end: ensure the instance's Docker image is available (pull from Docker Hub if missing), start a container, run an OpenSquilla agent against the issue, collect the patch, and optionally run the official evaluation.

Prerequisites — guide the user, don't dead-end

SWE-bench mode runs the official evaluation images, so it needs the Docker CLI. Docker is NOT a hard gate on this skill: if it is missing, the opensquilla swebench command prints the exact install command for the user's OS and exits. When that happens, relay the install guidance to the user ("SWE-bench needs Docker — install it with ..., then I can run this") instead of saying the task is impossible. Also mention that solving a real-repository coding task (not a benchmark instance) does NOT need Docker — that is what the code-task skill is for.

Commands

Solve one instance (auto-pulls the image when missing):

opensquilla swebench solve <instance_id> --dataset verified --json
  • --dataset accepts verified, multilingual, or a full HuggingFace dataset name.
  • Add --evaluate to run the official harness afterwards and report whether the patch actually resolves the instance (resolved in the JSON output).
  • Add --model <model> / --thinking <level> to pin a model; leave them off to let squilla_router decide.
  • --timeout <seconds> defaults to 1200.

Pre-fetch an image only:

opensquilla swebench pull <instance_id>

Evaluate an existing predictions file:

opensquilla swebench eval <predictions.jsonl> --dataset verified

Reading the result

solve --json prints one JSON object: state (patch_collected is success), patch_path, artifact_dir, resolved (true/false, or null when --evaluate was not used), duration_seconds, usage (cost/tokens), error.

The full artifact trail (prompt, agent log, transcript, usage, patch) lives under artifact_dir.

What to tell the user

  1. Before starting: if the image is not local yet, warn that the first run pulls 1-3 GB and can take a few minutes; a solve typically takes 10-30 minutes depending on the instance and timeout.
  2. After finishing: report state, whether the patch is non-empty, resolved when evaluation ran, the cost from usage, and the patch_path so the user can inspect the diff.
  3. On failed/timeout: quote the error field and point at <artifact_dir>/agent_stdout.log for the full trace.

Constraints

  • Images are x86_64; on ARM hosts only locally pre-built images work.
  • The run happens on this machine (the gateway host) — docker must be reachable from here, and disk usage grows with each pulled image.
  • Long runs block the command; for batches beyond a handful of instances, suggest the user run the CLI directly in tmux instead of going through chat.

Version History

  • 7f72a32 Current 2026-07-05 18:40

Same Skill Collection

src/opensquilla/skills/bundled/advanced-dubbing-studio/SKILL.md
src/opensquilla/skills/bundled/ai-video-script/SKILL.md
src/opensquilla/skills/bundled/audio-cog/SKILL.md
src/opensquilla/skills/bundled/awesome-webpage-image-download/SKILL.md
src/opensquilla/skills/bundled/awesome-webpage-research/SKILL.md
src/opensquilla/skills/bundled/AwesomeWebpageMetaSkill/SKILL.md
src/opensquilla/skills/bundled/cron/SKILL.md
src/opensquilla/skills/bundled/docx/SKILL.md
src/opensquilla/skills/bundled/filesystem/SKILL.md
src/opensquilla/skills/bundled/git-diff/SKILL.md
src/opensquilla/skills/bundled/github/SKILL.md
src/opensquilla/skills/bundled/history-explorer/SKILL.md
src/opensquilla/skills/bundled/html-coder/SKILL.md
src/opensquilla/skills/bundled/html-to-pdf/SKILL.md
src/opensquilla/skills/bundled/http-fetch/SKILL.md
src/opensquilla/skills/bundled/latex-compile/SKILL.md
src/opensquilla/skills/bundled/memory/SKILL.md
src/opensquilla/skills/bundled/music-and-singing-studio/SKILL.md
src/opensquilla/skills/bundled/nano-banana-pro-openrouter/SKILL.md
src/opensquilla/skills/bundled/nano-banana-pro/SKILL.md
src/opensquilla/skills/bundled/nano-pdf/SKILL.md
src/opensquilla/skills/bundled/openrouter-video-generator/SKILL.md
src/opensquilla/skills/bundled/paper-abstract-author/SKILL.md
src/opensquilla/skills/bundled/paper-citation-planner/SKILL.md
src/opensquilla/skills/bundled/paper-experiment-stub/SKILL.md
src/opensquilla/skills/bundled/paper-outline-author/SKILL.md
src/opensquilla/skills/bundled/paper-preference-planner/SKILL.md
src/opensquilla/skills/bundled/paper-refbib-stub/SKILL.md
src/opensquilla/skills/bundled/paper-revision-author/SKILL.md
src/opensquilla/skills/bundled/paper-section-author/SKILL.md
src/opensquilla/skills/bundled/paper-source-curator/SKILL.md
src/opensquilla/skills/bundled/pptx/SKILL.md
src/opensquilla/skills/bundled/seedance-2-prompt/SKILL.md
src/opensquilla/skills/bundled/skill-creator-linter/SKILL.md
src/opensquilla/skills/bundled/skill-creator-proposals/SKILL.md
src/opensquilla/skills/bundled/skill-creator-smoke-test/SKILL.md
src/opensquilla/skills/bundled/srt-from-script/SKILL.md
src/opensquilla/skills/bundled/stack-trace-generic-probe/SKILL.md
src/opensquilla/skills/bundled/stack-trace-go-probe/SKILL.md
src/opensquilla/skills/bundled/stack-trace-js-probe/SKILL.md
src/opensquilla/skills/bundled/stack-trace-python-probe/SKILL.md
src/opensquilla/skills/bundled/stack-trace-rust-probe/SKILL.md
src/opensquilla/skills/bundled/subtitle-burner/SKILL.md
src/opensquilla/skills/bundled/text-file-read/SKILL.md
src/opensquilla/skills/bundled/title-card-image/SKILL.md
src/opensquilla/skills/bundled/video-merger/SKILL.md
src/opensquilla/skills/bundled/video-still-animator/SKILL.md
src/opensquilla/skills/bundled/voice-clone-lab/SKILL.md
src/opensquilla/skills/bundled/voice-conversion-studio/SKILL.md
src/opensquilla/skills/bundled/voiceover-studio/SKILL.md
src/opensquilla/skills/bundled/weather/SKILL.md
src/opensquilla/skills/bundled/web-search/SKILL.md
src/opensquilla/skills/bundled/xlsx/SKILL.md
src/opensquilla/skills/exp/meta-arxiv-daily-digest-deck/SKILL.md
src/opensquilla/skills/exp/meta-codereview-current-diff/SKILL.md
src/opensquilla/skills/exp/meta-compliance-audit-bundle/SKILL.md
src/opensquilla/skills/exp/meta-diagram-triangulation/SKILL.md
src/opensquilla/skills/exp/meta-github-pr-watch-digest/SKILL.md
src/opensquilla/skills/exp/meta-issue-to-pr-autopilot/SKILL.md
src/opensquilla/skills/exp/meta-knowledge-base-bootstrap/SKILL.md
src/opensquilla/skills/exp/meta-migration-assistant/SKILL.md
src/opensquilla/skills/exp/meta-multi-format-export-pack/SKILL.md
src/opensquilla/skills/exp/meta-pdf-intelligence/SKILL.md
src/opensquilla/skills/exp/meta-pdf-reformat-pipeline/SKILL.md
src/opensquilla/skills/exp/meta-pre-commit-quality-gate/SKILL.md
src/opensquilla/skills/exp/meta-scheduled-morning-digest/SKILL.md
src/opensquilla/skills/exp/meta-security-review-bundle/SKILL.md
src/opensquilla/skills/exp/meta-spreadsheet-insight/SKILL.md
src/opensquilla/skills/exp/meta-stack-trace-investigator/SKILL.md
src/opensquilla/skills/exp/meta-travel-planner/SKILL.md
src/opensquilla/skills/exp/meta-web-to-pdf-briefing/SKILL.md
tests/_fixtures/meta-paper-write-handwritten.SKILL.md
src/opensquilla/skills/bundled/code-task/SKILL.md
src/opensquilla/skills/bundled/deep-research/SKILL.md
src/opensquilla/skills/bundled/meta-kid-project-planner/SKILL.md
src/opensquilla/skills/bundled/meta-paper-write/SKILL.md
src/opensquilla/skills/bundled/meta-short-drama/SKILL.md
src/opensquilla/skills/bundled/meta-skill-creator/SKILL.md
src/opensquilla/skills/bundled/multi-search-engine/SKILL.md
src/opensquilla/skills/bundled/pdf-toolkit/SKILL.md
src/opensquilla/skills/bundled/skill-creator/SKILL.md
src/opensquilla/skills/bundled/sub-agent/SKILL.md
src/opensquilla/skills/bundled/summarize/SKILL.md
src/opensquilla/skills/bundled/tmux/SKILL.md
src/opensquilla/skills/exp/meta-long-running-build-watchdog/SKILL.md
src/opensquilla/skills/bundled/paper-plot-stub/SKILL.md
src/opensquilla/skills/exp/meta-content-publish-pipeline/SKILL.md
src/opensquilla/skills/exp/meta-home-it-rescue/SKILL.md
src/opensquilla/skills/exp/meta-meeting-to-workflow/SKILL.md
src/opensquilla/skills/exp/meta-research-to-slide-deck/SKILL.md
src/opensquilla/skills/exp/meta-sales-lead-researcher/SKILL.md

Metadata

Files
0
Version
7f72a32
Hash
88bee106
Indexed
2026-07-05 18:40

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-09 04:17
浙ICP备14020137号-1 $bản đồ khách truy cập$