bsl-method-description

bsl-method-description is a cursor rule for Cursor from bia-technologies/yaxunit. It costs 6 tokens per session (2,754 once invoked), scanned A, original, Apache-2.0.

Стандарты описания методов.

Cursor rule for Cursor

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.

agentmods
npx agentmods add rules/bia-technologies/yaxunit/bsl-method-description
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-method-description

README.md
[![agentmods](https://agentmods.dev/badge/rules/bia-technologies/yaxunit/bsl-method-description.svg)](https://agentmods.dev/rules/bia-technologies/yaxunit/bsl-method-description)
Your own site
<a href="https://agentmods.dev/rules/bia-technologies/yaxunit/bsl-method-description"><img src="https://agentmods.dev/badge/rules/bia-technologies/yaxunit/bsl-method-description.svg" alt="Measured on agentmods" height="20"></a>
Per session 6 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,754 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00006 $0.02754
Opus 5 $0.00003 $0.01377
Sonnet 5 $0.00001 $0.00551
Haiku 4.5 $0.00001 $0.00275

Measured 2d ago against content hash bddb55c64919, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

bsl-method-description 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 2d 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-method-description.mdc · 235 lines

How it starts

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

Правила оформления описаний методов для LLM

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

  • Описание метода должно быть в виде комментария перед объявлением метода
  • Краткое описание назначения метода, особенности работы и огранчения
  • Если метод простой и его назначение очевидно из названия и параметров - описание можно не писать
  • Не писать комментарий, если он не добавляет полезной информации
  • Между секциями комментария должна быть пустая строка для удобства чтения
  • Описание размещается перед директивой компиляции, если она есть
  • Ссылка на метод начинается с "см. ", например см. Фабрика.ОписаниеПараметра
  • В описания параметров вместо типов "структура" стоит указать ссылки на методы конструкторы по возможности, для этого стоит анализировать кодовую базу решения
  • После генерации описаний, проверь все ссылки на методы, существуют ли они
  • Для экспортных методов в примере должно быть имя модуля
  • Тип общего модуляя указывается в формате CommonModule.<Имя модуля>

Примеры описаний методов

Пример 1: Простая функция с одним параметром

// Определяет доступность ролей текущему пользователю.
//
// Параметры:
//   ИменаРолей - Строка - имена ролей, доступность которых проверяется, разделенные запятыми.
//
// Возвращаемое значение:
//   Булево - Истина, если хотя бы одна из переданных ролей доступна текущему пользователю.
//
// Пример:
//   Если ПроверкаПрав.РолиДоступны("ИспользованиеРассылокОтчетов,ОтправкаПоПочте") Тогда ...
//
Функция РолиДоступны(ИменаРолей) Экспорт

Пример 2: Процедура с несколькими параметрами

// Заполняет форму исходящего письма по шаблону.
//
// Параметры:
//   ИсходящееПисьмо - СправочникСсылка.ИсходящееПисьмо - данные формы для типа СправочникСсылка.ИсходящееПисьмо,
//                     расположенные в форме редактора исходящего письма.
//   Текст - ФорматированныйДокумент - поле редактора текста письма, расположенное в форме
//          редактора исходящего письма.
//
Процедура ЗаполнитьПисьмоПоШаблону(ИсходящееПисьмо, Текст) Экспорт

Read the full file on GitHub · 235 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. 2d ago First seen · 235 lines · 6 tokens per session scan A bddb55c64919

Subscribe to this mod's changes

bsl-method-description is a cursor rule published in the GitHub repository bia-technologies/yaxunit (322 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 6 tokens to every session and 2,754 once invoked, about $0.0000 per session on Opus 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.