common — промпт для Claude Code: работа с роботом
Промпт common для Claude Code и ChatGPT помогает агенту выполнять задачи с физическим роботом по наблюдениям и инструкциям среды. Он задаёт проверку состояния до и после действий и правила восстановления после неопределённого выполнения.
MIT ★ 488 обновлён 2026-11-15
.claude/commands/common.mdЧто делает common
Промпт задаёт порядок работы агента с физическим роботом: сначала изучить доступные инструкции, затем выбирать действия по наблюдениям и текущей задаче. Агент находит Markdown-файлы с помощью инструмента перечисления путей, а нужные инструкции читает отдельным инструментом для файлов. Поиск рекурсивный и не загружает содержимое файлов.
После перемещения или сомнительного контакта нужно заново проверить геометрию. Успешный ответ инструмента сам по себе не доказывает, что предмет захвачен или поставлен на место: это подтверждают движением, опорой и удержанием. При результате execution_uncertain физический запрос нельзя повторять, пока агент не выяснит фактическое состояние.
Завершение задачи подтверждается отдельным инструментом только после проверки каждого требования по наблюдениям и актуальным данным процесса. Промпт также требует учитывать правила конкретной среды для восстановления и передачи задачи оператору.
Какие задачи решает
- проверить захват и размещение предмета по наблюдаемому состоянию
- не повторить физическое действие после неопределённого результата
- выбрать инструкции по возможностям робота и недостающим данным
- подтвердить выполнение задачи по наблюдениям и данным процесса
Примеры запросов агенту
- Осмотри сцену и выполни задачу с роботом по доступным инструкциям.
- Проверь, удерживает ли робот предмет после перемещения.
- Инструмент вернул
execution_uncertain: выясни состояние среды, не повторяя действие.
Как установить common
Вручную: положить файлы
.claude/commands/common.mdКак использовать
Вставьте текст в начало диалога или в инструкции проекта
Вопросы о common
Как установить common в Claude Code?
Сохрани промпт в файле .claude/commands/common.md.
Что делает common?
Он задаёт правила для задач с физическим роботом: поиск и чтение инструкций, проверку наблюдений и состояния после действий, а также подтверждение завершения.
Что делать при результате execution_uncertain?
Не повторять физический запрос: сначала выяснить его статус и проверить фактическое состояние по правилам восстановления среды.
Исходный текст
common.md · MIT
Use the declared skill-path listing tool without arguments to discover Markdown paths in general/ and the current environment's skill namespace. If listed and relevant to the current robot, read `general/index.md` and its common skill first, then select operation guidance by capability and missing evidence. Environment-specific guidance supplements the shared methods. Pass a relevant path as the path argument to the declared skill-file reader. Discovery lists paths recursively without loading file contents; the reader accepts files only. Reuse known paths and guidance instead of repeatedly listing unchanged files. Discovery includes all skill subdirectories and does not require skill writing. A skill is guidance, not present scene state or evidence of physical success. Begin from observations and the current instruction. Published records and captured snapshots are immutable historical evidence. Recheck affected geometry after displacement, release or uncertain contact. Follow the chosen locate method's instructions for its returned fields; geometric plausibility alone does not establish identity, attachment, a safe grasp point or placement. Do not infer metric coordinates from RGB alone. Tool success does not establish the intended physical effect. Inspect executed steps, feedback, final errors and stop_reason. Pose alignment and possible contact do not verify attachment or placement. Observe object motion, support and retention before actions that depend on them. Returned images may resolve the question; request new evidence only when it can change the next decision. A rejected call with no_execution=true confirms no action. An execution_uncertain result does not mean zero execution: do not replay the physical request. Resolve its status and inspect actual state according to the environment's recovery or operator-handoff rules. Reassess partial execution, missing geometry and failed approaches without repeating unchanged failures or consuming steps with dummy actions. Unless separate parallel guidance applies, inspect completed feedback before submitting a dependent physical action. Use the declared task-completion tool with status="success" and a summary only when every task requirement is verified by observations and still-valid process evidence. State ended means the native episode ended, not necessarily success; the environment owns the official outcome. Continue useful recovery while the task is unfinished and interaction is permitted. Follow integration-specific stop and operator-handoff conditions when they apply. After the completion tool returns, give a concise final response supported by the evidence.
© Open-RUA · MIT · Open-RUA/uni-robot-agent