Logo Create Adapter

Create Adapter

Tổ chức
evolving-machines-lab
create-adapter

Convert an existing benchmark into a folder of Harbor-format tasks ready for `evolve dataset publish`. Use when the user wants to port, adapt, or import a benchmark (a paper's task set, a repository of problems, a leaderboard's dataset) onto Evolve. Guides the conversion and its verification with evolve check.

Tổng quan

Nhà phát hànhevolving-machines-lab
Kho mãevolve
Tên kỹ năngcreate-adapter
Sao
76
Bản fork
5
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépApache-2.0
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI là Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Đầy đủ trong hướng dẫn

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được evolving-machines-lab công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Create Adapter trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/evolving-machines-lab/evolve/tree/main/skills/create-adapter
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/evolving-machines-lab/evolve.git /tmp/evolve
mkdir -p .claude/skills
cp -r /tmp/evolve/skills/create-adapter .claude/skills/create-adapter
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Create Adapter trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự tải Create Adapter ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên Create Adapter không bị giới hạn ở mô hình mà kỹ năng này được viết cho. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên kỹ năng chưa dùng không tốn chi phí.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Create Adapter

An adapter is a small program that reads an existing benchmark and writes one task directory per task, in the Harbor task format. Its output is a folder of tasks, ready for evolve dataset publish. This skill guides the conversion; evolve skills get create-task has the task format in full, and evolve skills get publish every publish option.

Authoritative reference

The conversion rules below are Harbor's, from its adapter guide, and Evolve runs the task format unchanged. For the full guide, read https://github.com/laude-institute/harbor/blob/main/docs/content/docs/datasets/adapters.mdx (its steps on parity experiments, the registry and pull requests are Harbor's own process and do not apply here). The task format itself is at https://docs.harborframework.com/core-concepts/tasks/overview.

Do not invent structure, field names, or workflow beyond what the guide specifies.

Prerequisites

  • The evolve CLI: npm install -g @evolvingmachines/evolve (evolve --version succeeds).
  • EVOLVE_API_KEY exported, from the dashboard's API keys page (https://dashboard.evolvingmachines.ai/api-keys); evolve auth status prints who you are.
  • Docker, to build and enter a task's environment locally (optional).
  • The upstream benchmark's repository, cloned.

Workflow

1. Understand the original benchmark

Identify these four components for every task in the benchmark:

ComponentWhat to find
InstructionsHow tasks are described; what information agents receive
EnvironmentsDocker setup, system dependencies, file structures
TestsEvaluation method: deterministic unit tests, LLM-as-a-Judge, etc.
SolutionsOracle/reference solutions; if none exist, whether LLM generation is feasible

Study the benchmark's repository, documentation, and code structure.

Step complete when: you can describe, for each task, the instruction text, environment setup, test/verification method, and reference solution.

2. Gather benchmark context from the user

Collect the following before writing code. If the user has not provided an item, ask before proceeding.

FieldWhy it matters
Adapter nameLowercase, hyphen-separated. Must match the benchmark's common identifier (e.g., swe-bench, aider-polyglot). Becomes the dataset name on Evolve and, with dashes turned to underscores, the Python package name.
Human-readable nameAppears in the README.
Upstream repo URLNeeded for step 1 (benchmark analysis) and for the README.
Reference solutions available?If the benchmark ships reference solutions, use them. If not, they must be written, with LLM help, before the tasks can be checked.
SubsetAdapting a subset of tasks is acceptable (e.g., only a verified split). Document every exclusion in the README.

3. Write the converter

The evolve CLI has no adapter scaffold; create this layout by hand:

<adapter-name>/
├── README.md                  # final documentation (step 6)
├── pyproject.toml             # Python package config
└── src/
    └── <adapter_name>/        # adapter-name with dashes → underscores
        ├── __init__.py
        ├── adapter.py         # main logic: parse benchmark, generate task dirs
        ├── main.py            # CLI entry point
        └── task-template/     # template files copied into each task
            ├── task.toml
            ├── instruction.md
            ├── environment/
            │   └── Dockerfile
            ├── solution/
            │   └── solve.sh
            └── tests/
                └── test.sh

