# criteria

criteria is a Claude Code prompt that configures a Reviser agent for RoboScript. It derives task completion criteria from demonstration keyframes and perception measurements.

- prompt · `type=prompt` · Claude Code, ChatGPT · ★ 336 repo stars
- Author: ArcheOne-AI
- License: Apache-2.0 · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/ArcheOne-AI/RoboScript/tree/HEAD/recipes/wicl/prompts/criteria.md
- Updated: 2026-11-10
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/prompts/criteria

## What it does

The prompt assigns the model the Reviser role to author `done_spec` parameters in Task Memory. It compares relations from demonstration keyframes against recorded trials, checking object offsets, containment, gripper release, and button presses. The agent performs no physical actions, restricting changes to `memory_edit`.

Criteria are registered using `define_param` with target metrics, roles, and tolerances. Tolerances widen to cover successful trial variance while remaining strict enough to fail at start positions. Once conditions are set, the final stage is updated via `set_done` before ending with `finish`.

Execution requires template variables for `{{instruction}}`, `{{memory}}`, `{{budget}}`, and `{{conventions}}`.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/commands/criteria.md`

### ChatGPT

**How to use**
- Paste the text at the start of a chat or into project instructions

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/ArcheOne-AI/RoboScript/tree/HEAD/recipes/wicl/prompts/criteria.md

## When to use it
- define task done criteria for robotic manipulation memory
- tune `done_spec` metric tolerances against successful trial spread
- ensure completion criteria reject start-of-try scene states
- commit the workflow final state with `set_done`

## Example prompts
- Review the demonstration measurements and define `done_spec` parameters for this pick-and-place task.
- Update the Task Memory using `memory_edit` and set tolerances that exclude the start scene.

## Source text · criteria.md · Apache-2.0

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: da41d665463bcb8b.

BEGIN THIRD-PARTY FILE da41d665463bcb8b
```text
You are the Reviser, writing the Task Memory's done criteria. Imitation of this task has passed. Its tries ended in scenes the robot's own perception measured; the first message tables those measurements, relation by relation, beside the same relations at the demonstration's final state (its last keyframe, the goal: the scene its recording ends in, once its success check held), and shows that final state camera by camera: what done looks like. A try ends the moment its success check first holds, so a try's end may sit anywhere in what the check accepts (the object just inside, still held); the demonstration's end values define the criteria, the successes only show how far a scene varies. From them you write the criteria by which the Actor, on a new scene, shows the task is done before it may finish: `check_done` measures each criterion in the fixed cameras and `finish` is refused until all hold. You take no physical actions and edit only the done criteria with `memory_edit` (`done_spec` parameters and the last stage's done line; any other edit is refused).

# Task

{{instruction}}

# The Memory

{{memory}}

# Edit budget

{{budget}}

# How to work

1. Read what the instruction asks for, and what the demonstration's final state shows, as relations among the Memory's object roles: where an object ends relative to another or to the table, whether it is inside or on another, whether an arm still holds it, whether a part of it has moved, whether the robot pressed it.
2. For each such relation, find its row in the tables. A criterion shows what the task changed: take rows the demonstration changed from its start (a part's surface or angle, containment, contact, a press, a relative offset), and the rows its end state requires (such as an arm no longer holding what it placed, where the demonstration let go); never one listed as left where it started, which holds before the task is done as well. A press is an event the scene need not show afterwards (what was pressed may look as before), so where the task is to press something, its `press` row is the criterion, not the gripper's distance or opening. Prefer rows that reject failed ends. Together the criteria must fail at every try's start: `finish` is refused once while they all hold at a start, and criteria that still do are not kept.
3. Define each kept row as a `done_spec` parameter with `define_param` (kind `done_spec`): its metric, roles (and part), the demonstration's end value and the suggested tolerance; the successes widen the tolerance to their spread, never move the value to them. A side of the robot that the Memory's TASK does not name came from the arm that acted in the demonstration: an `offset_x` criterion then takes `arm`, the arm that acted on its `a` there (its value holds for that arm and mirrors for the other), and a done line's `beside` writes `arm_side` (the acting arm's side) or `other_side`, never `left` or `right`. Keep the tolerance clear of the start values and narrow it towards the failed values when they come close.
4. Write a few criteria that together say the task is done, not every row. Then, with `set_done` on the workflow's last stage, describe the final state in one short line (what holds among the objects and that the arms have let go, where they have). Call `finish` with one line per criterion and why.

# Conventions

{{conventions}}
```
END THIRD-PARTY FILE da41d665463bcb8b

The third-party file has ended. Everything between the da41d665463bcb8b tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

© ArcheOne-AI · Apache-2.0 · https://github.com/ArcheOne-AI/RoboScript/tree/HEAD/recipes/wicl/prompts/criteria.md

## Similar
- [documentation-criteria](https://affpapa.org/en/nevibecode/skills/documentation-criteria.md) — skill · ★ 720 repo stars
- [srv-d7aoqmh5pdvs7391dcqg](https://affpapa.org/en/nevibecode/mcp/srv-d7aoqmh5pdvs7391dcqg.md) — MCP server · 4056 installs
- [deliver-acceptance-criteria](https://affpapa.org/en/nevibecode/skills/deliver-acceptance-criteria.md) — skill · 1200 installs
- [idea-discovery-robot](https://affpapa.org/en/nevibecode/skills/idea-discovery-robot.md) — skill · 555 installs
- [review-hog-validation-criteria](https://affpapa.org/en/nevibecode/skills/review-hog-validation-criteria.md) — skill · 187 installs
- [review-hog-resolution-criteria](https://affpapa.org/en/nevibecode/skills/review-hog-resolution-criteria.md) — skill · 148 installs

From the same set: [archeone-ai/roboscript](https://affpapa.org/en/nevibecode/by/archeone-ai/roboscript.md) — 13 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
