MCPInstall

create-task

Create a new Harbor task for evaluating agents. Use when the user wants to scaffold, build, or design a new task, benchmark problem, or eval. Guides through instruction writing, environment setup, verifier design (pytest vs Reward Kit vs custom), and solution scripting.

Installs
908
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/harbor-framework/harbor --skill create-task
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads create-task automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Guide the user through creating a new Harbor task end-to-end. Don't just dump commands — walk them through each decision, especially around the verifier (which is usually the hardest part).

Step 1: Scaffold the task

harbor task init "<org>/<task-name>"

Useful flags:

  • --description "..."
  • --author "Jane Doe <jane@example.com>" (repeat for multiple authors)
  • --no-pytest — skip the pytest test template (use if planning Reward Kit or custom verifier)
  • --no-solution — skip solution/ directory
  • --metadata-template path.toml — pre-populate task.toml

Produces:

<task-name>/
├── instruction.md         # Task prompt for the agent
├── task.toml              # Config and metadata
├── environment/Dockerfile # Container definition
├── solution/solve.sh      # Reference solution (optional)
└── tests/test.sh          # Verifier script

If the user wants a multi-step task (ordered steps with per-step instructions, tests, and early stopping against a shared container), scaffold the single-step layout first, then convert to the steps/ layout described in the Multi-step tasks section below.

Step 2: Write instruction.md

This is the prompt the agent receives. Help the user write it clearly:

  • State the goal concretely — what file to create, what behavior to produce
  • Specify expected outputs — paths, formats, content
  • Include constraints — language, tools, approach
  • Don't leak the tests — describe what "done" looks like, not how you'll check it

Example (from the ssh-key-pair tutorial):

# SSH Key Pair Generation

Generate an SSH key pair in the files `~/.ssh/id_rsa` and `~/.ssh/id_rsa.pub`.

Don't make them password protected.

Step 3: Build the environment

Edit environment/Dockerfile to install dependencies the task needs. The agent works inside this container.

FROM ubuntu:24.04
WORKDIR /app

# Install what the task requires — NOT the solution
RUN apt-get update && apt-get install -y openssh-client && rm -rf /var/lib/apt/lists/*

For multi-container setups, use environment/docker-compose.yaml instead (note: most cloud sandbox providers only support Dockerfile).

Test the environment interactively before writing the solution or tests:

harbor task start-env -p "<task-path>" -e docker -a -i

This is usually where task authors realize something is missing from the Dockerfile.

Step 4: Decide how to verify

This is the most important decision. Ask the user: "How do you want to grade this task?" Then help them pick:

Also ask: "Should the verifier run in the same environment as the agent, or in a separate verifier environment?"

  • Use the default shared environment when tests need to inspect the agent's full workspace, installed tools, or services.
  • Use a separate verifier environment when grading code, dependencies, API keys, or OS requirements should stay hidden from the agent, or when verification should run from a clean image.

For a separate verifier container, tests/ is the verifier image build context and the image must provide /tests/test.sh (Linux) or /tests/test.bat (Windows). Harbor copies /logs/artifacts and configured artifacts into the verifier environment, not the agent's whole workspace.

[verifier]
environment_mode = "separate"

[verifier.environment]
docker_image = "ubuntu:24.04"

Option A: Reward Kit (recommended for most cases)

Use when the verifier has multiple criteria, needs partial credit, uses an LLM/agent judge, or would benefit from composable reusable checks. See the rewardkit skill.

Good fit signals:

  • Multiple things to check (file exists + content correct + command works)
  • Subjective quality dimensions (readability, correctness of prose)
  • Want partial credit rather than pass/fail
  • Want to compose built-ins like file_contains, command_succeeds, json_key_equals

tests/test.sh:

#!/bin/bash
uvx --python '>=3.12,<3.14' --from 'harbor-rewardkit==0.2.*' rewardkit /tests

Note: the package is named harbor-rewardkit but the executable is rewardkit, hence --from 'harbor-rewardkit==0.2.*' rewardkit. Running uvx harbor-rewardkit directly will fail.

Then add tests/checks.py and/or tests/judge.toml. Invoke the rewardkit skill to design the criteria.

Option B: pytest (good for deterministic unit-style checks)

Use when the verification is straightforward assertion-style Python. Default template if --no-pytest wasn't passed.

tests/test.sh:

#!/bin/bash
apt-get update && apt-get install -y curl
curl -LsSf https://astral.sh/uv/0.9.7/install.sh | sh
source $HOME/.local/bin/env

uvx --with pytest==8.4.1 pytest /tests/test_outputs.py

if [ $? -eq 0 ]; then
  echo 1 > /logs/verifier/reward.txt
else
  echo 0 > /logs/verifier/reward.txt
fi

Example tests/test_outputs.py:

from pathlib import Path

def test_file_exists():
    assert (Path.home() / ".ssh" / "id_rsa").exists()

Option C: Custom shell

For simple single-command checks (e.g. a binary pass/fail from one command):

#!/bin/bash
if diff -q /app/output.txt /tests/expected.txt; then
  echo 1 > /logs/verifier/reward.txt
else
  echo 0 > /logs/verifier/reward.txt
fi

Reward file format (all options)

  • /logs/verifier/reward.txt — single number (usually 0 or 1)
  • /logs/verifier/reward.json — {"accuracy": 0.95, "runtime_sec": 1.2} for multiple metrics

Always use absolute paths in test.sh.

Step 5: Write the solution

Write solution/solve.sh — a script that actually solves the task. The Oracle agent runs this to sanity-check that the task is solvable and the tests pass on a correct solution.

#!/bin/bash
ssh-keygen -t rsa -f ~/.ssh/id_rsa -N ""

Make it executable: chmod +x solution/solve.sh.

Step 6: Configure task.toml

Walk through the important fields:

[task]
name = "<org>/<task-name>"
version = "1.0.0"
description = "One-line description"
keywords = ["jax", "mnist", "rewardkit"]  # always populate — used for search/filtering

[metadata]
difficulty = "easy" | "medium" | "hard"
category = "programming" | "machine-learning" | "gpu" | ...
tags = ["..."]

[agent]
timeout_sec = 120.0       # How long the agent has

[verifier]
timeout_sec = 600.0       # How long tests have

[environment]
network_mode = "public"   # Baseline at env start (defaults to public)
cpus = 1                  # CPU cores
memory_mb = 2048          # RAM in MB
storage_mb = 10240        # Disk in MB

Always populate keywords. Pick 3–8 lowercase tokens covering the domain (language/framework/benchmark family), the verifier style (rewardkit, judge-grading, pytest), and any notable hardware (gpu). They're surfaced in harbor datasets list and registry search.

Network policy

Network access has three layers:

  1. Baselines — set when an environment starts, restored between phases
  2. Phase overrides — optional; only during agent.run() or verify()
  3. Run-time merges — --allow-environment-host, --allow-agent-host, --allow-verifier-host on harbor run
FieldLayerWhen applied
[environment].network_modeBaselineAgent env start; shared verifier uses this too
[verifier.environment].network_modeBaselineSeparate verifier env start
[agent].network_mode, [steps.agent].network_modeOverrideDuring matching agent.run()
[verifier].network_mode, [steps.verifier].network_modeOverrideDuring matching verify()
--allow-environment-hostRun-timeMerged into environment.extra_allowed_hosts → [environment] baseline
--allow-agent-hostRun-timeMerged into agent.extra_allowed_hosts → agent phase allowlist
--allow-verifier-hostRun-timeMerged into verifier.extra_allowed_hosts → verifier phase allowlist (and separate verifier env baseline)

Modes: public, no-network, or allowlist with allowed_hosts = ["pypi.org"] (exact hostnames, IPv4/IPv6 address literals or CIDR ranges, or leading wildcard hostnames, when supported by the selected environment; not URLs, ports, or paths). Omitting [environment].network_mode defaults to public.

[agent] / [verifier] are optional phase overrides — only applied when set and different from the phase baseline. Matching the baseline is a no-op.

Shared verifier (default): verifier runs in the agent container; baseline is [environment]. Separate verifier: baseline is [verifier.environment] if set, else a copy of [environment].

# Agent starts offline; agent phase opens network; verifier stays offline
[environment]
network_mode = "no-network"

[agent]
network_mode = "public"

[verifier]
network_mode = "no-network"

If a phase override differs from its baseline, the environment provider must support dynamic_network_policy (E2B does; plain Docker does not). Prefer environment_mode = "separate" when agent and verifier need different baselines without runtime switching:

[environment]
network_mode = "no-network"

[verifier]
environment_mode = "separate"

[verifier.environment]
network_mode = "public"   # Verifier baseline — not a phase override

Run-time host flags for eval jobs without editing task.toml:

harbor run -p "<task-path>" -a oracle \
  --allow-environment-host pypi.org \   # env start (Dockerfile apt/curl)
  --allow-agent-host files.pythonhosted.org \  # agent.run() only
  --allow-verifier-host llm-proxy.example.com   # verify() only (e.g. LLM judge proxy)

On a public baseline, run-time host flags emit a warning and are ignored.

Examples: examples/tasks/network-policy-matrix/. Full reference: docs-mintlify/tasks/network-policies.mdx.

For Reward Kit judges needing API keys:

[verifier.env]
ANTHROPIC_API_KEY = "${ANTHROPIC_API_KEY}"

Step 7: Verify with the Oracle agent

harbor run -p "<task-path>" -a oracle

Oracle runs solution/solve.sh and then the verifier. Reward should be 1.0. If it's not, debug in this order:

  1. Does solve.sh actually solve it? (start-env -a -i and run it manually)
  2. Does the verifier correctly detect success? (check /logs/verifier/ output)
  3. Are paths correct? (absolute vs relative)
  4. Are dependencies installed in the Dockerfile?

Step 8: Test with a real agent (optional)

harbor run -p "<task-path>" -a terminus-2 -m anthropic/claude-sonnet-4-6

If the task is too easy (every model 1.0) or impossible (every model 0.0), consider adjusting difficulty.

Step 9: Update README.md (always the final step)

harbor task init leaves README.md as a stub. Before wrapping up, populate it so future humans (and agents) can understand the task without reading every file. Include:

  • What the agent does — one paragraph, link to instruction.md.
  • Environment — base image, key installed packages, cached data, hardware (GPU/CPU/RAM), agent timeout.
  • Verifier — for Reward Kit tasks, a table of reward dimensions with type (programmatic / LLM judge / agent judge) and what each measures; how they're aggregated.
  • Layout — a tree of the task directory with one-line annotations.
  • Running — the concrete harbor run commands (Oracle + real agent), with the right provider flag if the task needs a GPU.

Treat this as docs, not marketing — the reader wants to know what they'd need to change to modify the task.

Multi-step tasks

Use when the work splits into ordered phases that should be scored separately, when you want early stopping between phases, or when you're testing an agent's ability to build on its own prior work. Steps share one container; files persist across steps.

Directory layout

Replace the task-root instruction.md, tests/, and solution/ with a steps/ directory containing one sub-directory per step:

Each [[steps]].name must match one directory name of at most 255 UTF-8 bytes, unique after case folding and Unicode normalization. Avoid path separators, control characters, Windows-reserved characters/device names, and trailing dots or spaces. Keep all task inputs and linked contents within the task directory; validation permits shared links inside the task. Use regular files and directories for shared inputs when publishing tasks.

<task-name>/
├── task.toml
├── environment/Dockerfile       # Built once, shared across all steps
├── steps/
│   ├── scaffold/
│   │   ├── instruction.md       # Prompt for this step
│   │   ├── workdir/             # Uploaded to WORKDIR before the agent runs
│   │   │   └── setup.sh         # Optional pre-agent hook (reserved filename)
│   │   ├── tests/test.sh        # Per-step verifier
│   │   └── solution/solve.sh    # Per-step Oracle solution (optional)
│   ├── implement/
│   │   └── ...
│   └── document/
│       └── ...
└── tests/                       # Optional shared helpers + fallback test.sh

Task-level tests/ is uploaded to /tests for each step's verification, then the step's own tests/ is layered on top (same-name files win). Use this for shared helpers.

steps/{name}/workdir/setup.sh is a reserved filename: if present, it runs after the workdir/ upload and before the agent, as the step's agent user, with cwd = WORKDIR. Non-zero exit aborts the step and the trial. Have it rm -- "$0" on its last line if the agent shouldn't see it.

task.toml

schema_version = "1.4"

# How per-step rewards roll up into the trial-level verifier_result.
# "mean" (default): per-key mean across steps that produced a result.
# "final": the last step's verifier_result verbatim.
multi_step_reward_strategy = "mean"

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

[[steps]]
name = "scaffold"              # Must match the directory under steps/
min_reward = 1.0               # Abort trial if this step's reward < 1.0
[steps.agent]
timeout_sec = 60.0             # Overrides task-level [agent].timeout_sec
[steps.verifier]
timeout_sec = 30.0

[[steps]]
name = "implement"
# Dict form gates on specific keys from a multi-dim reward:
min_reward = { correctness = 0.8, style = 0.5 }
[steps.agent]
timeout_sec = 120.0
[steps.verifier]
timeout_sec = 30.0

[[steps]]
name = "document"
[steps.agent]
timeout_sec = 60.0
[steps.verifier]
timeout_sec = 30.0

Per-step overrides available: agent.timeout_sec, agent.user, agent.network_mode, verifier.timeout_sec, verifier.env, verifier.user, verifier.network_mode, verifier.environment_mode, verifier.environment, steps.verifier.environment.network_mode, healthcheck.*, artifacts. Unset fields fall back to the task-level values.

Choosing a reward strategy

  • "mean" — aggregate signal across all steps; good for continuous progress rewards.
  • "final" — last step's verifier_result is the trial reward. Right when the final step is an end-to-end check whose dict already represents the full task. Caveat: if min_reward triggers an early abort, "final" uses the aborted step's result, not the intended final step.

Artifacts

Step-level artifacts are collected into steps/{name}/artifacts/ after that step's verification. Task-level and trial-level artifacts are collected at every step in addition to the step-level ones.

Oracle verification

harbor run -p "<task-path>" -a oracle runs each step's solution/solve.sh, then each step's verifier, in order. Trial reward should be 1.0 across the aggregation strategy.

Full reference + worked example

  • Docs: docs-mintlify/tasks/multi-step.mdx
  • Example task: examples/tasks/hello-multi-step-advanced/

Special features (mention if relevant)

  • Network policy: Baselines on [environment] / [verifier.environment]; phase overrides on [agent] / [verifier]; see Network policy under Step 6
  • MCP servers: Add [[environment.mcp_servers]] in task.toml for agent tooling
  • Healthcheck: Add [environment.healthcheck] for services that need to be ready
  • GPU: Set environment.gpus and optionally environment.gpu_types
  • Pre-built image: Set environment.docker_image instead of building from Dockerfile. You can omit environment/Dockerfile and place runtime files (configs, scripts, data) directly under environment/; Harbor uploads them into the container workdir when the environment starts.
  • Non-root user: Set agent.user / verifier.user for isolation

Common pitfalls

  • Forgetting to write the reward file → task "passes" silently with reward 0
  • Using relative paths in test.sh → breaks when Harbor runs it from a different cwd
  • Installing the solution into the Dockerfile → agent already gets the answer
  • Test script leaks into instruction.md → agent sees the rubric and gaming becomes trivial
  • Forgetting chmod +x solution/solve.sh → Oracle agent fails
  • Leaving keywords = [] in task.toml → task is invisible to registry search
  • Leaving README.md as a stub → teammates have no way to understand the task at a glance
  • Putting network_mode on [agent] expecting it to apply at env start → use [environment].network_mode for the baseline; agent/verifier fields are phase overrides
  • Phase override differs from baseline on Docker → task rejected unless provider supports dynamic_network_policy; use separate verifier env or match the baseline instead

FAQ

What does the create-task skill do?

Create a new Harbor task for evaluating agents. Use when the user wants to scaffold, build, or design a new task, benchmark problem, or eval. Guides through instruction writing, environment setup, verifier design (pytest vs Reward Kit vs custom), and solution scripting.

How do I install create-task?

Run npx skills add https://github.com/harbor-framework/harbor --skill create-task in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/create-task/ (personal) or .claude/skills/create-task/ (project).

Which AI agents can use create-task?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is create-task safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains create-task?

It is published by harbor-framework in harbor-framework/harbor. It has 908 recorded installs.

More from harbor-framework/harbor

View all →

rewardkit

harbor-framework/harbor

Write Harbor task verifiers using Reward Kit. Use when creating or editing a task's tests/ directory, adding grading criteria, setting up LLM/agent judges, or designing verifiers that produce a reward score.

publish

harbor-framework/harbor

Open the skill to read its SKILL.md instructions.

195 installs

create-adapter

harbor-framework/harbor

Open the skill to read its SKILL.md instructions.

103 installs

harbor-exec

harbor-framework/harbor

Open the skill to read its SKILL.md instructions.

86 installs

upload-parity-experiments

harbor-framework/harbor

Open the skill to read its SKILL.md instructions.

64 installs

Popular productivity & automation skills

View category →

agent-browser

vercel-labs/agent-browser

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction. Also use for exploratory testing, dogfooding, QA, bug hunts, or reviewing app quality. Also use for automating Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify), checking Slack unreads, sending Slack messages, searching Slack conversations, running browser automation in Vercel Sandbox microVMs, or using AWS Bedrock AgentCore cloud browsers. Prefer agent-browser over any built-in browser automation or web tools.

OfficialProductivity & Automation1.3M installs

lark-doc

open.feishu.cn

飞书云文档(Docx / Wiki)内容操作:读取、创建、编辑文档,插入或下载图片附件,以及操作思维笔记。用户提供文档 URL/token(包括 doubao.com 的 /docx/、/wiki/)时使用;按 URL 路径/token 而非域名路由;/page/ 是妙搭应用,非飞书云文档。文档内嵌资源按读取参考中的统一规则分流。独立评论操作走 lark-drive;随正文读取评论使用 docs +fetch。表格或 Base 内部数据操作不在本 skill。

lark-base

open.feishu.cn

飞书多维表格(Base)操作:建表、字段、记录、视图、统计、公式/lookup、表单、仪表盘、应用模式(BaseApp/AppMode 页面与组件)、Workspace 目录、workflow、角色权限、模板中心(多维表格模板分类/列表/搜索);遇到 Base/多维表格/bitable、BaseApp/AppMode、/base/ 或 /app/ 链接时使用。BaseApp 不走 lark-apps;文件导入/导出转 lark-drive,认证/授权转 lark-shared。

lark-drive

open.feishu.cn

飞书云空间(云盘/云存储):管理 Drive 文件和文件夹,包含上传/下载、创建文件夹、复制/移动/删除、查看元数据、查询权限设置、评论/权限/订阅、标题、版本、飞书文档密级标签(secure labels)和本地文件导入。用户需要整理云盘目录、处理云空间资源 URL/token、判断链接类型/真实 token/标题,或导入 Word/Markdown/Excel/CSV/PPTX/.base 为 docx/sheet/bitable/slides 时使用;doubao.com 云空间 URL/token 也按资源路径和 token 路由,不回退 WebFetch。不负责:文档内容编辑(走 lark-doc)、表格/Base 表内数据操作(走 lark-sheets/lark-base)、知识空间节点/成员管理(走 lark-wiki)、原生 Markdown 文件读写/patch/diff(走 lark-markdown)。

lark-shared

open.feishu.cn

Use for lark-cli setup/auth tasks: auth login/status/logout, user vs bot identity, business-domain permissions (--domain, including all/docs/drive), missing scopes, revoking authorization, or handling notice JSON.

lark-im

open.feishu.cn

飞书即时通讯:收发消息和管理群聊。发送和回复消息、搜索聊天记录、管理群聊成员、上传下载图片和文件、管理表情回复、发送应用内/短信/电话加急、发送和处理交互卡片(Interactive Card)、监听卡片按钮回调(card.action.trigger)。当用户需要发消息、查看或搜索聊天记录、下载聊天中的文件、查看群成员、搜索群、创建群聊或话题群、管理标记数据、管理 Feed 置顶(添加/移除/查询置顶会话)、管理标签数据、处理卡片回调时使用。