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.
npx agentmods add rules/yellow-hammer/mcp-1c-platform-tools/jsdocgit clone --depth 1 https://github.com/yellow-hammer/mcp-1c-platform-toolsWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.00644 |
| Opus 5 | $0.00000 | $0.00322 |
| Sonnet 5 | $0.00000 | $0.00129 |
| Haiku 4.5 | $0.00000 | $0.00064 |
Grade A, and why
jsdoc 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 yesterday.
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.
How it starts
The opening of the file, as written. The whole thing — 63 lines — stays where its author put it; the contents beside it link to each section on GitHub.
JSDoc
Общие правила
- Язык комментариев: русский (как в code-style и project-context).
- Документировать все экспортируемые сущности: функции, классы, методы, интерфейсы, типы, константы.
- Для внутренних (не экспортируемых) функций и типов — краткий JSDoc при неочевидном назначении.
- Файл: в начале модуля — один блок JSDoc с описанием назначения модуля (если не однострочный комментарий).
Формат
- Функция/метод: описание в одну строку или короткий абзац; при наличии параметров или возвращаемого значения — теги
@paramи@returns. - Класс: назначение класса и откуда берутся параметры (например env, конфиг).
- Интерфейс/тип: одно предложение о назначении и ключевых полях.
- Константа/объект: что представляет (например «Уровни логирования», «Схема параметров инструментов»).
Теги
@param {Type} name — описание— для параметров (тип опционален при наличии TypeScript).@returns описание— для возвращаемого значения (при неочевидном или важном).- Не использовать
@descriptionотдельно — описание пишется в теле блока.
Примеры
/**
* Преобразует commandId расширения в имя MCP-инструмента (укладывается в лимит длины).
*
* @param commandId — полный идентификатор команды
* @returns имя инструмента для MCP
*/
export function commandIdToToolName(commandId: string): string { ... }
/** Настройки подключения к IPC-серверу (хост, порт, токен, таймаут). */
export interface IpcClientConfig { ... }
/**
* Выполняет JSON-RPC запрос к IPC-серверу.
*
* @param method — имя метода (например listCommands, executeCommand)
* @param params — опциональные параметры
* @returns результат из response.result (при ошибке — reject с сообщением сервера)
*/
public async request<T = unknown>(method: string, params?: Record<string, unknown>): Promise<T> { ... }
Что не дублировать
- Не повторять в JSDoc то, что уже однозначно видно из сигнатуры и имени (например «возвращает Promise» для async-функции), если нет уточнений.
- Тесты: достаточно файлового JSDoc при необходимости; описание сценария оставлять в
describe/it.
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.
- yesterday First seen · 63 lines · 644 tokens per session scan A 2e9ba3f7bf4b
jsdoc is a cursor rule published in the GitHub repository yellow-hammer/mcp-1c-platform-tools (35 stars, last pushed 13d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 644 tokens. 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.
Other cursor rules, from other repositories
1c-coding-standards
Стандарты кода BSL: именование, запросы, коллекции.
bsl-ssl
Переиспользование БСП, разметка правок типовых модулей, устаревшие объекты.
1c-report-direct-query
Прямой запрос в отчётах 1С (СКД) без схемы компоновки.
query-optimization-tips
Оптимизация запросов 1С: ВЫРАЗИТЬ, ВТ, индексы.
1c-mdo-integrity
Целостность MDO-файлов: UUID, ссылки.
1c-skd-two-pass-preprocessing
Двухпроходный СКД: предобработка детальных записей до свертки.