Agent skill

Query Optimize

by IngvarConsulting in IngvarConsulting/unica

Оптимизация запросов 1С и СКД. An agent skill from IngvarConsulting/unica.

Custom licenceAuto-check passedDatabases

Install Query Optimize

skills CLI
$ npx skills add IngvarConsulting/unica --skill query-optimize -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install IngvarConsulting/unica query-optimize --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/IngvarConsulting/unica.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/unica/skills/query-optimize .claude/skills/query-optimize && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
query-optimize
GitHub stars
215
Token cost
~1.6k tokens
SKILL.md length
704 words
Files
1
Skills in repo
50
Repo updated
First seen
Licence
Custom licence

At a glance

Оптимизация запросов 1С и СКД. An agent skill from IngvarConsulting/unica.

  • Works in 10 steps: Extract the exact query text with… → Inspect the execution context with… → Find callers with unica.search by the… → …
  • Databases work in your project
  • SKILL.md covers MCP routing, Workflow, DB-aware diagnostics and Query syntax guards, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Query Optimize is an agent skill from IngvarConsulting/unica. Оптимизация запросов 1С и СКД. Используй когда нужно написать, проверить или ускорить запрос, СКД query, временные таблицы, виртуальные таблицы, отборы, соединения или проблемный SQL/DBMS trace.

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Databases. It works with SQL and Model Context Protocol. The repository describes itself as: Unica (Ю́ника) — публичный плагин Codex и Claude Code для разработки на 1С:Предприятии.

When your agent uses it

  • Databases work in your project

Example prompts

  • “/query-optimize”

Workflow steps

10 steps, taken from the first numbered list in SKILL.md.

  1. Extract the exact query text with unica.search or unica.view on the schema node.
  2. Inspect the execution context with unica.view on the module node (its Method branch lists the methods): module, exported entry point…
  3. Find callers with unica.search by the method name when the query is inside reusable API, background jobs, event handlers, or suspected…
  4. Run unica.check {at} on the containing module when analyzer diagnostics can reveal unreachable code, unresolved calls, or type issues…
  5. Inspect unica.view on the object node for both related modules, subscriptions, roles, functional options and the local registers…
  6. Inspect DCS with unica.view on the schema node when the query lives in a data composition schema.
  7. Search unica.docs with source: "development-standard" only for development-standard query rules. Exact platform query semantics require…
  8. Read ../../references/platform/db-performance.md when performance depends on DBMS behavior, locks, indexes, temp storage, WAL, TEMPDB, or…
  9. Optimize one cause at a time: filters before joins, virtual table parameters, temporary table materialization, repeated queries in loops…
  10. Check syntax with unica.check; require real trace/log evidence when performance depends on data volume.

What it can do on your machine

Read from SKILL.md and the folder at commit 93063bc. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are jsonc and bsl).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Query Optimize loads about 1.6k tokens when it runs. Until then it costs about 52 tokens; SKILL.md has 704 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~52
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 704 words (~1,612 tokens).

“контракт каждой — argsSchema, execution, previewRequired, dryRunRequired. Контракт вызова бери оттуда, а не из этого текста; при implemented: true используй опубликованную argsSchema; при support.state: limited разрешено только подмножество support.supportedArgs. При support.state: unavailable остановись; не выдумывай аргументов при argsSchema: null. Для…”

— opening of SKILL.md by IngvarConsulting, Custom licence
name
query-optimize

Read the full SKILL.md on GitHub

Files

Just SKILL.md in plugins/unica/skills/query-optimize of IngvarConsulting/unica.

Open the folder on GitHubat commit 93063bc

Compare with similar skills

Query Optimize next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Query Optimize compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Query Optimize this skillIngvarConsulting/unica215—~1.6kAutomated safety check: PassCustom licence
StarRocks SQL Doc Auto-FixStarRocks/starrocks12k—~7.6kAutomated safety check: NotesApache-2.0
Schema Explorationtimescale/pg-aiguide1.9k—~1.1kAutomated safety check: PassApache-2.0
Dv Querymicrosoft/Dataverse-skills2421 repos~4.5kAutomated safety check: NotesMIT
Webapp Buildersidequery/sidemantic129—~5.5kAutomated safety check: PassAGPL-3.0
NpgsqlrestNpgsqlRest/NpgsqlRest132—~7kAutomated safety check: NotesMIT

Similar skills

  • StarRocks SQL Doc Auto-Fix

    StarRocks/starrocks

    Proposes verified fixes for failing SQL examples in StarRocks docs across three languages and several versions, then opens draft pull requests and never merges.

    12k GitHub stars~7.6k tokensUpdated today
    DatabasesAuto-check: notes
  • Schema Exploration

    timescale/pg-aiguide

    Explore an existing PostgreSQL database before answering questions about its data or writing SQL.

    1.9k GitHub stars~1.1k tokensUpdated yesterday
    DatabasesAuto-check passed
  • Dv Query

    microsoft/Dataverse-skills

    Official

    Bulk reads, multi-page iteration, and analytics over Dataverse data.

    242 GitHub starsUsed in 1 repo~4.5k tokens
    DatabasesAuto-check: notes
  • Webapp Builder

    sidequery/sidemantic

    Build interactive analytics webapps, demos, dashboards, or embedded app surfaces from Sidemantic semantic models using copyable component primitives and deterministic query inspection.

    129 GitHub stars~5.5k tokensUpdated yesterday
    DatabasesAuto-check passed
  • Npgsqlrest

    NpgsqlRest/NpgsqlRest

    Build and modify REST APIs with NpgsqlRest — exposing PostgreSQL as HTTP endpoints from two sources (database functions/procedures/tables/views, and plain .sql files), driven by SQL comment…

    132 GitHub stars~7k tokensUpdated 5 days ago
    DatabasesAuto-check: notes
  • Modeler

    sidequery/sidemantic

    Build, validate, and manage semantic models using Sidemantic.

    129 GitHub stars~4.2k tokensUpdated yesterday
    DatabasesAuto-check passed

More from IngvarConsulting/unica

All 50 skills in this repo
  • Unica Testing

    IngvarConsulting/unica

    Выбор, написание, запуск и ревью тестов самого Unica — граница проверки, размеры small/medium/large, Rust nextest, Python unittest и разбор падений.

    215 GitHub stars~3.3k tokensUpdated today
    Auto-check passed
  • API Design

    IngvarConsulting/unica

    Проектирование и ревью API 1С: публичный программный интерфейс, служебный интерфейс, переопределяемые модули, совместимость, версионирование и миграция потребителей.

    215 GitHub stars~1.8k tokensUpdated today
    Auto-check passed
  • Autonomous Server

    IngvarConsulting/unica

    Автономный сервер отладки 1С. An agent skill from IngvarConsulting/unica.

    215 GitHub stars~868 tokensUpdated today
    Auto-check passed
  • Bsp Patterns

    IngvarConsulting/unica

    Поиск и применение паттернов БСП. An agent skill from IngvarConsulting/unica.

    215 GitHub stars~808 tokensUpdated today
    Auto-check passed
  • Cfe Borrow

    IngvarConsulting/unica

    Заимствовать объект верхнего уровня из конфигурации 1С в расширение или обновить ранее заимствованный объект, сохранив его идентификаторы и локальные перекрытия.

    215 GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Cfe Diff

    IngvarConsulting/unica

    Анализ расширения конфигурации 1С (CFE) — состав, заимствованные объекты, перехватчики, сверка с конфигурацией.

    215 GitHub stars~1.2k tokensUpdated today
    Auto-check passed

Categories

Questions about Query Optimize

What does Query Optimize do?

Оптимизация запросов 1С и СКД. An agent skill from IngvarConsulting/unica. Query Optimize is an agent skill from IngvarConsulting/unica. Оптимизация запросов 1С и СКД.

When should I use Query Optimize?

Query Optimize fits situations like: databases work in your project.

How do I install Query Optimize in Claude Code?

Run `npx skills add IngvarConsulting/unica --skill query-optimize -a claude-code`. Or copy the skill folder (plugins/unica/skills/query-optimize in IngvarConsulting/unica) into .claude/skills/query-optimize in your project. Claude Code loads it when a task matches its description.

How do I install Query Optimize in Codex?

Run `npx skills add IngvarConsulting/unica --skill query-optimize -a codex`. Or copy the skill folder (plugins/unica/skills/query-optimize in IngvarConsulting/unica) into .agents/skills/query-optimize in your project. Codex loads it when a task matches its description.

Can I use Query Optimize in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add IngvarConsulting/unica --skill query-optimize -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/query-optimize, .gemini/skills/query-optimize, .github/skills/query-optimize and .opencode/skills/query-optimize in your project.

What does Query Optimize need to run?

SKILL.md names no scripts, command-line tools or credentials: Query Optimize is instructions for the agent only.

Does Query Optimize access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Query Optimize safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Query Optimize use?

Query Optimize has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Query Optimize use?

About 1.6k tokens (SKILL.md is roughly 6.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Query Optimize?

Skills that share tags, products or a category with Query Optimize: StarRocks SQL Doc Auto-Fix (StarRocks/starrocks, 12k stars), Schema Exploration (timescale/pg-aiguide, 1.9k stars), Dv Query (microsoft/Dataverse-skills, 242 stars) and Webapp Builder (sidequery/sidemantic, 129 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Query Optimize?

IngvarConsulting (a GitHub organization) maintains it in IngvarConsulting/unica, which has 215 GitHub stars. The repository holds 50 skills in this directory. The repository was last updated on October 8, 2026.

Source: IngvarConsulting/unica on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.