bsl-coding-guidelines

bsl-coding-guidelines is a cursor rule for Cursor from bia-technologies/yaxunit. It costs 2,876 tokens per session, scanned A, original, Apache-2.0.

A set of coding rules for 1C, a programming language and business-software platform, covering names for variables, procedures, and functions.

In plain words
What is it for?
Use it when writing or reviewing 1C code and choosing names for its program elements.
Why use it?
It gives developers consistent naming conventions for 1C code.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when writing or reviewing 1C code and choosing names for its program elements.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/bia-technologies/yaxunit/bsl-coding-guidelines
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/bia-technologies/yaxunit

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for bsl-coding-guidelines

README.md
[![agentmods](https://agentmods.dev/badge/rules/bia-technologies/yaxunit/bsl-coding-guidelines/github.svg)](https://agentmods.dev/rules/bia-technologies/yaxunit/bsl-coding-guidelines)
Your own site
<a href="https://agentmods.dev/rules/bia-technologies/yaxunit/bsl-coding-guidelines"><img src="https://agentmods.dev/badge/rules/bia-technologies/yaxunit/bsl-coding-guidelines/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for bsl-coding-guidelines

Your own site · 80×15
<a href="https://agentmods.dev/rules/bia-technologies/yaxunit/bsl-coding-guidelines"><img src="https://agentmods.dev/badge/rules/bia-technologies/yaxunit/bsl-coding-guidelines.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,876 This file is loaded in full into every session.
When invoked 2,876 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.02876 $0.02876
Opus 5.5 $0.01150 $0.01150
Sonnet 5.5 $0.00575 $0.00575
Haiku 4.5 $0.00288 $0.00288

Measured 1mo ago against content hash f7149810bb10, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bsl-coding-guidelines scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/bsl-coding-guidelines.mdc · 302 lines

How it starts

The opening of the file, as written. The whole thing — 302 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Правила кодирования на 1С

1. Правила именования

1.1 Общие правила

  • Имена образуются от терминов предметной области
  • Каждое слово пишется с прописной буквы
  • Пробелы между словами удаляются
  • Предлоги и местоимения из одной буквы также пишутся прописными
  • Запрещено начинать с подчеркивания
  • Не должны состоять из одного символа (кроме счетчиков циклов)

Примеры правильных имен:

// Правильно
Перем ДиалогРаботыСКаталогом;     // Диалог работы с каталогом   
Перем КоличествоПачекВКоробке;    // Количество пачек в коробке

// Неправильно
масРеквизитов, соотвВидИмя, новСтр

1.2 Имена процедур

  • Образуются от неопределенной формы глагола
  • Примеры:
// Правильно
Процедура ЗагрузитьКонтрагента()
Процедура РассчитатьСуммуДокумента()
Процедура ОбновитьДанныеПоКонтрагенту()

// Неправильно
Процедура ЗагрузкаКонтрагента()
Процедура РасчетСуммыДокумента()

1.3 Имена функций

  • Образуются от описания возвращаемого значения
  • Для создания объектов используется слово "Новый" в начале
  • Для проверок используется "Это" или причастия

Примеры:

// Правильно
Функция ПолноеИмяПользователя()
Функция НовоеПолеФормы()
Функция ДокументПроведен()
Функция ЭтоВнешняяЗадача()

// Неправильно
Функция ПолучитьПолноеИмяПользователя()
Функция СоздатьПолеФормы()
Функция ПроверитьПроведенностьДокумента()

1.4 Флаги состояния

  • Называются как истинное значение флага
// Правильно
Перем ЕстьОшибки;     // Признак наличия ошибок в процедуре
Перем ЭтоТоварТара;   // Признак, что товар относится к возвратной таре

// Неправильно
Перем НетОшибок;
Перем НеТоварТара;

2. Правила структуры кода

2.1 Разделы модуля

#Область ОписаниеПеременных
// Объявление переменных модуля
#КонецОбласти

#Область ПрограммныйИнтерфейс
// Экспортные процедуры и функции
#КонецОбласти

#Область ОбработчикиСобытий
// Обработчики событий объекта
#КонецОбласти

#Область СлужебныеПроцедурыИФункции
// Внутренние процедуры и функции
#КонецОбласти

#Область Инициализация
// Код инициализации
#КонецОбласти

Read the full file on GitHub · 302 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 302 lines · 2,876 tokens per session scan A f7149810bb10

Subscribe to this mod's changes

bsl-coding-guidelines is a cursor rule published in the GitHub repository bia-technologies/yaxunit (339 stars, last pushed 9d ago), licensed Apache-2.0. It adds 2,876 tokens to every session, about $0.0115 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-01.