composing-1c-queries

composing-1c-queries is a skill for Claude Code, Codex from Desko77/cursor-1c-skills. It costs 9 tokens per session (7,062 once invoked), scanned A, a copy of composing-1c-queries, MIT.

A guide to writing queries in the 1C:Enterprise query language, which reads and combines data from a 1C configuration. It requires checking the configuration's actual metadata before writing a query.

In plain words
What is it for?
Use it to discover metadata, compose a query with the correct names, validate it, and then run it against the database.
Why use it?
It prevents failures caused by guessing table, field, register, or tabular-section names that differ between 1C databases.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to discover metadata, compose a query with the correct names, validate it, and then run it against the database.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/desko77/cursor-1c-skills/composing-1c-queries
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.

Any agent
npx skills add Desko77/cursor-1c-skills --skill composing-1c-queries
Clone the repo
git clone --depth 1 https://github.com/Desko77/cursor-1c-skills

Made for: Claude Code, Codex.

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 composing-1c-queries

README.md
[![agentmods](https://agentmods.dev/badge/skills/desko77/cursor-1c-skills/composing-1c-queries/github.svg)](https://agentmods.dev/skills/desko77/cursor-1c-skills/composing-1c-queries)
Your own site
<a href="https://agentmods.dev/skills/desko77/cursor-1c-skills/composing-1c-queries"><img src="https://agentmods.dev/badge/skills/desko77/cursor-1c-skills/composing-1c-queries/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 composing-1c-queries

Your own site · 80×15
<a href="https://agentmods.dev/skills/desko77/cursor-1c-skills/composing-1c-queries"><img src="https://agentmods.dev/badge/skills/desko77/cursor-1c-skills/composing-1c-queries.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 9 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,062 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium analysis-evasion · line 1
    Suspicious Unicode normalization or mixed-script content
    Fix: Review the flagged content for security risks. Ensure no credentials, secrets, or sensitive data are exposed.
How audits are shown
Origin 95% copy Near-identical to another mod 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.00009 $0.07062
Opus 5 $0.00005 $0.03531
Sonnet 5 $0.00002 $0.01412
Haiku 4.5 $0.00001 $0.00706

Measured 7d ago against content hash a33386c5f37a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

composing-1c-queries 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 7d 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.

Origin

This is a copy

95% identical to composing-1c-queries — 125 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/composing-1c-queries/SKILL.md · 569 lines

How it starts

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

Composing 1C Queries

Rules and patterns for writing correct 1C:Enterprise query language (язык запросов 1С). Queries are executed via the execute_query tool/endpoint.

CRITICAL: Verify Metadata Before Querying

NEVER guess or invent metadata object names, attribute names, or tabular section names. 1C configurations vary greatly - object and field names are unique to each database.

Before composing a query, if you are not certain about the exact names, use get_metadata or any other available tool to retrieve 1C configuration metadata to discover:

  • Available metadata objects (catalogs, documents, registers, etc.)
  • Object attributes (реквизиты) and their types
  • Tabular sections (табличные части) and their columns
  • Register dimensions, resources, and attributes

Workflow: retrieve metadata → confirm names → compose query → validate query → execute query

A query with a wrong object or field name will fail with a runtime error. Spending one call on metadata retrieval is always cheaper than debugging a failed query.

Имена таблиц и полей из AI-EDT

Если сервер AI-EDT подключен, имена не угадываются, а берутся у него - insights operation=describe_db_tables (отдельное имя describe_db_tables тоже работает). Инструмент показывает, во что объект превращается в базе данных: основную таблицу, по одной на каждую табличную часть, виртуальные таблицы регистра (остатки, обороты, срезы) с их параметрами, таблицу изменений и перерасчеты регистра расчета. Имена таблиц и полей отдаются сразу на двух языках, с типами полей, готовыми к подстановке после ИЗ.

Это дешевле, чем писать запрос по памяти и ловить ошибки имен по одной через validate_query: за один вызов видно все, что вообще можно выбрать.

Validate Query via AI-EDT

Если сервер AI-EDT подключен (инструменты ai-edt доступны), обязательно проверяй запрос перед выполнением через validate_query:

  • Проверяет синтаксис и семантику в контексте реального проекта
  • Для запросов СКД: dcsMode=true
  • Ловит ошибки имен таблиц, полей, типов до выполнения

Read the full file on GitHub · 569 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 7d ago First seen · 569 lines · 9 tokens per session scan A a33386c5f37a

Subscribe to this mod's changes

composing-1c-queries is a skill published in the GitHub repository Desko77/cursor-1c-skills (55 stars, last pushed 8d ago), licensed MIT. It adds 9 tokens to every session and 7,062 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. It is 95% identical to composing-1c-queries, differing in 125 lines, and is treated as a copy.

Related

Other skills, from other repositories