rules
БесплатноЗапускает вложенные скриптыНе проверенMaintains project .codex/rules and the AGENTS.md rule index. Explicit user invocation only.
от kochetkov-ma★ 41 звезда на GitHubОб этом скилле
Codex project rules
Use only when the user explicitly requests rule creation, synchronization, improvement, review, or inventory.
Sources of truth
- Store rule bodies under the project
.codex/rules/; never use personal or foreign-assistant rule paths. - Treat hierarchical
AGENTS.mdfiles as Codex's automatically loaded instruction surface. - Keep rule content in one file.
AGENTS.mdcontains a compact index, not copied rule bodies.
Modes and arguments
Position 1 of the arguments is a free-form prompt (RU/EN); mode tokens are optional and may follow. Resolve the mode from that prompt: status (default, read-only inventory), list, create, improve, review. An explicit mode token wins outright; otherwise take the mode the prompt describes, and ask at most one clarifying question, only when the answer changes what gets written.
Before the first write — and before the report on a read-only run — state in one block: the input verbatim, the resolved mode and why, the scope (rule files and AGENTS.md tables in play), what will be done, and the result the user ends up with.
Workflow
- Read the applicable
AGENTS.mdfiles and inventory every project rule withrg --files .codex/rules | sort. - Resolve the request to
status, create, improve, review, list, or synchronize. Persist durable repository facts only; exclude secrets, transient session state, generated reports, and duplicate instructions. - Create or update English rule files under
.codex/rules/. Reuse an existing rule when its scope matches. - Update the nearest applicable
AGENTS.mdrule-index table. The repository-root table lists every.codex/rules/*.mdfile exactly once with columnsRule,Load when, andPurpose. Nested tables add only subtree-specific rules not already covered by the inherited root index. - Invoke
$brewtools:text-optimize -lfor every changed rule andAGENTS.mdindex. Preserve paths, scope qualifiers, safety constraints, and table structure; apply the optimized patch only after comparing semantics. - Re-run the complete inventory. Fail validation when any rule path is missing from the root index, any indexed path is stale, or a rule body was duplicated into
AGENTS.md. - Report changed rules, index rows, optimization measurements, and validation evidence.
The index makes rules discoverable; it does not auto-load their bodies. During later work, read the indexed rule whose Load when condition matches the task.
Native user gates
Required approval: main presents a concrete, reviewable proposal in chat and waits for an actual user reply before dependent action. Existing authorization for the same scope remains valid; do not ask again. Optional clarification: use request_user_input_async only if exposed, or request_user_input only if available in the current runtime/mode, for optional choices and never approval. Otherwise ask in main chat. Delegated agents return unresolved questions to main. Silence, elapsed time and tool errors are not approval.
Установить rules в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл rules?
Maintains project .codex/rules and the AGENTS.md rule index. Explicit user invocation only.
Как установить скилл rules?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл rules запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic