code-explorer-rules

A set of rules for finding and understanding code in 1C projects. 1C is a business software platform whose configurations use files and modules written partly in the BSL language.

In plain words
What is it for?
Use it to trace 1C configuration objects, forms, commands, roles, modules, constants, and other metadata-related files.
Why use it?
It provides known file paths and object patterns, making it easier to locate the right module or metadata file in a large 1C codebase.

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/jsfilatov/1c-full-cycle-dev/code-explorer-rules
Clone the repo
git clone --depth 1 https://github.com/jsfilatov/1c-full-cycle-dev

Made for: Cursor.

Per session 1,951 This file is loaded in full into every session.
When invoked 1,951 The same file — it is already loaded in full.
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.01951 $0.01951
Opus 5 $0.00975 $0.00975
Sonnet 5 $0.00390 $0.00390
Haiku 4.5 $0.00195 $0.00195

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

Security

Grade A, and why

code-explorer-rules 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/code-explorer-rules.mdc · 104 lines

How it starts

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

Шаблоны путей

  • Список объектов конфигурации: Configuration.xml.
  • Метаданные объекта: [Type]/[Name].xml.
Назначение Шаблон
Модуль объекта [Type]/[Name]/Ext/ObjectModule.bsl
Модуль менеджера [Type]/[Name]/Ext/ManagerModule.bsl
Команда [Type]/[Name]/Commands/[CommandName]/Ext/CommandModule.bsl
Форма (структура) [Type]/[Name]/Forms/[FormName]/Ext/Form.xml
Модуль формы [Type]/[Name]/Forms/[FormName]/Ext/Form/Module.bsl
Общая форма (структура) CommonForms/[Name]/Ext/Form.xml
Общая форма (модуль) CommonForms/[Name]/Ext/Form/Module.bsl
Константа (модуль) Constants/[Name]/Ext/ValueManagerModule.bsl
Определяемый тип DefinedTypes/[Name].xml
Перечисление (модуль) Enums/[Name]/Ext/ManagerModule.bsl
Роль Roles/[Name]/Ext/Rights.xml
План счетов (предопределённые) ChartsOfAccounts/[Name]/Ext/Predefined.xml
ПВХ (предопределённые) ChartsOfCharacteristicTypes/[Name]/Ext/Predefined.xml

Общие модули: CommonModules/[Имя]/Ext/Module.bsl (в таблице [Type] не задаётся).

Пример подстановки Catalogs / Номенклатура: Catalogs/Номенклатура.xml, Catalogs/Номенклатура/Ext/ManagerModule.bsl, Catalogs/Номенклатура/Forms/ФормаВыбора/Ext/Form.xml, Catalogs/Номенклатура/Forms/ФормаВыбора/Ext/Form/Module.bsl.

Type в путях (регистр и написание — строго)

Только: Catalogs, Documents, InformationRegisters, AccumulationRegisters, AccountingRegisters, DataProcessors, Constants, CommonForms, CommonCommands, DocumentJournals, BusinessProcesses, DefinedTypes, Enums, Reports, Roles, ChartsOfCharacteristicTypes, ChartsOfAccounts.

Алиасы (только распознавание; пути — только английские Type)

RU / EN (фрагмент) Путь Type
Справочник, Справочники, Catalog Catalogs
Документ, Документы, Document Documents
РегистрСведений, …, InformationRegister InformationRegisters
РегистрНакопления, …, AccumulationRegister AccumulationRegisters
РегистрБухгалтерии, …, AccountingRegister AccountingRegisters
Обработка, …, DataProcessor DataProcessors
Константа, …, Constant Constants
ОбщаяФорма, …, CommonForm CommonForms
ЖурналДокументов, …, DocumentJournal DocumentJournals
БизнесПроцесс, …, BusinessProcess BusinessProcesses
ОбщаяКоманда, …, CommonCommand CommonCommands
ОпределяемыйТип, …, DefinedType DefinedTypes
Перечисление, …, Enum Enums
Отчет, …, Report Reports
Роль, …, Role Roles
ПланВидовХарактеристик, …, ChartsOfCharacteristicType ChartsOfCharacteristicTypes
ПланСчетов, …, ChartsOfAccount ChartsOfAccounts

Read the full file on GitHub · 104 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 · 104 lines · 1,951 tokens per session scan A e1e5ea11cd5a

Subscribe to this mod's changes

code-explorer-rules is a cursor rule published in the GitHub repository jsfilatov/1c-full-cycle-dev (8 stars, last pushed 4mo ago), licensed MIT. It adds 1,951 tokens to every session, about $0.0098 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-31.