agentleFS
MinLee0210MinLee0210/paper-orchestra-skills/skills/research-task-setup/SKILL.md

research-task-setup

Skill0 starsChanged 10 days agoApache-2.0View on GitHub

Turn a research problem, benchmark, or code repository into a scored task that an agent can safely optimize: task.md, a trustworthy evaluator, and a validated baseline program. Use when the user wants to set up, port, wrap, or scaffold an experiment, benchmark, leaderboard, or optimization target before any search or experiment loop runs, or when an existing score cannot be trusted. Not for statistical study design (use research-experimental-design) or for running the optimization itself (use research-experiment-loop).

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read their material (README, rules, existing scripts), then ask in one batch only for what it does not answer.

    line 33
  2. Very specific:

    Write evaluate.py: Follow references/evaluator-contract.md: fixed CLI, metrics.json plus correct.json, finite worst score on candidate …

    line 52
  3. Very specific:

    Every negative program must come back correct: false.

    line 72
  4. Distinctive:

    If a cheaper search profile stands in for the real benchmark, score a few diverse programs on both and confirm the ranking holds.

    line 75
  5. Distinctive:

    Ask before spending more than the agreed validation budget.

    line 76

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Task setup

An autonomous search optimizes whatever the evaluator rewards, including its bugs. This skill produces the three things a search needs before it may start: a written task, an evaluator the candidate cannot influence, and a baseline that has been scored for real.

The user decides the science: metric, editable surface, rules, and budget. The agent builds the scaffold and proves that it works. A task that has not been evaluated end to end is not done.

Layout

my-task/
├── task.md                  # goal, constraints, rubrics
├── evaluate.py              # evaluator-owned scoring
└── program_0/
    ├── program_spec.toml    # declares the entrypoint
    └── src/program.py       # the baseline; only src/ is editable

Scaffold it with a runnable demo task, then replace the demo:

python scripts/new_task.py my-task
python scripts/check_task.py my-task --run --expect correct

Ask the user first

Read their material (README, rules, existing scripts), then ask in one batch only for what it does not answer. Choose sensible defaults for everything else and report them.

TopicAsk about
Objectivethe metric, its direction, and who computes it
Editable surfacewhat the agent may change; everything else is fixed
Rulesevery legality constraint, and which ones are judgment calls
Datasources, licenses, splits, and what the candidate must never read
Costwall time and hardware per evaluation; a cheaper proxy for search
Baselinethe starting program and its known score
Variancerun-to-run spread of the score, or a plan to measure it
Shared resourcesschedulers, quotas, and jobs that must not be disturbed

Push back when an answer makes the task unsound: the candidate reports its own score, held-out data is visible during training, or an evaluation cannot finish inside its timeout.

Workflow

  1. Probe the environment. Where will evaluations run? Check hardware, installed packages, network access, and free disk. Record the answers in the task's README.md.
  2. Scaffold with scripts/new_task.py. It refuses to overwrite existing files.
  3. Write evaluate.py. Follow references/evaluator-contract.md: fixed CLI, metrics.json plus correct.json, finite worst score on candidate failure, evaluator-owned scoring, process-group cleanup, no writes into the task directory.
  4. Write the baseline in program_0/src/. Make the smallest change needed to fit the evaluator and document it. The baseline must score correct: true.
  5. Write task.md. State the goal, editable files, constraints, expected evaluation time, and rubrics. A metric rubric should name a threshold that exceeds the measured noise.
  6. Choose the search profile and rules with references/design-patterns.md: layouts, search versus full evaluation, leakage, the three layers of legality checks, cost, and variance.
  7. Validate until every item below passes.
  8. Hand off to research-experiment-loop with the baseline score, its spread, the wall time per evaluation, and anything skipped.

Validation

# static checks only
python scripts/check_task.py my-task
# baseline through the real evaluator, twice, with identical results required
python scripts/check_task.py my-task --run --expect correct --repeat 2
# one negative program per important rule, plus one that crashes
python scripts/check_task.py my-task --run --program /scratch/bad_program --expect incorrect
# replications, if the evaluator honors them
python scripts/check_task.py my-task --run --num-replications 3
  • Every negative program must come back correct: false. A rule that no negative program exercises is unproven.
  • A deterministic evaluator must return the same score for the same program. When the benchmark is genuinely stochastic, run the baseline several times, pass --tolerance, and record the spread.
  • The checker also fails an evaluator that modifies the task directory.
  • If a cheaper search profile stands in for the real benchmark, score a few diverse programs on both and confirm the ranking holds.
  • Ask before spending more than the agreed validation budget.

Safety

The evaluator runs candidate code with your user permissions. The scaffold filters credential-like environment variables and kills the process group, which is hygiene, not a sandbox. Run agent-written or third-party code in a container or a disposable VM, and do not mount secrets into it.

Rules

  • The candidate never reports its own score. The evaluator recomputes the metric from artifacts it checks.
  • Held-out data is invisible to the candidate during its run.
  • Higher is better: a loss becomes -loss in combined_score.
  • Once a search starts, the task is frozen. A changed evaluator means a new run, because old scores are no longer comparable.

Files

  • scripts/new_task.py — scaffold a task from the bundled templates.
  • scripts/check_task.py — static checks, real evaluator runs, replay, and negative tests.
  • references/evaluator-contract.md — exact interface, outputs, and failure semantics.
  • references/design-patterns.md — layouts, profiles, leakage, legality, cost, variance.
  • assets/evaluate.py, assets/task.md, assets/program.py, assets/program_spec.toml — the demo task templates.

Attribution

Adapted from the setup-task skill of SakanaAI/AI-Scientist-v3 (The Agentic Scientist, commit f8ae47d), Apache-2.0, Copyright 2026 Sakana AI. Changes: rewritten as a harness-independent skill; assets/evaluate.py is a shortened rewrite of the upstream evaluator template with a new demo task; the scaffold and check scripts are new, with replay and task-modification checks. See NOTICE.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.