main.py must support --output-dir (where generated tasks are written), --limit, --overwrite, and --task-ids. Run it as uv run python -m <adapter_name>.main --output-dir <path>.

Each generated task directory must contain at minimum task.toml, instruction.md, environment/Dockerfile, solution/solve.sh, and tests/test.sh:

<output-dir>/
└── <task-id>/
    ├── task.toml              # task configuration and metadata
    ├── instruction.md         # task instructions for the agent
    ├── environment/
    │   └── Dockerfile         # container environment definition
    ├── solution/
    │   └── solve.sh           # reference solution script
    └── tests/
        ├── test.sh            # test execution script
        └── test_*.py          # (optional) pytest test files

task.toml: every task must include it. Adjust timeouts to match your benchmark's complexity.

toml
schema_version = "1.4"

[task]
name = "<adapter-name>/<task-id>"
version = "1.0.0"

[metadata]
author_name = "Original benchmark authors' names"
author_email = "benchmark-authors@email.com"
difficulty = "medium"
category = "programming"
tags = ["debugging", "python"]

[agent]
timeout_sec = 1800.0

[verifier]
timeout_sec = 120.0

[environment]
build_timeout_sec = 600.0
cpus = 1
memory_mb = 2048
storage_mb = 10240

For LLM-as-a-Judge verifiers, request the judge credential in [verifier.env]; on Evolve you never put a real key in the task, the credential is supplied at run time (evolve skills get rewardkit has the details):

toml
[verifier.env]
OPENAI_API_KEY = "${OPENAI_API_KEY}"

tests/test.sh: must write a numeric reward (integer or float, 0 to 1) to /logs/verifier/reward.txt, or named numbers to /logs/verifier/reward.json. /logs/verifier/ exists at run time. Use the same metrics as the original benchmark.

bash
#!/bin/bash
pytest /tests/test_*.py
if [ $? -eq 0 ]; then
  echo 1 > /logs/verifier/reward.txt
else
  echo 0 > /logs/verifier/reward.txt
fi

instruction.md: write agent-actionable instructions, not raw benchmark descriptions. Include the goal, constraints, expected output location, and any files the agent should modify. Do not include test answers or reference solutions. Prompt modifications (e.g., "write files in place without asking") are acceptable if you apply them to both the original benchmark and the adapter, and document them.

environment/Dockerfile: set up the container the agent will work in. Install system and Python dependencies, copy any benchmark-specific data files, and set the working directory. The agent and the verifier both run inside this container unless the task declares a separate verifier environment.

dockerfile
FROM python:3.13-slim
WORKDIR /workspace

