Skip to content
Development
Command

/rulesmodel

Adapt the ruleset to the model that is actually running — normalize a free-form model name to a profile slug and write AGENT_MODEL (opus5|sonnet5|fable5|gpt56|gpt6|off) into .dev.env

From plugin
ai-rules-1c
55045 skills13 agents45 commands
> /plugin marketplace add comol/ai_rules_1c
> /plugin install 1c-rules@1c-rules

Command definition

rulesmodel.md
description: Adapt the ruleset to the model that is actually running — normalize a free-form model name to a profile slug and write AGENT_MODEL (opus5|sonnet5|fable5|gpt56|gpt6|off) into .dev.env
userOnly: true
argumentHint: "[opus5|sonnet5|fable5|gpt56|gpt6|<any model name>|auto|status|off|reset]"

/rulesmodel — adapt the rules to the active model

Bind the ruleset to the model that executes it by writing the `AGENT_MODEL` key in `.dev.env`. Canonical behaviour of the layer — `content/rules/model-adaptation.md` and the profile files `content/rules/model-<slug>.md` (installed copies; match by file name per the path convention in `AGENTS.md`). **Load `model-adaptation.md` before acting.**

Supported profiles: `opus5` (Claude Opus 5), `sonnet5` (Claude Sonnet 5), `fable5` (Claude Fable / Mythos 5, 5.1, 5.2), `gpt56` (GPT-5.6), `gpt6` (GPT-6 Astra). Any other model runs the base ruleset, which is model-neutral by design — that is a valid state, not a degraded one.

An agent that knows which model it runs applies that model's profile without this command. The key matters in three cases: the agent cannot tell its model (the slug then decides), the project wants the layer off (`off`), or the choice should be visible to the team.

Parameters, classes and defaults — `content/rules/dev-standards-env-process.md`; Defaulted keys are never asked for.

The command edits **only** the `AGENT_MODEL` line in `.dev.env` — never other keys, never other files. Rewrite the `AGENT_MODEL=` line in place, or append `AGENT_MODEL=<slug>` at the end; if `.dev.env` is missing, run the installer (`install.ps1 init`) instead of creating a partial file — until then apply the profile for the current session only.

> **`AGENT_MODEL` ≠ `SUBAGENT_MODEL_*`.** This command sets which model **you** run on, so the ruleset can adapt to its documented behaviour. The models that **subagents** run on are `SUBAGENT_MODEL_CODING` / `_ANALYSIS` / `_LIGHT`, configured by `/economymode models` and consumed by the installer. If the user asks to "change the model" meaning subagent tiers, route them there instead and say so in one line.

