text-formatting

text-formatting is a cursor rule for coding agents from Desko77/cursor-1c-skills. It costs 29 tokens per session (1,354 once invoked), scanned A, original, MIT.

Rules for characters and writing style in generated technical text, including code comments, documentation, plans, and messages.

In plain words
What is it for?
Use it whenever generating BSL code, EDT metadata, documentation, release notes, tool descriptions, or other project text.
Why use it?
It helps avoid characters that 1C development tools may reject or damage when saving files, and keeps technical descriptions precise.

Cursor rule

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/desko77/cursor-1c-skills/text-formatting
Clone the repo
git clone --depth 1 https://github.com/Desko77/cursor-1c-skills

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 text-formatting

README.md
[![agentmods](https://agentmods.dev/badge/rules/desko77/cursor-1c-skills/text-formatting.svg)](https://agentmods.dev/rules/desko77/cursor-1c-skills/text-formatting)
Your own site
<a href="https://agentmods.dev/rules/desko77/cursor-1c-skills/text-formatting"><img src="https://agentmods.dev/badge/rules/desko77/cursor-1c-skills/text-formatting.svg" alt="Measured on agentmods" height="20"></a>
Per session 29 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,354 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.00029 $0.01354
Opus 5 $0.00015 $0.00677
Sonnet 5 $0.00006 $0.00271
Haiku 4.5 $0.00003 $0.00135

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

Security

Grade A, and why

text-formatting 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 4d 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.

rules/text-formatting.mdc · 89 lines

How it starts

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

Text Formatting

Применяется: ко всему генерируемому тексту - код, комментарии, документация, сообщения, планы, markdown.

Соблюдать НА ГЕНЕРАЦИИ, а не постобработкой. Не писать запрещенные символы изначально; НЕ полагаться на зачистку (sed/PowerShell/замену) после. Постобработка пропускается при прямой записи в код - например write_module_source в комментарий модуля или формы, edit_metadata, любой ввод через MCP-инструменты EDT - и запрещенный символ остается в файле. Правило действует в момент набора каждого слова, особенно в комментариях BSL и любом тексте, уходящем в EDT.

Дополнительно: EDT при сохранении рубит длинное тире и часть символов как InvalidCharacterInFile, оставляя оборванный текст - еще причина не генерировать их вовсе.


Технический регистр в README, журнале изменений и описаниях

Применяется: README, CHANGELOG и заметки релиза, описания инструментов и операций, тексты схем и сообщений, документация. Проверять ПЕРЕД публикацией, отдельным проходом по тексту.

Правило: писать техническими терминами, а не бытовой метафорой. Разговорные глаголы и образы исключать и переписывать на то, что происходит на самом деле.

Запрещено (образцы, список не исчерпывающий): "досыпает", "кладет", "забирает", "копит", "схлопывая", "внутренняя кухня", "ядро библиотеки", "подсистемы узнают друг о друге", "под капотом", "на лету", "магия", "умеет", "дружит с", "из коробки". В английском тексте то же самое: tops up, grabs, piles up, under the hood, the heart of, learn about each other, out of the box, magic, knows how to.

Переписывать на действие и предмет: не "досыпает элементы", а "добавляет N элементов в конец коллекции"; не "копит ошибки", а "накапливает список диагностик до вызова X"; не "схлопывая пробелы", а "заменяя последовательность пробелов одним"; не "ядро библиотеки", а конкретный модуль или пакет; не "подсистемы узнают друг о друге", а "подсистема A вызывает экспортный метод подсистемы B".

Проверочный вопрос к каждому глаголу и каждому образу: можно ли по этой фразе назвать метод, поле, код ошибки, диапазон версий или измеренное число? Нельзя - фраза декоративная, ее заменяют на фактическую. Имена методов, полей, кодов ошибок и измеренные величины предпочтительнее пересказа своими словами.

Read the full file on GitHub · 89 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. 4d ago First seen · 89 lines · 29 tokens per session scan A 8a156d9ed0f6

Subscribe to this mod's changes

text-formatting is a cursor rule published in the GitHub repository Desko77/cursor-1c-skills (55 stars, last pushed 2d ago), licensed MIT. It adds 29 tokens to every session and 1,354 once invoked, about $0.0001 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-08-30.