clean — промпт для Claude Code: управление роботом
Промпт clean для Claude Code управляет роботизированной рукой через команды движения и наблюдения. Он помогает выполнять инструкции и проверять результат каждого этапа.
MIT ★ 488 обновлён 2026-11-15
.claude/commands/clean.mdЧто делает clean
Промпт задаёт порядок работы с командами move, hold, capture_scene и finish: сначала оцениваются наблюдения, затем выполняются физические действия и проверяется их результат. Для камеры можно запросить новый снимок без шага управления. Изображения доступны по путям из observation.cameras[name].image_path, а исходные калибровочные данные — через observation.artifact_ref.
После движения нужно сверять состояние руки, обратную связь о раскрытии захвата и причину остановки. При неуверенном результате физический запрос нельзя повторять; ошибка публикации снимка также не отменяет уже подтверждённое движение. Глубина агенту не передаётся. Перед finish требуется подтвердить позиции и ориентации объектов, а если инструкция требует вернуть руки — ещё и их начальные положения.
Какие задачи решает
- упорядочить движение руки и работу захвата
- получить снимок камеры без шага управления
- проверить, удерживается ли объект после захвата
- подтвердить условия задачи перед завершением
Примеры запросов агенту
- Выполни эту инструкцию с помощью промпта
cleanи проверь результат перед завершением. - Перемести руку по инструкции, оцени обратную связь захвата и продолжай только после проверки состояния.
- Сделай дополнительный снимок сцены и заверши задачу только после проверки условий.
Как установить clean
Вручную: положить файлы
.claude/commands/clean.mdКак использовать
Вставьте текст в начало диалога или в инструкции проекта
Вопросы о clean
Как установить clean в Claude Code?
Сохрани файл промпта по пути .claude/commands/clean.md.
Что делает clean?
Он задаёт порядок управления рукой, получения изображений и проверки результата перед завершением задачи.
Какие команды использует clean?
Для движения, удержания состояния, получения снимка и завершения используются move, hold, capture_scene и finish.
Исходный текст
clean.md · MIT
Use move, hold, capture_scene and finish to complete the instruction. Physical calls share one exclusive episode queue; order calls by intended submission sequence. Inspect completed feedback before dependent actions. move applies arm motion and any requested gripper opening together. For an in-place opening change, use the current measured position and orientation, converted to the pose format required by the schema, and set the opening inside the corresponding targets entry. Where gripper_opening_m is exposed, zero requests full closure with the native preload; a positive gap requests that opening. Omit opening to retain the accepted drive command during transport; copying the measured gap changes that command. Use separate calls for ordered stages such as close-then-lift or open-then-retreat. Check opening feedback and visible object retention or release before the dependent motion. hold retains measured arm poses and existing gripper commands while consuming control steps; use it for justified settling or continued opening, then inspect the result. Initial input and completed actions include RGB images and measured robot state. Use capture_scene for fresh or additional camera views without advancing control steps, including after image publication failure. Omit cameras for all views. Read observation.artifact_ref for the stored snapshot JSON; it preserves original image calibration. Read each RGB file directly from observation.cameras[name].image_path, including when older inline images have left context. artifact_ref is JSON, not an image; artifact IDs inside it are not file paths. observation.image_cameras gives the attachment order. Do not use dummy motion or hold calls just to obtain observations. Camera matrices belong to the named image and observation.state_version, not a future view. Displayed physical values and matrices use at most five decimal places; use the stored originals for precise geometry. state.arms[name].pose uses the same world six-value pose convention as move inputs. intrinsic_K maps optical coordinates to image pixels; T_world_from_optical maps optical coordinates to world metres. Disabled or unsupported calibration must not be treated as measured geometry. Depth is not provided to the agent. Retain initial arm poses and original object goals separately from current estimates, including in continuation summaries after context compaction. Tool completion and pose arrival do not establish object attachment or task success. Read targets_reached, per-arm opening feedback and stop_reason; a stall does not identify contact or its cause. max_steps limits this move call, not the whole episode. Use state.native_steps, state.ended and remaining_steps to judge episode progress. Continue toward a target only when feedback and observed clearance justify it; after ineffective actions, reassess the grasp, approach, route or arm instead of repeating unchanged commands. artifact_error does not undo acknowledged motion; do not replay a physical action to fetch an image. An execution_uncertain result does not mean zero execution. Do not repeat an uncertain physical request. Keep working while requirements remain unmet and interaction is permitted. Difficulty, partial completion or an estimated shortage of steps does not by itself end the task. Stop at verified completion, native termination, an enforced resource limit, an explicit environment failure preventing interaction, or an operator stop. Native termination does not establish task success. Before finish, verify the required object positions, orientations, support and process conditions using observations and still-valid evidence. If the task requires returning arms, check both their initial positions and orientations. Correct observed mismatches within the remaining budget. Submit finish with status="success" only when all requirements are verified, and summarize the evidence; the environment owns the official outcome.
© Open-RUA · MIT · Open-RUA/uni-robot-agent