Argument parsing (normalization is your job, not a script's)

The user may write the model name any way they like. Resolve free-form input to a canonical slug **yourself** — no script has to be fed an exact string:

1. **Empty or `auto`** — identify the model you are actually running from your own self-knowledge and map it to a slug. If you are not one of the supported models, treat it as `reset` (see below) and say which model you identified — the base ruleset applies to it. 2. **A model name in any spelling** — normalize by family + major version: lowercase; strip spaces, dashes, dots, underscores; strip vendor prefixes (`anthropic/`, `openai/`, `claude-`, `gpt-`) and client-side suffixes (`-thinking`, `-high`, `#xhigh`, `-max`, `-fast`, date stamps); accept Russian spellings (`клод опус 5`, `сонет 5`, `фейбл 5`, `гпт 5.6`, `гпт 6`, `астра`). Use the alias table below, and judgement for spellings it does not list. The value written is always the dot-free slug (`gpt56`, not `gpt5.6`; `gpt6`, not `gpt-6`) — rule file names and the `AGENTS.md` path rewriting require it. 3. **`status`** — report without editing anything. 4. **`off` / `none` / `generic` / `выключить`** — write `AGENT_MODEL=off`: no profile for anyone in the project. 5. **`reset` / `clear` / `сброс`** — clear the value: every agent selects the profile by the model it knows it runs.

**Unsupported or ambiguous input is never silently coerced.** `gpt-5.5`, `opus 4.8`, `sonnet 4.6`, `haiku`, a bare `claude`, `gemini`, `glm`, `qwen`, a bare version number: report the supported slugs, explain that the base ruleset applies unchanged for other models, and ask which the user wants. Offer the nearest same-family profile only as an explicit choice they confirm — never map one family onto another. `gpt-5.6` is `gpt56`; `gpt-6` / `gpt-6-astra` is `gpt6` — do not coerce one into the other.

**Requested slug ≠ the model you are running** is allowed (the user may be configuring the project for a teammate or for another client): write the requested value, and state in one line that the active session is a different model, so the profile you apply right now is the one matching your own identity per `model-adaptation.md §2`.

Accepted spellings

| Slug | Recognised as | |---|---| | `opus5` | `opus5`, `opus 5`, `opus-5`, `claude-opus-5`, `claude opus 5`, `Claude Opus 5.0`, `клод опус 5`, `опус 5` | | `sonnet5` | `sonnet5`, `sonnet 5`, `claude-sonnet-5`, `Claude Sonnet 5`, `сонет 5`, `соннет 5` | | `fable5` | `fable5`, `fable 5`, `claude-fable-5`, `Claude Fable 5`, `fable 5.1`, `claude-fable-5-1`, `fable 5.2`, `claude-fable-5-2`, `mythos5`, `claude-mythos-5`, `claude-mythos-5-1`, `claude-mythos-5-2`, `фейбл 5`, `фейбл 5.2`, `фабл 5`, `мифос 5` | | `gpt56` | `gpt56`, `gpt5.6`, `gpt-5.6`, `GPT 5.6`, `openai gpt-5.6`, `гпт 5.6`, `гпт-5.6` | | `gpt6` | `gpt6`, `gpt-6`, `GPT 6`, `gpt-6-astra`, `gpt6astra`, `astra`, `astra6`, `astra 6`, `openai gpt-6`, `гпт 6`, `гпт-6`, `астра`, `астра6`, `астра 6` |

Setting the profile (`auto`, a slug, or a free-form name)

1. Read `.dev.env`: the `AGENT_MODEL` key. 2. Set `AGENT_MODEL=<slug>`. 3. **No re-render needed.** `AGENT_MODEL` is read from `.dev.env` at task time and all profile files are already installed as on-demand rules — no `install.ps1 update`, no client restart. 4. Load `content/rules/model-<slug>.md` and apply it immediately — from this message on, in this session. 5. Confirm to the user in 3–5 lines, in Russian:

  • что записано в `.dev.env` (`AGENT_MODEL=<slug>`, модель — `<полное имя>`) и что действует для проекта, включая новые чаты;
  • 2–3 главных изменения поведения из профиля `model-<slug>.md`;
  • что **не** меняется: хард-гейты — профиль их не ослабляет (`model-adaptation.md §4`);
  • рекомендуемая клиентская настройка усилия / verbosity из профиля, если её задаёт пользователь (эт
Read more
@comol
Ships withai-rules-1c

Rules\skills\subagens for vibecoding in 1C(bsl)

55032 skills13 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
550
Star history of comol/ai_rules_1c on GitHub, a chart by star-history.com

Other commands on ai-rules-1c.

build-release

build-release

Command

Build release artifacts from committed sources — .cf for the main configuration and .cfe per extension, with optional version…

@comol@comolInstall Command
caveman

caveman

Command

Toggle the caveman communication style — set CAVEMAN (on|auto|off) in .dev.env for the whole project; on|off|auto persist,…

@comol@comolInstall Command
check-uuid

check-uuid

Command

Check a 1C XML configuration dump for duplicate UUIDs, and optionally regenerate them

@comol@comolInstall Command
checkmcp

checkmcp

Command

Check availability of 1C MCP servers and install/start the missing ones

@comol@comolInstall Command
checkupdates

checkupdates

Command

Read-only check for available updates of the 1C MCP server images and of the 1c-rules ruleset, without pulling or installing…

@comol@comolInstall Command
deploy-and-test

deploy-and-test

Command

Load the configuration into the test infobase from .dev.env and check the result in the 1C interface — QA MCP first, the web…

@comol@comolInstall Command

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command