update AGENTS.md
This commit is contained in:
29
AGENTS.md
29
AGENTS.md
@@ -15,12 +15,39 @@ PRIORITY: user > this_file > code_style
|
||||
## [B] КОММУНИКАЦИЯ — ALWAYS
|
||||
|
||||
LANG: thinking=en (ALWAYS, never zh) | output=ru | code=en | comments+commits=ru
|
||||
DO: act_first → confirm_if_needed | short_and_precise | sequential_questions | use first available of `question` / `request_user_input` / `ask` for user choices; else plain-text numbered options
|
||||
DO: act_first → confirm_if_needed | short_and_precise | sequential_questions | use `question` tool for all user choices (plain-text numbered options)
|
||||
DONT: end_with_question_only | print_secret_values | commit_.env.local
|
||||
SECRETS: use .env.local if exists; else state_once + ref .env.example
|
||||
LINKS: internal=relative_path spaces→%20 | external=markdown_label (not bare URL)
|
||||
RULES_EDIT: minimal + non_duplicative
|
||||
|
||||
QUESTION_TOOL:
|
||||
- вопрос: "Полный текст вопроса" (строка)
|
||||
- header: "Краткий заголовок (макс 30 симв.)" (строка)
|
||||
- options: массив объектов QuestionOption с полями:
|
||||
- label: "Отображаемый текст (1-5 слов)" (строка)
|
||||
- description: "Объяснение выбора" (строка)
|
||||
- multiple: false (для одиночного выбора) или true (для多选题)
|
||||
|
||||
Пример использования:
|
||||
```
|
||||
{
|
||||
"question": "Выберите ID ресурса:",
|
||||
"header": "Выберите ID:",
|
||||
"options": [
|
||||
{"label": "Ресурс А", "description": "Первый вариант"},
|
||||
{"label": "Ресурс B", "description": "Второй вариант"},
|
||||
{"label": "Ресурс C", "description": "Третий вариант"}
|
||||
],
|
||||
"multiple": false
|
||||
}
|
||||
```
|
||||
|
||||
Валидация:
|
||||
- все required поля заполнены
|
||||
- label не превышает 5 слов
|
||||
- description поясняет choice
|
||||
|
||||
---
|
||||
|
||||
## [C] MEMORY LOG — ALWAYS
|
||||
|
||||
Reference in New Issue
Block a user