[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EB84RK1H988Y67KTVNB8VW":3,"skill-same:01M7EB84RK1H988Y67KTVNB8VW":56},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":14,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7EB84RK1H988Y67KTVNB8VW","harbor-adapter-creator",null,"Create Harbor benchmark adapters that convert external benchmark datasets into Harbor task format. Use when porting an existing benchmark to Harbor, running parity experiments, registering a dataset to the Harbor registry, or debugging adapter validation failures. Covers: adapter class interface (generate_task, make_local_task_id), directory layout including YAML job configs, oracle verification, parity planning and experiments, dataset registration, and the full post-implementation workflow.","junjiezhou1122\u002FautoResearch","junjiezhou1122","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F94423766?v=4","01M7C0JEC55F5V6NAKKNMKCYFF","Junjie Zhou","01M7EB7ZDJQ5N39QDG2Q2CK0CJ",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjunjiezhou1122\u002FautoResearch\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fharbor-adapter-creator\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjunjiezhou1122\u002FautoResearch\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fharbor-adapter-creator\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: harbor-adapter-creator\ndescription: \"Create Harbor benchmark adapters that convert external benchmark datasets into Harbor task format. Use when porting an existing benchmark to Harbor, running parity experiments, registering a dataset to the Harbor registry, or debugging adapter validation failures. Covers: adapter class interface (generate_task, make_local_task_id), directory layout including YAML job configs, oracle verification, parity planning and experiments, dataset registration, and the full post-implementation workflow.\"\n---\n\n# Creating Harbor Benchmark Adapters\n\nAdapters convert external benchmarks (SimpleQA, GAIA, AiderPolyglot, CodePDE, spider2-dbt, etc.) into Harbor's standardized task directory format. Each adapter reads source benchmark data and generates many individual task directories, one per benchmark instance.\n\n## When to Use an Adapter vs. Creating Tasks Directly\n\n**Use an adapter when:**\n- You have an existing benchmark dataset with many instances\n- Tasks share the same structure but differ in data (questions, code, etc.)\n- You want to track evaluation parity with the original benchmark\n\n**Create tasks directly when:**\n- You're authoring original evaluation challenges\n- Each task has unique structure and environment\n- There are fewer than ~10 tasks\n\n## Adapter Directory Structure\n\n```\nadapters\u002F\u003Cadapter-id>\u002F\n├── adapter.py              # Core conversion logic (adapter class)\n├── run_adapter.py          # CLI entry point\n├── run_\u003Cadapter-id>.yaml   # Job config for oracle and parity experiment runs\n├── README.md               # Benchmark docs, license, parity, citation\n├── parity_experiment.json  # Parity tracking results (JSON array)\n├── adapter_metadata.json   # Adapter metadata (JSON array)\n└── template\u002F               # Task template files\n    ├── task.toml\n    ├── instruction.md\n    ├── environment\u002F\n    │   └── Dockerfile\n    ├── tests\u002F\n    │   └── test.sh\n    └── solution\u002F\n        └── solve.sh\n```\n\nAll template files, parity_experiment.json, adapter_metadata.json, and README.md are required. The validator (`harbor adapters validate`) checks for all of them. The YAML job config is not validated but is expected for parity experiments.\n\n## Scaffolding with harbor adapters init\n\n```bash\nharbor adapters init my-benchmark\n```\n\nThe interactive `AdapterWizard` prompts for:\n- **Benchmark name** -- Vanilla name (e.g., \"SWE-bench\")\n- **Adapter ID** -- Lowercase, no spaces (e.g., `swebench`)\n- **Class name** -- Python class name (auto-derived or overridden, e.g., `SwebenchAdapter`)\n- **Description** -- One-line description for the README\n- **Source URL** -- Link to original benchmark paper or repo\n- **License** -- Dataset license for the README\n\nIf all fields are provided as CLI arguments, the wizard runs non-interactively. The wizard renders Jinja2 templates from `src\u002Fharbor\u002Fcli\u002Ftemplate-adapter\u002F` and places the result under `adapters\u002F\u003Cadapter-id>\u002F`.\n\nAfter scaffolding, validate:\n\n```bash\nharbor adapters validate adapters\u002Fmy-benchmark\n```\n\n## Writing adapter.py\n\nThe adapter class has no formal base class, but every adapter must implement the same interface: a `NAME` attribute, `make_local_task_id` static method, and `generate_task` method.\n\n### Core Class Interface\n\n```python\nimport shutil\nfrom pathlib import Path\nfrom loguru import logger\n\n\nclass MyBenchmarkAdapter:\n    \"\"\"Converts MyBenchmark instances into Harbor task directories.\"\"\"\n\n    NAME = \"mybenchmark\"\n\n    @staticmethod\n    def make_local_task_id(source_id: str) -> str:\n        \"\"\"Convert a source benchmark ID to a Harbor task directory name.\n\n        Convention: lowercase, hyphens as separators, prefixed with\n        the adapter ID to prevent collisions across benchmarks.\n        \"\"\"\n        normalized = source_id.lower().replace(\"_\", \"-\")\n        return f\"mybenchmark-{normalized}\"\n\n    def __init__(self, task_dir: Path, **kwargs: object):\n        \"\"\"Initialize the adapter.\n\n        Args:\n            task_dir: Root directory where generated tasks will be written.\n                      Each task gets a subdirectory: task_dir \u002F local_task_id\n            **kwargs: Adapter-specific configuration (data paths, splits, etc.)\n        \"\"\"\n        self.task_dir = Path(task_dir)\n        self._config = kwargs\n\n        # Locate template files relative to this file\n        self.template_dir = Path(__file__).parent \u002F \"template\"\n        if not self.template_dir.exists():\n            raise FileNotFoundError(f\"Template directory not found: {self.template_dir}\")\n\n        # Load your benchmark data here.\n        # Examples from real adapters:\n        #   SimpleQA: pandas.read_csv() from a URL\n        #   GAIA: HuggingFace datasets or local JSONL\n        #   AiderPolyglot: walk language dirs, parse .meta\u002Fconfig.json\n        #   CodePDE: clone repo, load PDE descriptions\n        logger.info(f\"Initializing MyBenchmarkAdapter -> {self.task_dir}\")\n\n    def _copy_template(self, output_dir: Path) -> None:\n        \"\"\"Copy baseline template files into the output directory.\"\"\"\n        shutil.copytree(self.template_dir, output_dir, dirs_exist_ok=True)\n\n    def generate_task(self, source_id: str, local_task_id: str) -> None:\n        \"\"\"Generate a single Harbor task directory.\n\n        This is the core method. It must create a complete, valid task directory\n        with all required files: task.toml, instruction.md, environment\u002FDockerfile,\n        tests\u002Ftest.sh, and optionally solution\u002Fsolve.sh.\n\n        Args:\n            source_id: Identifier from the original benchmark\n            local_task_id: Harbor task directory name (from make_local_task_id)\n        \"\"\"\n        output_dir = self.task_dir \u002F local_task_id\n        output_dir.mkdir(parents=True, exist_ok=True)\n\n        # 1. Copy baseline template\n        self._copy_template(output_dir)\n\n        # 2. Look up the source instance data\n        # instance = self.data[source_id]\n\n        # 3. Write task-specific files:\n        #    - instruction.md  (the prompt the agent sees)\n        #    - task.toml       (metadata, timeouts, resource limits)\n        #    - environment\u002FDockerfile\n        #    - tests\u002Ftest.sh   (MUST write to \u002Flogs\u002Fverifier\u002Freward.txt)\n        #    - solution\u002Fsolve.sh (reference solution for OracleAgent)\n        #    - Copy attachments into environment\u002F if needed\n\n        logger.info(f\"Generated task {local_task_id} in {output_dir.resolve()}\")\n```\n\n### The generate_task Method in Detail\n\nThe `generate_task` method receives `source_id` (the original benchmark's identifier) and `local_task_id` (the Harbor directory name produced by `make_local_task_id`). It builds the output path from `self.task_dir \u002F local_task_id`.\n\nTypical steps inside `generate_task`:\n\n1. **Create directory and copy template** -- `shutil.copytree` with `dirs_exist_ok=True`\n2. **Load instance data** -- look up the specific benchmark record\n3. **Write instruction.md** -- replace placeholders or write dynamically\n4. **Write task.toml** -- set metadata, tags, timeouts\n5. **Write or modify Dockerfile** -- add `COPY` commands for attachments\n6. **Write tests\u002Ftest.sh** -- the verification script (see test.sh requirements below)\n7. **Write solution\u002Fsolve.sh** -- reference solution for oracle agent\n8. **Copy attachments** -- instance-specific files into `environment\u002Fworkspace\u002F` or `environment\u002F`\n\n### Data Loading Patterns (from real adapters)\n\n| Adapter | Data Source | Loading Pattern |\n|---------|-----------|----------------|\n| SimpleQA | OpenAI public CSV | `pandas.read_csv(url)` in `__init__` |\n| GAIA | HuggingFace or local JSONL | `datasets` library or line-by-line JSON |\n| AiderPolyglot | Exercism repo | Walk language dirs, parse `.meta\u002Fconfig.json` |\n| CodePDE | CodePDE repo | Clone repo, load PDE description files |\n| spider2-dbt | Spider2-DBT repo | Clone repo, read dbt project structures |\n\n### Template Filling Patterns\n\n- **Simple string replacement**: `content.replace(\"{KEY}\", value)` -- used by GAIA\n- **Placeholder replacement**: `content.replace(\"{{PLACEHOLDER}}\", value)` -- common pattern\n- **Direct file writes**: Build content programmatically and write -- used by AiderPolyglot\n- **Jinja2**: For complex templates with conditionals (not used by existing adapters but supported)\n\n### Handling Attachments\n\nWhen source benchmarks include per-instance files (images, CSVs, databases):\n\n1. Copy files into `environment\u002Fworkspace\u002F` in the task directory\n2. Add `COPY workspace\u002F \u002Fapp\u002Ffiles\u002F` to the Dockerfile (GAIA pattern)\n3. Reference files from `instruction.md` using the container path (e.g., `\u002Fapp\u002Ffiles\u002Fdata.csv`)\n4. Mention the attachment in the instruction so the agent knows about it\n\n## Writing run_adapter.py\n\nThe CLI entry point follows a standard pattern with helper functions for argument parsing, ID collection, repo cloning, and benchmark processing. The default output directory is `datasets\u002F\u003Cadapter-id>`.\n\n```python\n#!\u002Fusr\u002Fbin\u002Fenv python3\nimport argparse\nimport sys\nfrom pathlib import Path\nfrom loguru import logger\n\nsys.path.insert(0, str(Path(__file__).parent.parent))\nfrom mybenchmark.adapter import MyBenchmarkAdapter\n\n\ndef _parse_args() -> argparse.Namespace:\n    parser = argparse.ArgumentParser(\n        description=\"Generate Harbor tasks from MyBenchmark\",\n        formatter_class=argparse.ArgumentDefaultsHelpFormatter,\n    )\n    parser.add_argument(\n        \"--output-dir\", type=Path,\n        default=Path(\"datasets\u002Fmybenchmark\"),\n        help=\"Directory to write generated Harbor task directories\",\n    )\n    parser.add_argument(\n        \"--task-ids\", nargs=\"*\",\n        help=\"Specific source task IDs to generate (space-separated)\",\n    )\n    parser.add_argument(\n        \"--ids-file\", type=Path,\n        help=\"Path to a file containing source task IDs, one per line\",\n    )\n    parser.add_argument(\n        \"--limit\", type=int,\n        help=\"Limit the number of tasks to generate\",\n    )\n    return parser.parse_args()\n\n\ndef _collect_ids(task_ids: list[str] | None, ids_file: Path | None) -> list[str]:\n    \"\"\"Collect task IDs from command line args or a file.\"\"\"\n    if task_ids:\n        return task_ids\n    if ids_file:\n        return [line.strip() for line in ids_file.read_text().splitlines() if line.strip()]\n    return []\n\n\ndef _process_benchmark(output_dir: Path, task_ids: list[str]) -> None:\n    \"\"\"Initialize adapter and generate all tasks.\"\"\"\n    output_dir.mkdir(parents=True, exist_ok=True)\n    adapter = MyBenchmarkAdapter(task_dir=output_dir)\n\n    if not task_ids:\n        # Load all available IDs from the benchmark data\n        task_ids = adapter.get_all_source_ids()\n\n    errors = []\n    for i, source_id in enumerate(task_ids, 1):\n        local_task_id = MyBenchmarkAdapter.make_local_task_id(source_id)\n        try:\n            adapter.generate_task(source_id, local_task_id)\n            logger.info(f\"[{i}\u002F{len(task_ids)}] {source_id} -> {local_task_id}\")\n        except Exception as e:\n            errors.append((source_id, str(e)))\n            logger.error(f\"[{i}\u002F{len(task_ids)}] {source_id} FAILED: {e}\")\n\n    logger.info(f\"Generated {len(task_ids) - len(errors)}\u002F{len(task_ids)} tasks\")\n    if errors:\n        sys.exit(1)\n\n\ndef main() -> None:\n    args = _parse_args()\n    task_ids = _collect_ids(args.task_ids, args.ids_file)\n    if args.limit and task_ids:\n        task_ids = task_ids[:args.limit]\n    _process_benchmark(args.output_dir, task_ids)\n\n\nif __name__ == \"__main__\":\n    main()\n```\n\n## test.sh Requirements\n\nThis is the most common source of adapter validation failures. The verifier uploads the entire `tests\u002F` directory to `\u002Ftests` inside the container, makes `test.sh` executable, and runs it.\n\n**test.sh MUST write a reward value to `\u002Flogs\u002Fverifier\u002Freward.txt`** -- a single float (e.g., `0` or `1` or `0.75`). If this file is missing, the verifier raises `RewardFileNotFoundError` and the trial fails.\n\nOptionally, test.sh can also write `\u002Flogs\u002Fverifier\u002Freward.json` for structured reward data (e.g., `{\"reward\": 1.0, \"quality\": 0.8}`). The verifier checks `reward.txt` first, then falls back to `reward.json`.\n\n### Verification Patterns\n\n**String matching** (GAIA pattern):\n```bash\n#!\u002Fbin\u002Fbash\nmkdir -p \u002Flogs\u002Fverifier\nEXPECTED=$(cat \u002Ftests\u002Fexpected_answer.txt)\nif [ ! -f \u002Fapp\u002Fanswer.txt ]; then\n    echo 0 > \u002Flogs\u002Fverifier\u002Freward.txt\n    exit 0\nfi\nACTUAL=$(cat \u002Fapp\u002Fanswer.txt | tr '[:upper:]' '[:lower:]' | xargs)\nEXPECTED_NORM=$(echo \"$EXPECTED\" | tr '[:upper:]' '[:lower:]' | xargs)\nif [ \"$ACTUAL\" = \"$EXPECTED_NORM\" ]; then\n    echo 1 > \u002Flogs\u002Fverifier\u002Freward.txt\nelse\n    echo 0 > \u002Flogs\u002Fverifier\u002Freward.txt\nfi\n```\n\n**Pytest-based** (CodePDE, hello-world pattern):\n```bash\n#!\u002Fbin\u002Fbash\n# Install test dependencies inside test.sh, not in the Dockerfile\napt-get update && apt-get install -y curl\ncurl -LsSf https:\u002F\u002Fastral.sh\u002Fuv\u002F0.9.7\u002Finstall.sh | sh\nsource $HOME\u002F.local\u002Fbin\u002Fenv\nuvx --with pytest==8.4.1 pytest \u002Ftests\u002Ftest_solution.py -rA\nif [ $? -eq 0 ]; then\n    echo 1 > \u002Flogs\u002Fverifier\u002Freward.txt\nelse\n    echo 0 > \u002Flogs\u002Fverifier\u002Freward.txt\nfi\n```\n\n**LLM judge** (SimpleQA pattern):\n```bash\n#!\u002Fbin\u002Fbash\nmkdir -p \u002Flogs\u002Fverifier\ncd \u002Ftests\npython3 llm_judge.py  # reads ground_truth.json, writes reward.txt\n```\n\n## task.toml Configuration\n\n```toml\nversion = \"1.0\"\nsource = \"mybenchmark\u002Finstance-42\"\n\n[metadata]\nauthor_name = \"Your Name\"\ndifficulty = \"medium\"           # easy, medium, hard\ncategory = \"qa\"\ntags = [\"factual\", \"reasoning\"]\n\n[agent]\ntimeout_sec = 600.0             # max wall-clock seconds for the agent\n\n[verifier]\ntimeout_sec = 600.0             # max seconds for test.sh\n# env = { API_KEY = \"...\" }    # env vars injected into test.sh\n\n[environment]\nbuild_timeout_sec = 600.0       # max seconds for docker build\ncpus = 1                        # CPU cores (default: 1)\nmemory_mb = 2048                # RAM in MB (default: 2048)\nstorage_mb = 10240              # disk in MB (default: 10240)\ngpus = 0                        # GPUs (default: 0)\nallow_internet = true           # network access (default: true)\n\n[solution]\n# env = { SECRET = \"...\" }     # env vars for solve.sh (OracleAgent)\n```\n\n## parity_experiment.json\n\nA JSON **array** of experiment objects tracking how Harbor results compare to the original benchmark. Required fields per entry: `adapter_name`, `agent`, `model`, `date`, `metrics`.\n\n```json\n[\n  {\n    \"adapter_name\": \"mybenchmark\",\n    \"agent\": \"codex@0.77.0\",\n    \"model\": \"openai\u002Fgpt-4o-2025-03-01\",\n    \"date\": \"2026-01-15\",\n    \"notes\": \"50 tasks; averaged over 3 trials\",\n    \"original_parity_repo\": \"https:\u002F\u002Fgithub.com\u002Fexample\u002Fmybenchmark\u002Ftree\u002Fharbor-parity\",\n    \"adapter_pr\": [\n      \"https:\u002F\u002Fgithub.com\u002Fharbor-framework\u002Fharbor\u002Fpull\u002F123\"\n    ],\n    \"dataset_pr\": [\n      \"https:\u002F\u002Fgithub.com\u002Fharbor-framework\u002Fharbor-datasets\u002Fpull\u002F45\"\n    ],\n    \"parity_pr\": [\n      \"https:\u002F\u002Fhuggingface.co\u002Fdatasets\u002Fharborframework\u002Fparity-experiments\u002Fdiscussions\u002F10\"\n    ],\n    \"metrics\": [\n      {\n        \"benchmark_name\": \"MyBenchmark\",\n        \"metric\": \"Accuracy\",\n        \"original\": \"0.72 +\u002F- 0.03\",\n        \"harbor\": \"0.71 +\u002F- 0.02\",\n        \"original_trials\": [0.73, 0.69, 0.74],\n        \"harbor_trials\": [0.72, 0.70, 0.71]\n      }\n    ]\n  }\n]\n```\n\nThe `adapter_pr`, `dataset_pr`, and `parity_pr` fields in `parity_experiment.json` must be arrays of URLs when present. Each metric object needs `benchmark_name`, `metric`, and at least one of `original`, `tb_adapter`, or `harbor`.\n\nThe `harbor_adapter` entry must include `parity_matching_agents` (array of `\"agent@version+model\"` strings). In the harbor-datasets `registry.json`, use `\"version\": \"parity\"` to enable `harbor jobs start -d mybenchmark@parity`.\n\n## adapter_metadata.json\n\nA JSON **array** describing the adapter and its relationship to the original benchmark. Required fields per entry: `adapter_name`, `adapter_builders`, `original_benchmark`, `harbor_adapter`.\n\n```json\n[\n  {\n    \"adapter_name\": \"mybenchmark\",\n    \"adapter_builders\": [\n      \"Your Name (you@example.com)\"\n    ],\n    \"original_benchmark\": [\n      {\n        \"split\": \"test\",\n        \"size\": 500,\n        \"harness\": \"agent\",\n        \"supported_agents\": [\"openhands\"],\n        \"adaptable\": true,\n        \"notes\": \"Only test split has ground-truth answers.\"\n      }\n    ],\n    \"harbor_adapter\": [\n      {\n        \"split\": \"test\",\n        \"adapted_benchmark_size\": 500,\n        \"parity_benchmark_size\": 50,\n        \"parity_sampling_rate\": 0.1,\n        \"registry_benchmark_size\": 500,\n        \"parity_costs\": \"150\",\n        \"parity_matching_agents\": [\"codex@0.77.0+openai\u002Fgpt-4o-2025-03-01\"],\n        \"notes\": \"Full benchmark adapted. Parity on 10% sample.\"\n      }\n    ]\n  }\n]\n```\n\n## Validation\n\nThe `harbor adapters validate` command (backed by `scripts\u002Fvalidate_adapter.py`) checks:\n\n1. **Required files exist**: `adapter.py`, `run_adapter.py`, `README.md`, `parity_experiment.json`, `adapter_metadata.json`, `template\u002F` directory\n2. **Template structure**: `template\u002Ftask.toml`, `template\u002Finstruction.md`, `template\u002Fenvironment\u002FDockerfile`, `template\u002Ftests\u002Ftest.sh`, `template\u002Fsolution\u002Fsolve.sh`\n3. **test.sh writes reward**: Template `tests\u002Ftest.sh` must contain a write to `\u002Flogs\u002Fverifier\u002Freward.txt`\n4. **parity_experiment.json schema**: Valid JSON array with required fields (`adapter_name`, `agent`, `model`, `date`, `metrics`)\n5. **adapter_metadata.json schema**: Valid JSON array with required fields (`adapter_name`, `adapter_builders`, `original_benchmark`, `harbor_adapter`)\n6. **README.md compliance**: Checks for \"Overview\", \"Parity\", \"Citation\" sections; warns about unreplaced template placeholders like `{{ADAPTER_ID}}`\n7. **Cross-validation**: Compares `adapter_name` between metadata and parity files\n\n```bash\n# Validate adapter structure\nharbor adapters validate adapters\u002Fmybenchmark\n\n# Generate a single task to test\npython3 adapters\u002Fmybenchmark\u002Frun_adapter.py \\\n  --output-dir datasets\u002Fmybenchmark \\\n  --task-ids instance-001\n\n# Validate generated task\nharbor tasks check datasets\u002Fmybenchmark\u002Fmybenchmark-instance-001\n\n# Run a single trial with oracle agent to verify the solution works\nharbor trials start -p datasets\u002Fmybenchmark\u002Fmybenchmark-instance-001 --agent oracle\n\n# Run all tasks as a batch job\nharbor jobs start -p datasets\u002Fmybenchmark --agent oracle\n```\n\n## Post-Implementation Workflow\n\nAfter generating valid tasks, complete these steps before submitting:\n\n1. **Oracle Verification** — Run oracle agent across all tasks; must reach 100% pass rate.\n2. **Parity Planning** — Select a representative sample (typically 10%) for parity runs.\n3. **Parity Experiments** — Run target agent+model against both original harness and Harbor, using `run_\u003Cadapter-id>.yaml`. Record all trial scores.\n4. **Results Documentation** — Fill `parity_experiment.json`; upload results to the HuggingFace parity dataset.\n5. **Dataset Registration** — Fork `harbor-datasets`, place tasks under `datasets\u002F\u003Cadapter-id>\u002F`, open a PR with `\"version\": \"parity\"` in `registry.json`.\n6. **Adapter PR** — Open a PR to the Harbor repo with adapter code.\n7. **README Thoroughness** — Ensure README covers Overview, Parity results, License, and Citation.\n\nSee [references\u002Fadapter-anatomy.md](references\u002Fadapter-anatomy.md#6-post-implementation-workflow) for commands and YAML job config format.\n\n## Gotchas\n\n- **Missing reward.txt write**: The most common failure. test.sh must always write to `\u002Flogs\u002Fverifier\u002Freward.txt`, even on error paths.\n- **Wrong parity_experiment.json format**: It is a JSON array `[{...}]`, not a plain object `{...}`. Using the singular filename `parity_experiment.json`, not plural.\n- **Forgetting adapter_metadata.json**: This file is required and checked by the validator. Include builder contact info (email).\n- **Baking test dependencies into Dockerfile**: Test-only dependencies (pytest, evaluation scripts) should be installed inside `test.sh`, not in the Docker image. The `tests\u002F` directory is uploaded separately at verification time.\n- **Including tests\u002F or solution\u002F in Docker image**: These directories should not be COPYed in the Dockerfile. They are injected by Harbor at runtime.\n- **Unreplaced template placeholders**: After scaffolding with `harbor adapters init`, replace all `{{ADAPTER_ID}}`, `{{BENCHMARK_NAME}}`, etc. in README.md and other files.\n- **Using \u002Fapp vs \u002Fworkspace inconsistently**: Pick one working directory and be consistent between instruction.md, test.sh, and Dockerfile WORKDIR. Some adapters use `\u002Fapp`, others use `\u002Fworkspace`.\n- **Not escaping shell-unsafe characters**: Answers containing single quotes, backticks, or dollar signs can break test.sh or solve.sh. Escape them when embedding in shell scripts.\n- **Missing `mkdir -p \u002Flogs\u002Fverifier`**: Some base images may not have this directory. Create it in test.sh before writing reward.txt.\n\n## Existing Adapter Patterns\n\nSee [references\u002Fadapter-anatomy.md](references\u002Fadapter-anatomy.md) for annotated walkthroughs of all existing adapters (SimpleQA, GAIA, AiderPolyglot, CodePDE, spider2-dbt, StrongReject) and a full comparison table.\n","# Creating Harbor Benchmark Adapters\n\nAdapters convert external benchmarks (SimpleQA, GAIA, AiderPolyglot, CodePDE, spider2-dbt, etc.) into Harbor's standardized task directory format. Each adapter reads source benchmark data and generates many individual task directories, one per benchmark instance.\n\n## When to Use an Adapter vs. Creating Tasks Directly\n\n**Use an adapter when:**\n- You have an existing benchmark dataset with many instances\n- Tasks share the same structure but differ in data (questions, code, etc.)\n- You want to track evaluation parity with the original benchmark\n\n**Create tasks directly when:**\n- You're authoring original evaluation challenges\n- Each task has unique structure and environment\n- There are fewer than ~10 tasks\n\n## Adapter Directory Structure\n\n```\nadapters\u002F\u003Cadapter-id>\u002F\n├── adapter.py              # Core conversion logic (adapter class)\n├── run_adapter.py          # CLI entry point\n├── run_\u003Cadapter-id>.yaml   # Job config for oracle and parity experiment runs\n├── README.md               # Benchmark docs, license, parity, citation\n├── parity_experiment.json  # Parity tracking results (JSON array)\n├── adapter_metadata.json   # Adapter metadata (JSON array)\n└── template\u002F               # Task template files\n    ├── task.toml\n    ├── instruction.md\n    ├── environment\u002F\n    │   └── Dockerfile\n    ├── tests\u002F\n    │   └── test.sh\n    └── solution\u002F\n        └── solve.sh\n```\n\nAll template files, parity_experiment.json, adapter_metadata.json, and README.md are required. The validator (`harbor adapters validate`) checks for all of them. The YAML job config is not validated but is expected for parity experiments.\n\n## Scaffolding with harbor adapters init\n\n```bash\nharbor adapters init my-benchmark\n```\n\nThe interactive `AdapterWizard` prompts for:\n- **Benchmark name** -- Vanilla name (e.g., \"SWE-bench\")\n- **Adapter ID** -- Lowercase, no spaces (e.g., `swebench`)\n- **Class name** -- Python class name (auto-derived or overridden, e.g., `SwebenchAdapter`)\n- **Description** -- One-line description for the README\n- **Source URL** -- Link to original benchmark paper or repo\n- **License** -- Dataset license for the README\n\nIf all fields are provided as CLI arguments, the wizard runs non-interactively. The wizard renders Jinja2 templates from `src\u002Fharbor\u002Fcli\u002Ftemplate-adapter\u002F` and places the result under `adapters\u002F\u003Cadapter-id>\u002F`.\n\nAfter scaffolding, validate:\n\n```bash\nharbor adapters validate adapters\u002Fmy-benchmark\n```\n\n## Writing adapter.py\n\nThe adapter class has no formal base class, but every adapter must implement the same interface: a `NAME` attribute, `make_local_task_id` static method, and `generate_task` method.\n\n### Core Class Interface\n\n```python\nimport shutil\nfrom pathlib import Path\nfrom loguru import logger\n\n\nclass MyBenchmarkAdapter:\n    \"\"\"Converts MyBenchmark instances into Harbor task directories.\"\"\"\n\n    NAME = \"mybenchmark\"\n\n    @staticmethod\n    def make_local_task_id(source_id: str) -> str:\n        \"\"\"Convert a source benchmark ID to a Harbor task directory name.\n\n        Convention: lowercase, hyphens as separators, prefixed with\n        the adapter ID to prevent collisions across benchmarks.\n        \"\"\"\n        normalized = source_id.lower().replace(\"_\", \"-\")\n        return f\"mybenchmark-{normalized}\"\n\n    def __init__(self, task_dir: Path, **kwargs: object):\n        \"\"\"Initialize the adapter.\n\n        Args:\n            task_dir: Root directory where generated tasks will be written.\n                      Each task gets a subdirectory: task_dir \u002F local_task_id\n            **kwargs: Adapter-specific configuration (data paths, splits, etc.)\n        \"\"\"\n        self.task_dir = Path(task_dir)\n        self._config = kwargs\n\n        # Locate template files relative to this file\n        self.template_dir = Path(__file__).parent \u002F \"template\"\n        if not self.template_dir.exists():\n            raise FileNotFoundError(f\"Template directory not found: {self.template_dir}\")\n\n        # Load your benchmark data here.\n        # Examples from real adapters:\n        #   SimpleQA: pandas.read_csv() from a URL\n        #   GAIA: HuggingFace datasets or local JSONL\n        #   AiderPolyglot: walk language dirs, parse .meta\u002Fconfig.json\n        #   CodePDE: clone repo, load PDE descriptions\n        logger.info(f\"Initializing MyBenchmarkAdapter -> {self.task_dir}\")\n\n    def _copy_template(self, output_dir: Path) -> None:\n        \"\"\"Copy baseline template files into the output directory.\"\"\"\n        shutil.copytree(self.template_dir, output_dir, dirs_exist_ok=True)\n\n    def generate_task(self, source_id: str, local_task_id: str) -> None:\n        \"\"\"Generate a single Harbor task directory.\n\n        This is the core method. It must create a complete, valid task directory\n        with all required files: task.toml, instruction.md, environment\u002FDockerfile,\n        tests\u002Ftest.sh, and optionally solution\u002Fsolve.sh.\n\n        Args:\n            source_id: Identifier from the original benchmark\n            local_task_id: Harbor task directory name (from make_local_task_id)\n        \"\"\"\n        output_dir = self.task_dir \u002F local_task_id\n        output_dir.mkdir(parents=True, exist_ok=True)\n\n        # 1. Copy baseline template\n        self._copy_template(output_dir)\n\n        # 2. Look up the source instance data\n        # instance = self.data[source_id]\n\n        # 3. Write task-specific files:\n        #    - instruction.md  (the prompt the agent sees)\n        #    - task.toml       (metadata, timeouts, resource limits)\n        #    - environment\u002FDockerfile\n        #    - tests\u002Ftest.sh   (MUST write to \u002Flogs\u002Fverifier\u002Freward.txt)\n        #    - solution\u002Fsolve.sh (reference solution for OracleAgent)\n        #    - Copy attachments into environment\u002F if needed\n\n        logger.info(f\"Generated task {local_task_id} in {output_dir.resolve()}\")\n```\n\n### The generate_task Method in Detail\n\nThe `generate_task` method receives `source_id` (the original benchmark's identifier) and `local_task_id` (the Harbor directory name produced by `make_local_task_id`). It builds the output path from `self.task_dir \u002F local_task_id`.\n\nTypical steps inside `generate_task`:\n\n1. **Create directory and copy template** -- `shutil.copytree` with `dirs_exist_ok=True`\n2. **Load instance data** -- look up the specific benchmark record\n3. **Write instruction.md** -- replace placeholders or write dynamically\n4. **Write task.toml** -- set metadata, tags, timeouts\n5. **Write or modify Dockerfile** -- add `COPY` commands for attachments\n6. **Write tests\u002Ftest.sh** -- the verification script (see test.sh requirements below)\n7. **Write solution\u002Fsolve.sh** -- reference solution for oracle agent\n8. **Copy attachments** -- instance-specific files into `environment\u002Fworkspace\u002F` or `environment\u002F`\n\n### Data Loading Patterns (from real adapters)\n\n| Adapter | Data Source | Loading Pattern |\n|---------|-----------|----------------|\n| SimpleQA | OpenAI public CSV | `pandas.read_csv(url)` in `__init__` |\n| GAIA | HuggingFace or local JSONL | `datasets` library or line-by-line JSON |\n| AiderPolyglot | Exercism repo | Walk language dirs, parse `.meta\u002Fconfig.json` |\n| CodePDE | CodePDE repo | Clone repo, load PDE description files |\n| spider2-dbt | Spider2-DBT repo | Clone repo, read dbt project structures |\n\n### Template Filling Patterns\n\n- **Simple string replacement**: `content.replace(\"{KEY}\", value)` -- used by GAIA\n- **Placeholder replacement**: `content.replace(\"{{PLACEHOLDER}}\", value)` -- common pattern\n- **Direct file writes**: Build content programmatically and write -- used by AiderPolyglot\n- **Jinja2**: For complex templates with conditionals (not used by existing adapters but supported)\n\n### Handling Attachments\n\nWhen source benchmarks include per-instance files (images, CSVs, databases):\n\n1. Copy files into `environment\u002Fworkspace\u002F` in the task directory\n2. Add `COPY workspace\u002F \u002Fapp\u002Ffiles\u002F` to the Dockerfile (GAIA pattern)\n3. Reference files from `instruction.md` using the container path (e.g., `\u002Fapp\u002Ffiles\u002Fdata.csv`)\n4. Mention the attachment in the instruction so the agent knows about it\n\n## Writing run_adapter.py\n\nThe CLI entry point follows a standard pattern with helper functions for argument parsing, ID collection, repo cloning, and benchmark processing. The default output directory is `datasets\u002F\u003Cadapter-id>`.\n\n```python\n#!\u002Fusr\u002Fbin\u002Fenv python3\nimport argparse\nimport sys\nfrom pathlib import Path\nfrom loguru import logger\n\nsys.path.insert(0, str(Path(__file__).parent.parent))\nfrom mybenchmark.adapter import MyBenchmarkAdapter\n\n\ndef _parse_args() -> argparse.Namespace:\n    parser = argparse.ArgumentParser(\n        description=\"Generate Harbor tasks from MyBenchmark\",\n        formatter_class=argparse.ArgumentDefaultsHelpFormatter,\n    )\n    parser.add_argument(\n        \"--output-dir\", type=Path,\n        default=Path(\"datasets\u002Fmybenchmark\"),\n        help=\"Directory to write generated Harbor task directories\",\n    )\n    parser.add_argument(\n        \"--task-ids\", nargs=\"*\",\n        help=\"Specific source task IDs to generate (space-separated)\",\n    )\n    parser.add_argument(\n        \"--ids-file\", type=Path,\n        help=\"Path to a file containing source task IDs, one per line\",\n    )\n    parser.add_argument(\n        \"--limit\", type=int,\n        help=\"Limit the number of tasks to generate\",\n    )\n    return parser.parse_args()\n\n\ndef _collect_ids(task_ids: list[str] | None, ids_file: Path | None) -> list[str]:\n    \"\"\"Collect task IDs from command line args or a file.\"\"\"\n    if task_ids:\n        return task_ids\n    if ids_file:\n        return [line.strip() for line in ids_file.read_text().splitlines() if line.strip()]\n    return []\n\n\ndef _process_benchmark(output_dir: Path, task_ids: list[str]) -> None:\n    \"\"\"Initialize adapter and generate all tasks.\"\"\"\n    output_dir.mkdir(parents=True, exist_ok=True)\n    adapter = MyBenchmarkAdapter(task_dir=output_dir)\n\n    if not task_ids:\n        # Load all available IDs from the benchmark data\n        task_ids = adapter.get_all_source_ids()\n\n    errors = []\n    for i, source_id in enumerate(task_ids, 1):\n        local_task_id = MyBenchmarkAdapter.make_local_task_id(source_id)\n        try:\n            adapter.generate_task(source_id, local_task_id)\n            logger.info(f\"[{i}\u002F{len(task_ids)}] {source_id} -> {local_task_id}\")\n        except Exception as e:\n            errors.append((source_id, str(e)))\n            logger.error(f\"[{i}\u002F{len(task_ids)}] {source_id} FAILED: {e}\")\n\n    logger.info(f\"Generated {len(task_ids) - len(errors)}\u002F{len(task_ids)} tasks\")\n    if errors:\n        sys.exit(1)\n\n\ndef main() -> None:\n    args = _parse_args()\n    task_ids = _collect_ids(args.task_ids, args.ids_file)\n    if args.limit and task_ids:\n        task_ids = task_ids[:args.limit]\n    _process_benchmark(args.output_dir, task_ids)\n\n\nif __name__ == \"__main__\":\n    main()\n```\n\n## test.sh Requirements\n\nThis is the most common source of adapter validation failures. The verifier uploads the entire `tests\u002F` directory to `\u002Ftests` inside the container, makes `test.sh` executable, and runs it.\n\n**test.sh MUST write a reward value to `\u002Flogs\u002Fverifier\u002Freward.txt`** -- a single float (e.g., `0` or `1` or `0.75`). If this file is missing, the verifier raises `RewardFileNotFoundError` and the trial fails.\n\nOptionally, test.sh can also write `\u002Flogs\u002Fverifier\u002Freward.json` for structured reward data (e.g., `{\"reward\": 1.0, \"quality\": 0.8}`). The verifier checks `reward.txt` first, then falls back to `reward.json`.\n\n### Verification Patterns\n\n**String matching** (GAIA pattern):\n```bash\n#!\u002Fbin\u002Fbash\nmkdir -p \u002Flogs\u002Fverifier\nEXPECTED=$(cat \u002Ftests\u002Fexpected_answer.txt)\nif [ ! -f \u002Fapp\u002Fanswer.txt ]; then\n    echo 0 > \u002Flogs\u002Fverifier\u002Freward.txt\n    exit 0\nfi\nACTUAL=$(cat \u002Fapp\u002Fanswer.txt | tr '[:upper:]' '[:lower:]' | xargs)\nEXPECTED_NORM=$(echo \"$EXPECTED\" | tr '[:upper:]' '[:lower:]' | xargs)\nif [ \"$ACTUAL\" = \"$EXPECTED_NORM\" ]; then\n    echo 1 > \u002Flogs\u002Fverifier\u002Freward.txt\nelse\n    echo 0 > \u002Flogs\u002Fverifier\u002Freward.txt\nfi\n```\n\n**Pytest-based** (CodePDE, hello-world pattern):\n```bash\n#!\u002Fbin\u002Fbash\n# Install test dependencies inside test.sh, not in the Dockerfile\napt-get update && apt-get install -y curl\ncurl -LsSf https:\u002F\u002Fastral.sh\u002Fuv\u002F0.9.7\u002Finstall.sh | sh\nsource $HOME\u002F.local\u002Fbin\u002Fenv\nuvx --with pytest==8.4.1 pytest \u002Ftests\u002Ftest_solution.py -rA\nif [ $? -eq 0 ]; then\n    echo 1 > \u002Flogs\u002Fverifier\u002Freward.txt\nelse\n    echo 0 > \u002Flogs\u002Fverifier\u002Freward.txt\nfi\n```\n\n**LLM judge** (SimpleQA pattern):\n```bash\n#!\u002Fbin\u002Fbash\nmkdir -p \u002Flogs\u002Fverifier\ncd \u002Ftests\npython3 llm_judge.py  # reads ground_truth.json, writes reward.txt\n```\n\n## task.toml Configuration\n\n```toml\nversion = \"1.0\"\nsource = \"mybenchmark\u002Finstance-42\"\n\n[metadata]\nauthor_name = \"Your Name\"\ndifficulty = \"medium\"           # easy, medium, hard\ncategory = \"qa\"\ntags = [\"factual\", \"reasoning\"]\n\n[agent]\ntimeout_sec = 600.0             # max wall-clock seconds for the agent\n\n[verifier]\ntimeout_sec = 600.0             # max seconds for test.sh\n# env = { API_KEY = \"...\" }    # env vars injected into test.sh\n\n[environment]\nbuild_timeout_sec = 600.0       # max seconds for docker build\ncpus = 1                        # CPU cores (default: 1)\nmemory_mb = 2048                # RAM in MB (default: 2048)\nstorage_mb = 10240              # disk in MB (default: 10240)\ngpus = 0                        # GPUs (default: 0)\nallow_internet = true           # network access (default: true)\n\n[solution]\n# env = { SECRET = \"...\" }     # env vars for solve.sh (OracleAgent)\n```\n\n## parity_experiment.json\n\nA JSON **array** of experiment objects tracking how Harbor results compare to the original benchmark. Required fields per entry: `adapter_name`, `agent`, `model`, `date`, `metrics`.\n\n```json\n[\n  {\n    \"adapter_name\": \"mybenchmark\",\n    \"agent\": \"codex@0.77.0\",\n    \"model\": \"openai\u002Fgpt-4o-2025-03-01\",\n    \"date\": \"2026-01-15\",\n    \"notes\": \"50 tasks; averaged over 3 trials\",\n    \"original_parity_repo\": \"https:\u002F\u002Fgithub.com\u002Fexample\u002Fmybenchmark\u002Ftree\u002Fharbor-parity\",\n    \"adapter_pr\": [\n      \"https:\u002F\u002Fgithub.com\u002Fharbor-framework\u002Fharbor\u002Fpull\u002F123\"\n    ],\n    \"dataset_pr\": [\n      \"https:\u002F\u002Fgithub.com\u002Fharbor-framework\u002Fharbor-datasets\u002Fpull\u002F45\"\n    ],\n    \"parity_pr\": [\n      \"https:\u002F\u002Fhuggingface.co\u002Fdatasets\u002Fharborframework\u002Fparity-experiments\u002Fdiscussions\u002F10\"\n    ],\n    \"metrics\": [\n      {\n        \"benchmark_name\": \"MyBenchmark\",\n        \"metric\": \"Accuracy\",\n        \"original\": \"0.72 +\u002F- 0.03\",\n        \"harbor\": \"0.71 +\u002F- 0.02\",\n        \"original_trials\": [0.73, 0.69, 0.74],\n        \"harbor_trials\": [0.72, 0.70, 0.71]\n      }\n    ]\n  }\n]\n```\n\nThe `adapter_pr`, `dataset_pr`, and `parity_pr` fields in `parity_experiment.json` must be arrays of URLs when present. Each metric object needs `benchmark_name`, `metric`, and at least one of `original`, `tb_adapter`, or `harbor`.\n\nThe `harbor_adapter` entry must include `parity_matching_agents` (array of `\"agent@version+model\"` strings). In the harbor-datasets `registry.json`, use `\"version\": \"parity\"` to enable `harbor jobs start -d mybenchmark@parity`.\n\n## adapter_metadata.json\n\nA JSON **array** describing the adapter and its relationship to the original benchmark. Required fields per entry: `adapter_name`, `adapter_builders`, `original_benchmark`, `harbor_adapter`.\n\n```json\n[\n  {\n    \"adapter_name\": \"mybenchmark\",\n    \"adapter_builders\": [\n      \"Your Name (you@example.com)\"\n    ],\n    \"original_benchmark\": [\n      {\n        \"split\": \"test\",\n        \"size\": 500,\n        \"harness\": \"agent\",\n        \"supported_agents\": [\"openhands\"],\n        \"adaptable\": true,\n        \"notes\": \"Only test split has ground-truth answers.\"\n      }\n    ],\n    \"harbor_adapter\": [\n      {\n        \"split\": \"test\",\n        \"adapted_benchmark_size\": 500,\n        \"parity_benchmark_size\": 50,\n        \"parity_sampling_rate\": 0.1,\n        \"registry_benchmark_size\": 500,\n        \"parity_costs\": \"150\",\n        \"parity_matching_agents\": [\"codex@0.77.0+openai\u002Fgpt-4o-2025-03-01\"],\n        \"notes\": \"Full benchmark adapted. Parity on 10% sample.\"\n      }\n    ]\n  }\n]\n```\n\n## Validation\n\nThe `harbor adapters validate` command (backed by `scripts\u002Fvalidate_adapter.py`) checks:\n\n1. **Required files exist**: `adapter.py`, `run_adapter.py`, `README.md`, `parity_experiment.json`, `adapter_metadata.json`, `template\u002F` directory\n2. **Template structure**: `template\u002Ftask.toml`, `template\u002Finstruction.md`, `template\u002Fenvironment\u002FDockerfile`, `template\u002Ftests\u002Ftest.sh`, `template\u002Fsolution\u002Fsolve.sh`\n3. **test.sh writes reward**: Template `tests\u002Ftest.sh` must contain a write to `\u002Flogs\u002Fverifier\u002Freward.txt`\n4. **parity_experiment.json schema**: Valid JSON array with required fields (`adapter_name`, `agent`, `model`, `date`, `metrics`)\n5. **adapter_metadata.json schema**: Valid JSON array with required fields (`adapter_name`, `adapter_builders`, `original_benchmark`, `harbor_adapter`)\n6. **README.md compliance**: Checks for \"Overview\", \"Parity\", \"Citation\" sections; warns about unreplaced template placeholders like `{{ADAPTER_ID}}`\n7. **Cross-validation**: Compares `adapter_name` between metadata and parity files\n\n```bash\n# Validate adapter structure\nharbor adapters validate adapters\u002Fmybenchmark\n\n# Generate a single task to test\npython3 adapters\u002Fmybenchmark\u002Frun_adapter.py \\\n  --output-dir datasets\u002Fmybenchmark \\\n  --task-ids instance-001\n\n# Validate generated task\nharbor tasks check datasets\u002Fmybenchmark\u002Fmybenchmark-instance-001\n\n# Run a single trial with oracle agent to verify the solution works\nharbor trials start -p datasets\u002Fmybenchmark\u002Fmybenchmark-instance-001 --agent oracle\n\n# Run all tasks as a batch job\nharbor jobs start -p datasets\u002Fmybenchmark --agent oracle\n```\n\n## Post-Implementation Workflow\n\nAfter generating valid tasks, complete these steps before submitting:\n\n1. **Oracle Verification** — Run oracle agent across all tasks; must reach 100% pass rate.\n2. **Parity Planning** — Select a representative sample (typically 10%) for parity runs.\n3. **Parity Experiments** — Run target agent+model against both original harness and Harbor, using `run_\u003Cadapter-id>.yaml`. Record all trial scores.\n4. **Results Documentation** — Fill `parity_experiment.json`; upload results to the HuggingFace parity dataset.\n5. **Dataset Registration** — Fork `harbor-datasets`, place tasks under `datasets\u002F\u003Cadapter-id>\u002F`, open a PR with `\"version\": \"parity\"` in `registry.json`.\n6. **Adapter PR** — Open a PR to the Harbor repo with adapter code.\n7. **README Thoroughness** — Ensure README covers Overview, Parity results, License, and Citation.\n\nSee [references\u002Fadapter-anatomy.md](references\u002Fadapter-anatomy.md#6-post-implementation-workflow) for commands and YAML job config format.\n\n## Gotchas\n\n- **Missing reward.txt write**: The most common failure. test.sh must always write to `\u002Flogs\u002Fverifier\u002Freward.txt`, even on error paths.\n- **Wrong parity_experiment.json format**: It is a JSON array `[{...}]`, not a plain object `{...}`. Using the singular filename `parity_experiment.json`, not plural.\n- **Forgetting adapter_metadata.json**: This file is required and checked by the validator. Include builder contact info (email).\n- **Baking test dependencies into Dockerfile**: Test-only dependencies (pytest, evaluation scripts) should be installed inside `test.sh`, not in the Docker image. The `tests\u002F` directory is uploaded separately at verification time.\n- **Including tests\u002F or solution\u002F in Docker image**: These directories should not be COPYed in the Dockerfile. They are injected by Harbor at runtime.\n- **Unreplaced template placeholders**: After scaffolding with `harbor adapters init`, replace all `{{ADAPTER_ID}}`, `{{BENCHMARK_NAME}}`, etc. in README.md and other files.\n- **Using \u002Fapp vs \u002Fworkspace inconsistently**: Pick one working directory and be consistent between instruction.md, test.sh, and Dockerfile WORKDIR. Some adapters use `\u002Fapp`, others use `\u002Fworkspace`.\n- **Not escaping shell-unsafe characters**: Answers containing single quotes, backticks, or dollar signs can break test.sh or solve.sh. Escape them when embedding in shell scripts.\n- **Missing `mkdir -p \u002Flogs\u002Fverifier`**: Some base images may not have this directory. Create it in test.sh before writing reward.txt.\n\n## Existing Adapter Patterns\n\nSee [references\u002Fadapter-anatomy.md](references\u002Fadapter-anatomy.md) for annotated walkthroughs of all existing adapters (SimpleQA, GAIA, AiderPolyglot, CodePDE, spider2-dbt, StrongReject) and a full comparison table.\n",{"name":5,"description":7},"main","dc80b550f75e66d7ec0f41f4761cb48b9f69f80d",".claude\u002Fskills\u002Fharbor-adapter-creator","https:\u002F\u002Fgithub.com\u002Fjunjiezhou1122\u002FautoResearch","https:\u002F\u002Fgithub.com\u002Fjunjiezhou1122","AI4Human","2026-10-10 19:05:05",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add junjiezhou1122\u002FautoResearch --skill harbor-adapter-creator",{"tool":38,"command":39},"bunx","bunx skills add junjiezhou1122\u002FautoResearch --skill harbor-adapter-creator",{"tool":41,"command":42},"pnpm","pnpm dlx skills add junjiezhou1122\u002FautoResearch --skill harbor-adapter-creator","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjunjiezhou1122\u002FautoResearch\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fharbor-adapter-creator\u002FSKILL.md",true,[46,50],{"path":47,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":16},"LICENSE","许可证",10767,{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Fadapter-anatomy.md","REFERENCE","参考文档",21263,"https:\u002F\u002Fgithub.com\u002Fjunjiezhou1122\u002FautoResearch\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fharbor-adapter-creator\u002Freferences\u002Fadapter-anatomy.md",[57],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":61,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":20},"01M7EB8122E2YDSYJ21HAFHQEK","create-adapter","Scaffold a new Harbor benchmark adapter by running `harbor adapter init` and then guide implementation using the Adapters Agent Guide as the authoritative spec.","https:\u002F\u002Fgithub.com\u002Fjunjiezhou1122\u002FautoResearch\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fcreate-adapter\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjunjiezhou1122\u002FautoResearch\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fcreate-adapter\u002FSKILL.md",[],[]]