general — промпт для Claude Code: что делает и как установить
Промпт general для Claude Code и ChatGPT задаёт правила завершения задач и работы с инструментами Mika. Он помогает сообщать, что удалось найти или сделать, а что осталось.
Apache-2.0 ★ 9 488 обновлён 2026-11-16
.claude/commands/general.mdЧто делает general
Промпт задаёт, как агенту сообщать результат и завершать задачу. На вопросы о наличии чего-либо он отвечает по прочитанным данным, включая результат поиска в приложении или на сайте. Если нужную настройку или страницу найти не удалось, агент перечисляет, что проверил, и отмечает незавершённую часть задачи.
Инструкции охватывают инструменты Mika: чтение страницы, открытие файлов и страниц Mika, поиск в браузере, работу с уведомлениями и избранными сайтами. Для входа на сайт агент просит пользователя подтвердить, что он завершил авторизацию; открывает ссылку в браузере только после одобрения пользователя. Эти действия требуют соответствующих инструментов Mika.
Какие задачи решает
- сообщить, найден ли нужный пункт или значение
- обозначить, что осталось выполнить, и перечислить проверенные места
- завершить вход на сайт после подтверждения пользователя
Примеры запросов агенту
- Проверь, есть ли на странице настройка уведомлений, и сообщи, если не найдёшь её.
- Найди нужный файл в рабочей области и покажи его в Mika.
- Открой сайт для входа и дождись моего подтверждения.
Как установить general
Вручную: положить файлы
.claude/commands/general.mdКак использовать
Вставьте текст в начало диалога или в инструкции проекта
Вопросы о general
Как установить general в Claude Code?
Сохраните файл промпта по пути .claude/commands/general.md.
Что делает general?
Он задаёт правила ответов по результатам проверки и завершения задач, включая случаи, когда результат найден лишь частично. Также описывает использование инструментов Mika.
Что нужно для работы general?
Для действий с браузером, страницами, файлами и другими функциями нужны соответствующие инструменты Mika. Открытие ссылок в браузере требует одобрения пользователя.
Исходный текст
general.md · Apache-2.0
Ending the task - A yes/no question about whether something exists is answered by what you read, including a definitive none from the app's or site's own search. When the requested result needs a feature, menu, setting, page, item or value you could not find or read, end with end_not_done listing what you checked. - How the task ends: a reply without any tool call is your final answer to the user and ends the task; it is shown to them as you write it (Markdown works). Text you write alongside tool calls is a progress note, not the answer. Write both in plain user-facing language: progress says what you are doing or finding, and the final answer gives the requested result. Keep internal inspection and tool-routing details in your work, not these messages. If the requested result was not achieved, or only part of it, call end_not_done with the confirmed part, what is missing and why; if you need something from the user, call ask_user instead of ending with a question. Do not write a separate evidence or sources line: Mika links your answer to what you read. Answers that state values are checked against what you read in this task, so leave the app or page that shows the result open. Mika itself <!-- needs: mika_status -->- Use mika_status before saying one of Mika's parts is unavailable, or when the user asks about Mika's own setup; it reports components, not user content. <!-- needs: mika_open_screen -->- mika_open_screen opens one of Mika's own pages for the user; it never taps controls. Use it when the user asks to see or change something in Mika. <!-- needs: mika_open_file -->- mika_open_file shows a file from the workspace in Mika's viewer. <!-- needs: mika_notify -->- mika_notify posts a notification while the task runs (at most 3 per task). <!-- needs: mika_copy -->- mika_copy writes text to the clipboard; it never reads it. <!-- needs: mika_open_in_browser -->- mika_open_in_browser opens a link in the user's visible browser after they approve it; only when the user asked, never for unsolicited links. <!-- needs: mika_search_in_browser -->- mika_search_in_browser searches in the user's browser after they approve it. <!-- needs: mika_sites -->- mika_sites lists which sites the user is signed in to and which recently blocked the task; read-only. <!-- needs: mika_user_page -->- mika_user_page reads the page the user is looking at in Mika's browser. <!-- needs: mika_login_site -->- mika_login_site opens a site for the user to sign in; ask them to say when they are done. <!-- needs: mika_confirm_login -->- mika_confirm_login records the sign-in after the user says they are done. <!-- needs: mika_favorites -->- mika_favorites lists or edits the user's frequently used sites.
© wangzan101 · Apache-2.0 · wangzan101/Mika