RUN apt-get update && apt-get install -y \
    git \
    && rm -rf /var/lib/apt/lists/*

# Install benchmark-specific dependencies
# RUN pip install --no-cache-dir <packages>

# Copy task-specific files
# COPY . /workspace/

GPU tasks: set gpus (and optionally gpu_types) under [environment] in task.toml. After publishing, evolve dataset show prints which sandbox providers can run each task.

Step complete when: main.py produces a valid task directory for each task.

4. Keep task names right

  • Every task directory name is the task's name on Evolve. Letters, digits, ., _ and -, at most 128 characters, starting with a letter or digit; use lowercase (Harbor's convention). Put the same identifier in [task] name as <adapter-name>/<task-id>. A [metadata] task_id, when present, must equal the directory name.
  • Task names must be unique within the dataset and stable across adapter runs. An unstable name makes the same task look like a different one on republish. If upstream lacks stable identifiers, mint a deterministic scheme in adapter code (e.g., {dataset}-1, {dataset}-2, ...) derived from a reproducible sort of upstream tasks.
  • Sanitize upstream identifiers before using them as names: lowercase, replace spaces/slashes/special characters with hyphens, avoid leading/trailing separators.
  • Treat main.py as the source of truth for task names. Do not hand-edit generated task directories; fix the converter and regenerate.
  • Use schema_version = "1.4" at the top of task.toml; [task].version is the task's own version and is distinct from it.

5. Verify the conversion

Check the generated tasks. The check reads each task and, when it can, runs its environment, its solution/solve.sh and its verifier, then rules on every criterion of a rubric; every task should come back no_problem_found with executed true.

bash
evolve check "<output-dir>" --watch
evolve check show <check-id>

A failing check usually means one of three things, in this order:

  1. Adaptation error: the instruction, environment or test does not match upstream.
  2. A broken reference solution: run the solution on the original benchmark side too, to tell a wrong solution from a wrong adaptation. If the fix is simple, propose it upstream and document it in the README; exclude tasks that cannot be reliably fixed.
  3. Environment error: a Dockerfile that does not build or a test that cannot run makes the task impossible for every agent, so catch it here.

Where Harbor is installed, harbor run -p "<output-dir>" -a oracle runs every reference solution locally (optional); the reward should be 1.0 on every task.

Benchmarks without reference solutions: write them, with LLM help, before publishing. A cheap agent and model can take a first pass over all the tasks; complete the rest with a stronger model plus human review.

Step complete when: every task passes evolve check.

6. Document and publish

Write the README with: what the benchmark measures and a link to it; the subset adapted and every exclusion; benchmark bugs found and how they were handled; prompt modifications, environment adjustments and other deviations from the original, with the reason; known limitations; the exact commands to regenerate the tasks and to run them.

Then publish the output folder as a dataset (evolve skills get publish has every option):

bash
evolve dataset check "<output-dir>"
evolve dataset publish --dir "<output-dir>" --name "<adapter-name>" --version 1.0 --watch
evolve run -d "<adapter-name>@1.0" -a codex -m gpt-5.5 --watch

To see how faithful the conversion is, run a job with the same agent and model the benchmark's own leaderboard reports, and compare the scores.

Reference adapters by shape

Harbor's repository holds one adapter per benchmark, public at https://github.com/laude-institute/harbor/tree/main/adapters. When implementation questions come up, read the one that matches the benchmark's shape:

ShapeExample adapter
Repository-level coding tasks with unit-test verifiersadapters/swebench/
Many small tasks from one dataset fileadapters/evoeval/
Data-analysis tasks with a custom datasetadapters/bixbench/
LLM-as-a-Judge verificationadapters/financeagent/
GPU tasksadapters/featurebench/

What this skill does NOT do

  • Implement adapter.py, main.py, or the task-template files. Those are the contributor's work, guided by the rules above.
  • Run evolve check or publish on its own. Both act on the user's account and need the user's explicit intent; a check spends credits (it runs a checker model).

Failure modes

SymptomLikely causeAction
evolve: command not foundThe CLI is not installednpm install -g @evolvingmachines/evolve.
evolve dataset check refuses a task by nameIts task.toml breaks a rule (a field, a value, a name)Fix the converter, regenerate, check again. The refusal names the field.
A task check comes back has_a_problemOne criterion failedevolve check show <check-id> prints the criterion, its explanation and its evidence.
Every task fails the check the same wayAn error in the task templateFix task-template/ in the converter, not the generated tasks.

Câu hỏi thường gặp

Kỹ năng AI Create Adapter làm được gì?

Convert an existing benchmark into a folder of Harbor-format tasks ready for `evolve dataset publish`. Use when the user wants to port, adapt, or import a benchmark (a paper's task set, a repository of problems, a leaderboard's dataset) onto Evolve. Guides the conversion and its verification with evolve check.

Vì sao nên dùng Create Adapter trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Create Adapter là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Create Adapter trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/evolving-machines-lab/evolve/tree/main/skills/create-adapter. TypingMind đọc tệp SKILL.md và cài đặt thành một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Create Adapter?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Bạn có thể dùng Create Adapter với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Create Adapter với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Create Adapter có miễn phí không?

Có. Kỹ năng này được evolving-machines-lab phát hành trên GitHub theo giấy phép Apache-2.0. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp cho mô hình các công cụ mới để gọi — mã được chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và tiêu chí của đầu ra tốt. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