code-exploration-guide

A method for exploring a 1C codebase, a software project built with the 1C business platform. It helps trace where a feature starts, how data moves through the code, and where results are saved.

In plain words
What is it for?
Finding entry points, mapping calls across forms and modules, following data transformations, and documenting execution flows.
Why use it?
It provides a repeatable way to understand unfamiliar 1C code before changing it or investigating a bug.

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/code-exploration-guide
Clone the repo
git clone --depth 1 https://github.com/Desko77/cursor-1c-skills
Per session 10 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,519 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.00010 $0.01519
Opus 5 $0.00005 $0.00759
Sonnet 5 $0.00002 $0.00304
Haiku 4.5 $0.00001 $0.00152

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

Security

Grade A, and why

code-exploration-guide 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 3d 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/code-exploration-guide.mdc · 128 lines

How it starts

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

1C Code Exploration Guide

Методология систематического исследования кодовой базы 1С.

Применяется: при задачах "разберись как работает X", анализе перед доработкой, трассировке багов. Используется на фазе 2 SDD-workflow (см. sdd-workflow.md).


1. Feature Discovery - поиск точек входа

Где искать начало выполнения:

  • Обработчики форм: кнопки, изменения полей, события формы
  • Команды меню: подключаемые команды, команды подсистем
  • Серверные процедуры: экспортные функции общих модулей
  • БСП API: вызовы через ДлительныеОперации, ДополнительныеОтчетыИОбработки
  • Регламентные задания: Метаданные.РегламентныеЗадания
  • Подписки на события: ПодпискиНаСобытия (ПередЗаписью, ПриЗаписи объектов)
  • HTTP-сервисы: обработчики HTTP-запросов

Определить основные файлы:

  • Модули объектов (бизнес-логика)
  • Модули форм (UI-логика)
  • Общие модули (переиспользуемый код)
  • Модули менеджеров (API объектов)

2. Execution Flow Tracing - трассировка потока выполнения

Для каждой цепочки вызовов фиксировать:

  • Цепочку вызовов: от точки входа до записи в БД, через все слои
  • Трансформации данных: что на входе, что на выходе каждого шага, смена типов
  • Зависимости: другие объекты метаданных, общие модули, внешние системы, подсистемы БСП
  • Изменение состояния: какие данные модифицируются, побочные эффекты, записи в БД
  • Клиент-серверное разделение: директивы компиляции (&НаКлиенте, &НаСервере), переходы, сериализация данных

3. Architecture Mapping - карта архитектуры

Слои

Presentation (Формы)
    ↓
Application (Менеджеры, общие модули API)
    ↓
Domain (Модули объектов, бизнес-логика)
    ↓
Data (База данных, регистры)

Что фиксировать

  • Паттерны проектирования: Factory, Strategy, Observer, паттерны БСП
  • Интерфейсы компонентов: экспортные функции (public API), внутренние функции, контракты данных (структуры, параметры)
  • Cross-cutting concerns: права доступа (RLS), блокировки, логирование (ЗаписьЖурналаРегистрации), СКД, границы транзакций

Read the full file on GitHub · 128 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. 3d ago First seen · 128 lines · 10 tokens per session scan A 5cd31205dc5c

Subscribe to this mod's changes

code-exploration-guide is a cursor rule published in the GitHub repository Desko77/cursor-1c-skills (53 stars, last pushed 5d ago), licensed MIT. It adds 10 tokens to every session and 1,519 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.

Related

Other cursor rules, from other repositories

121-java-unit-testing

Java Unit testing guidelines.

alkoleft/platform-context-exporter · 0 tokens

architectural-planning

Cursor rule "architectural-planning" from alkoleft/platform-context-exporter, covering architectural planning for level 4 tasks, 🔍 architectural planning overview, 📋 architectural planning principles, 📋 architectural requirements analysis and functional requirements analysis.

alkoleft/platform-context-exporter · 6,209 tokens

reflection-comprehensive

Cursor rule "reflection-comprehensive" from alkoleft/platform-context-exporter, covering comprehensive reflection for level 4 tasks, 🔍 comprehensive reflection overview, 📋 reflection template structure, 1. system overview and system overview.

alkoleft/platform-context-exporter · 6,108 tokens

workflow-level4

Cursor rule "workflow-level4" from alkoleft/platform-context-exporter, covering comprehensive workflow for level 4 tasks, 🔍 level 4 workflow overview, 🔄 level transition handling, 📋 workflow phases and phase 1: initialization.

alkoleft/platform-context-exporter · 3,729 tokens

creative-phase-uiux

UI/UX Design Guidelines and Process for the Creative Phase.

alkoleft/platform-context-exporter · 0 tokens

optimization-integration

Cursor rule "optimization-integration" from alkoleft/platform-context-exporter, covering memory bank optimization integration, 🔄 optimization integration flow, 📋 optimization component registry, 🔄 optimization initialization sequence and 🔍 optimization configuration.

alkoleft/platform-context-exporter · 2,319 tokens