Create adapter

From harbor-framework/harbor · View interactive version

Create adapter is an AI agent skill from the GitHub repository harbor-framework/harbor. Scaffold a new Harbor benchmark adapter by running `harbor adapter init` and then guide implementation using the Adapters Agent Guide as the authoritative spec.

How to use this skill

Skill file

Create Adapter

Bootstrap a new benchmark adapter in the Harbor repository. This skill scaffolds the adapter directory with harbor adapter init and then defers to the adapter tutorial for every implementation decision.

Authoritative reference

The adapter tutorial is the authoritative specification for this skill. Read it in full before taking any action beyond scaffolding:

adapters/ADAPTER_CONTRIBUTING.md

That path is relative to the Harbor repo root (a skill prerequisite — see below). The tutorial contains:

Do not substitute prior knowledge for the contents of that file. Treat it as the contract.

Prerequisites

Workflow

1. Read the tutorial

Before any filesystem or CLI action, Read adapters/ADAPTER_CONTRIBUTING.md in full. Pay particular attention to:

2. Gather benchmark context from the user

Collect the following before scaffolding. If the user has not provided an item, ask before proceeding — these inputs shape the scaffold and the tutorial steps that follow.

| Field | Why it matters |

|-------|---------------|

| Adapter name | Lowercase, hyphen-separated. Must match the benchmark's common identifier (e.g., swe-bench, aider-polyglot). Becomes the directory under adapters/ and, after underscore conversion, the Python package name. |

| Human-readable name | Passed via --name; appears in the generated README. |

| Upstream repo URL | Needed for tutorial Step 1 (benchmark analysis) and for the original_parity_repo field later. |

| Oracle solutions available? | If the benchmark ships reference solutions, use them. If not, oracle solutions must be LLM-generated (tutorial Step 3 → "Benchmarks without oracle solutions"). |

| Agent scenario | Which of Step 4's scenarios applies: (1) existing compatible agent, (2) fork + add LLM agent, or (3) custom agent. This shapes the parity plan. |

3. Create the adapter branch

Per tutorial Step 2, work on a dedicated branch:

git checkout -b <adapter-name>-adapter

4. Run the scaffold

Prefer the non-interactive form when both names are known:

harbor adapter init <adapter-name> --name "<Human-Readable Name>"

Otherwise run harbor adapter init interactively and let the CLI prompt.

Expected output: a new directory at adapters/<adapter-name>/ containing pyproject.toml, README.md, src/<adapter_name>/, and the template task files under src/<adapter_name>/task-template/. Verify the directory exists before continuing.

5. Hand off to the tutorial

Continue from "Step 1. Understand the Original Benchmark" in the tutorial. Do not invent structure, field names, or workflow beyond what the guide specifies.

High-priority gotchas (each is documented in the tutorial, but these are the most common adapter-build failures — surface them proactively as you work through the steps):

Reference adapters by scenario

When implementation questions come up, point at an existing adapter that matches the benchmark's shape:

| Scenario | Example adapter | When to use |

|----------|----------------|-------------|

| Compatible agent already exists | adapters/adebench/ | Upstream already supports Claude-Code / Codex / OpenHands / Gemini-CLI |

| Fork upstream + add LLM agent | adapters/evoeval/ | LLM-based benchmark with no Harbor-compatible agent |

| Custom agent, separate dataset | adapters/bixbench/, adapters/financeagent/ | Custom interaction semantics; financeagent also demos LLM-as-a-Judge |

| Custom agent in-place | adapters/medagentbench/ | Custom HTTPAgent, no separate dataset |

| Multi-agent workflow | adapters/cooperbench/ | Multiple agents coordinate via messaging / sidecars |

| GPU tasks | adapters/featurebench/ | Comprehensive Docker + Modal GPU example |

What this skill does NOT do

Failure modes

| Symptom | Likely cause | Action |

|---------|--------------|--------|

| harbor: command not found | Harbor CLI not installed | Install with uv tool install harbor or the repository's development setup. |

| harbor adapter init fails with a name validation error | Adapter name contains invalid characters | Re-run with a lowercase, hyphen-separated name. |

| Scaffold succeeds but adapters/<name>/ is not present | Running from outside the repository root | cd to the Harbor repository root and re-run. |

| Oracle passes locally but parity later fails spuriously | Stale Harbor checkout | git fetch origin && git status; pull main if behind. |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.