1c-query-optimization SKILL.md skillA

This file is byte-identical to the first copy the registry indexed. Same content hash, so the same checks give both the same grade.

1c-query-optimization from desko77/cursor-1c-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add desko77/cursor-1c-skills/1c-query-optimization@git:20260828.e6ca64d

Pins git:20260828.e6ca64d in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
desko77/cursor-1c-skills
Path
skills/1c-query-optimization/SKILL.md
Versions recorded
5
Latest version
git:20260828.e6ca64d, committed Aug 28, 2026
First version recorded
Feb 28, 2026
Size
3,211 bytes
Repository stars
74
License
MIT

Advanced query patterns for 1C: temporary tables, joins, DCS optimization. Use for complex queries beyond basic rules in query-optimization-tips.md.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# 1C Query Optimization Skill (Advanced Patterns)

Продвинутые паттерны оптимизации запросов. Базовые оптимизации (ВЫРАЗИТЬ, ПРЕДСТАВЛЕНИЕ, ВТ вместо подзапросов, ОБЪЕДИНИТЬ ВСЕ, индексы, СКД) - см. правило `query-optimization-tips.md`. Анти-паттерны (запрос в цикле, обращение через точку) - см. `anti_patterns.md`.

## Validate Query via AI-EDT

Если сервер AI-EDT подключен (инструменты `ai-edt` доступны), проверяй оптимизированный запрос через `validate_query` - убедись, что после рефакторинга нет синтаксических/семантических ошибок. Для запросов СКД: `dcsMode=true`.

## When to Use

Invoke this skill when:
- Working with complex multi-step data processing
- Optimizing joins and subqueries
- Implementing DCS reports
- Processing large datasets in portions

## Temporary Tables - When to Use

Use temporary tables for:
- Complex multi-step data processing
- Joining data from multiple sources
- Reusing intermediate results

### Join vs Subquery (basic choice)

```bsl
// PREFERRED: Join (usually faster)
"ВЫБРАТЬ
|	Заказы.Ссылка КАК Заказ,
|	Контрагенты.ИНН КАК ИНН
|ИЗ
|	Документ.ЗаказКлиента КАК Заказы
|		ЛЕВОЕ СОЕДИНЕНИЕ Справочник.Контрагенты КАК Контрагенты
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add desko77/cursor-1c-skills/1c-query-optimization@sha256:f66f42cfbbe1f204

The line at the top of this page pins the label git:20260828.e6ca64d, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_k2vtnkg6r4didrkb.svg)](https://markdownregistry.com/a/art_k2vtnkg6r4didrkb)

4 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 5 versions of this file, between Feb 28, 2026 and Aug 28, 2026, about one every 45 days.

versioncommittedcommitsizeaudit
git:20260828.e6ca64d latest2026-08-28 e6ca64d 3,211 BA view · diff
git:20260814.928ad1c2026-08-14 928ad1c 3,219 BA view · diff
git:20260409.7165c792026-04-09 7165c79 3,221 BA view · diff
git:20260321.1bab3e12026-03-21 1bab3e1 3,212 BA view · diff
git:20260228.62bc1652026-02-28 62bc165 11,793 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (3211 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

desko77/cursor-1c-skills · 74 stars · license MIT · pushed 2026-11-05 · branch master

API

GET https://markdownregistry.com/api/v1/artifacts/art_k2vtnkg6r4didrkb
GET https://markdownregistry.com/api/v1/resolve?ref=desko77/cursor-1c-skills/1c-query-optimization
GET https://markdownregistry.com/api/v1/blob/f66f42cfbbe1f20464c31a9b713401171c1b2796fb3d2ecf401088f6a300fd28

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from desko77/cursor-1c-skills

1c-bsl-validate SKILL.md skill
desko77/cursor-1c-skills · skills/1c-bsl-validate/SKILL.md · Проверка вызовов общих модулей в BSL по выгрузке конфигурации - существует ли модуль и экспортный ли у него метод…
git:20260929.a0d4b1a · audit A · 74 stars
1c-bsp-api SKILL.md skill
desko77/cursor-1c-skills · skills/1c-bsp-api/SKILL.md · Справочник программного интерфейса Библиотеки стандартных подсистем (БСП) 1С - какие общие модули существуют, какие у…
git:20260820.6cf3b30 · audit A · 74 stars
1c-bsp-command SKILL.md skill
desko77/cursor-1c-skills · skills/1c-bsp-command/SKILL.md · Добавить команду в дополнительную обработку БСП
git:20260929.a0d4b1a · audit A · 74 stars
1c-bsp-registration SKILL.md skill
desko77/cursor-1c-skills · skills/1c-bsp-registration/SKILL.md · Добавить функцию регистрации БСП (СведенияОВнешнейОбработке) в модуль объекта обработки
git:20260929.a0d4b1a · audit A · 74 stars
1c-cf-add-object SKILL.md skill
desko77/cursor-1c-skills · skills/1c-cf-add-object/SKILL.md · Добавить объект метаданных в конфигурацию 1С с формой, подсистемой и валидацией. Workflow: meta-compile → cf-edit →…
git:20260828.e6ca64d · audit A · 74 stars
1c-cf-edit SKILL.md skill
desko77/cursor-1c-skills · skills/1c-cf-edit/SKILL.md · Точечное редактирование конфигурации 1С. Используй когда нужно изменить свойства конфигурации, добавить или удалить…
git:20261104.921ea13 · audit A · 74 stars
1c-cf-info SKILL.md skill
desko77/cursor-1c-skills · skills/1c-cf-info/SKILL.md · Анализ структуры конфигурации 1С - свойства, состав, счетчики объектов. Используй для обзора конфигурации - какие…
git:20261104.921ea13 · audit A · 74 stars
1c-cf-init SKILL.md skill
desko77/cursor-1c-skills · skills/1c-cf-init/SKILL.md · Создать пустую конфигурацию 1С (scaffold XML-исходников). Используй когда нужно начать новую конфигурацию с нуля
git:20261104.921ea13 · audit A · 74 stars
1c-cf-new-project SKILL.md skill
desko77/cursor-1c-skills · skills/1c-cf-new-project/SKILL.md · Создать новую конфигурацию 1С с нуля - scaffold + объекты + подсистемы + роли + формы. Workflow: cf-init →…
git:20260828.e6ca64d · audit A · 74 stars
1c-cf-validate SKILL.md skill
desko77/cursor-1c-skills · skills/1c-cf-validate/SKILL.md · Валидация конфигурации 1С. Используй после создания или модификации конфигурации для проверки корректности
git:20260929.a0d4b1a · audit A · 74 stars
1c-cfe-borrow SKILL.md skill
desko77/cursor-1c-skills · skills/1c-cfe-borrow/SKILL.md · Заимствование объектов из конфигурации 1С в расширение (CFE). Используй когда нужно перехватить метод, изменить форму…
git:20261104.921ea13 · audit A · 74 stars
1c-cfe-diff SKILL.md skill
desko77/cursor-1c-skills · skills/1c-cfe-diff/SKILL.md · Анализ расширения конфигурации 1С (CFE) - состав, заимствованные объекты, перехватчики, проверка переноса. Используй…
git:20261104.921ea13 · audit A · 74 stars

Every file in desko77/cursor-1c-skills

Other files named 1c-query-optimization

1c-query-optimization SKILL.md skill
desko77/claude-code-skills-1c · skills/1c-query-optimization/SKILL.md · Advanced query patterns for 1C: temporary tables, joins, DCS optimization. Use for complex queries beyond basic rules…
git:20260828.2b87e3e · audit A · 90 stars

Browse by kind, by grade A, or by owner.