_conventions · openai — команда для Codex: что делает и как установить
Мета-инструкция для плагина Zoom в Codex. Документ задаёт единый шаблон из шести обязательных разделов для всех пользовательских команд интеграции.
~/.codex/prompts/_conventions.mdЧто делает _conventions
Этот файл определяет стандарт разработки команд внутри каталога commands/. Каждая новая команда должна содержать YAML frontmatter с полем description и шесть разделов: Preflight, Plan, Commands, Verification, Summary и Next Steps. На этапе Preflight агент инспектирует код интеграции, проверяет рабочее дерево Git и доступность локальных утилит до внесения правок.
В блоке Commands действует запрет на вывод секретных значений: токенов и ключей. Разрешено показывать только имена переменных окружения, скоупы и метаданные. Все опасные операции обязаны требовать прямого подтверждения от пользователя. После выполнения действий обязателен блок Verification. Там проверяются сигнатуры, вебхуки и пути конфигурации.
Файлы с нижним подчёркиванием вроде _conventions.md служат мета-документами. Пользователь не вызывает их напрямую.
Какие задачи решает
- задать единую структуру команд для сценариев Zoom
- исключить утечку токенов и секретов в выводе агента
- проверять готовность репозитория перед запуском скриптов
- валидировать статус вебхуков и авторизации после правок
Примеры запросов агенту
- Создай команду настройки вебхука по правилам
_conventions.md - Проверь файл в
commands/на наличие обязательных секций из_conventions.md
Как установить _conventions
Вручную: положить файлы
~/.codex/prompts/_conventions.mdВызов — /prompts:_conventions. В Codex этот формат помечен устаревшим, замена — скиллы
Вручную: положить файлы
.claude/commands/_conventions.mdВызов — /_conventions. Для всех проектов — ~/.claude/commands/
Вручную: положить файлы
.github/prompts/_conventions.prompt.mdВручную: положить файлы
.gemini/commands/_conventions.tomlGemini хранит команды в TOML: текст запроса — в поле prompt
Вопросы о _conventions
Как установить _conventions в Codex?
Сохраните файл по пути ~/.codex/prompts/_conventions.md. После этого Codex сможет сверяться с правилами при генерации команд.
Что делает _conventions?
Файл фиксирует стандарт оформления команд плагина Zoom. Он требует расписывать шаги подготовки, планирования, выполнения и проверки результата.
Почему имя файла начинается с подчёркивания?
По соглашению плагина префикс _ обозначает мета-документы и правила. Такие файлы не запускаются пользователем как слэш-команды.
Исходный текст
_conventions.md · MIT
# Command Conventions Every slash command in this plugin follows a consistent structure so Codex produces reliable, verifiable Zoom workflow results. Every non-underscore file in `commands/` must include all required sections below. ## Required Sections ### 1. Preflight Check prerequisites before doing any work: - Inspect the current repo for the relevant Zoom surface, framework, and existing integration code. - Confirm required local tools are available before relying on them. - Note missing credentials, env vars, callback routes, or endpoint URLs before attempting setup or debugging. - Flag dirty working tree or risky production-impacting changes when they matter to the requested workflow. Preflight failures should produce clear next actions. Do not silently skip them. ### 2. Plan State what will happen before execution: - List the files, commands, and external checks the workflow will use. - Call out any destructive or production-impacting step and require explicit user confirmation. - If there are multiple viable paths, state which one was chosen and why. ### 3. Commands The operational core. Follow these conventions: - Prefer read-first inspection before making code or config changes. - Never print secret values. Show env var names, scope names, file paths, and metadata only. - Use structured output when available. - Prefer the narrowest Zoom surface that actually solves the task. - Do not claim OAuth, webhook, or SDK setup succeeded without checking the relevant evidence. ### 4. Verification After execution, confirm the outcome: - Re-read the changed files or live state. - Verify the exact auth, signature, endpoint, or config path that was modified. - Surface errors, warnings, and unresolved blockers explicitly. ### 5. Summary Present a concise result block: ```text ## Result - Action: what was done - Status: success | partial | failed - Details: key files, env vars, endpoints, or findings ``` ### 6. Next Steps Suggest the logical follow-up: - setup flows -> test auth or live API connectivity - debug flows -> rerun the failing path with the fix applied - review flows -> apply the recommended fixes or narrow the scope ## File Naming - Command files live in `commands/` and end in `.md`. - Files prefixed with `_` are conventions or meta docs, not user-facing commands. ## Frontmatter Every command file must include YAML frontmatter with at least a `description` field.
© Zoom · MIT · openai/plugins
Похожие слэш-команды
Все слэш-команды по теме «Настройка агента: память, контекст, субагенты» →Сначала — _conventions от других авторов.