jsdoc

jsdoc is a cursor rule for Cursor from yellow-hammer/mcp-1c-platform-tools. It costs 644 tokens per session, scanned A, original, MIT.

A set of JSDoc rules for documenting JavaScript or TypeScript code, with comments written in Russian.

In plain words
What is it for?
Use it when adding documentation for modules, functions, classes, methods, interfaces, types, and constants. It defines when to use @param and @returns and which JSDoc style to follow.
Why use it?
It makes exported code elements and non-obvious internal elements easier to understand and keeps documentation consistent.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when adding documentation for modules, functions, classes, methods, interfaces, types, and constants. It defines when to use @param and @returns and which JSDoc style to follow.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/yellow-hammer/mcp-1c-platform-tools/jsdoc
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/yellow-hammer/mcp-1c-platform-tools

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 jsdoc

README.md
[![agentmods](https://agentmods.dev/badge/rules/yellow-hammer/mcp-1c-platform-tools/jsdoc/github.svg)](https://agentmods.dev/rules/yellow-hammer/mcp-1c-platform-tools/jsdoc)
Your own site
<a href="https://agentmods.dev/rules/yellow-hammer/mcp-1c-platform-tools/jsdoc"><img src="https://agentmods.dev/badge/rules/yellow-hammer/mcp-1c-platform-tools/jsdoc/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 jsdoc

Your own site · 80×15
<a href="https://agentmods.dev/rules/yellow-hammer/mcp-1c-platform-tools/jsdoc"><img src="https://agentmods.dev/badge/rules/yellow-hammer/mcp-1c-platform-tools/jsdoc.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 644 This file is loaded in full into every session.
When invoked 644 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.00644 $0.00644
Opus 5.5 $0.00258 $0.00258
Sonnet 5.5 $0.00129 $0.00129
Haiku 4.5 $0.00064 $0.00064

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

Security

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 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/jsdoc.mdc · 63 lines

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.

Read the full file on GitHub · 63 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 · 63 lines · 644 tokens per session scan A 2e9ba3f7bf4b

Subscribe to this mod's changes

jsdoc is a cursor rule published in the GitHub repository yellow-hammer/mcp-1c-platform-tools (40 stars, last pushed 4d ago), licensed MIT. It adds 644 tokens to every session, about $0.0026 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-08-30.

Related

Other cursor rules, from other repositories

1c-coding-standards

Coding standards for BSL, the programming language used by the 1C business software platform. They cover naming, method documentation, database queries, collections, client-server code, and performance practices.

Desko77/cursor-1c-skills · 0 tokens

code-review-checklist

A code-review checklist for 1C source files, including BSL and OS files. It groups findings by severity and checks issues such as security, performance, errors, access control, duplication, and maintainability.

Desko77/cursor-1c-skills · 0 tokens

bsl-ssl

A set of rules for developing 1C applications built on БСП, the Russian-language Standard Subsystems Library. It tells developers when to reuse library functionality, how to mark changes, and how to handle outdated objects.

Desko77/cursor-1c-skills · 0 tokens

bsp-profile-rights-api

Rules for creating and updating access-group profiles in БСП 3.x, the Standard Subsystems Library used by several 1C business applications. They explain how roles, permissions, users, and row-level access restrictions are represented in code.

Desko77/cursor-1c-skills · 0 tokens

edt-form-xml-requirements

A set of rules for XML form files used by EDT, a development environment for 1C business applications. It describes form details that the code generator does not add automatically.

Desko77/cursor-1c-skills · 0 tokens

sdd-workflow

A nine-phase Specification-Driven Development workflow for planning complex 1C software changes before writing code. 1C is a business software platform commonly used for accounting and enterprise operations.

Desko77/cursor-1c-skills · 12 tokens