query-optimize

query-optimize is a skill for Claude Code from IngvarConsulting/unica. It costs 59 tokens per session (1,151 once invoked), scanned A, original, no licence file.

A query-tuning guide for 1C and its data composition system, the part of 1C used to build reports and data selections. It examines queries, temporary and virtual tables, filters, joins, and database traces.

In plain words
What is it for?
Use it to write, review, or speed up 1C queries and report queries, including work with temporary tables, virtual tables, filters, joins, and SQL or DBMS traces.
Why use it?
It helps find why a query or report is slow or produces an inefficient database operation. This focuses investigation on the query structure and how the database executes it.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the unica plugin — 55 skills, 1 MCP server shipped together

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 skills/ingvarconsulting/unica/query-optimize
Any agent
npx skills add IngvarConsulting/unica --skill query-optimize
Clone the repo
git clone --depth 1 https://github.com/IngvarConsulting/unica

Made for: Claude Code.

Or install unica, the plugin that ships this one along with the rest of its 55 skills, 1 MCP server.

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 query-optimize

README.md
[![agentmods](https://agentmods.dev/badge/skills/ingvarconsulting/unica/query-optimize.svg)](https://agentmods.dev/skills/ingvarconsulting/unica/query-optimize)
Your own site
<a href="https://agentmods.dev/skills/ingvarconsulting/unica/query-optimize"><img src="https://agentmods.dev/badge/skills/ingvarconsulting/unica/query-optimize.svg" alt="Measured on agentmods" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,151 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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.1 $0.00059 $0.01151
Opus 5 $0.00030 $0.00575
Sonnet 5 $0.00012 $0.00230
Haiku 4.5 $0.00006 $0.00115

Measured yesterday against content hash 85d0a9abaf9b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

query-optimize 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 yesterday.

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.

plugins/unica/skills/query-optimize/SKILL.md · 82 lines

The source is not reproduced here

A licence we could not identify

The repository carries a LICENSE file, but it is custom or dual enough that GitHub cannot name it and neither can this catalogue. Unknown terms are not permission, so the body is not copied here. Read the licence at the source and decide for yourself.

Read it on GitHub

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. yesterday Changed 85d0a9abaf9b
  2. 2d ago Changed 9bf282940be2
  3. 2d ago First seen · 82 lines · 59 tokens per session scan A 799ebfdf645a

Subscribe to this mod's changes

query-optimize is a skill published in the GitHub repository IngvarConsulting/unica (189 stars, last pushed today), with no licence file. It adds 59 tokens to every session and 1,151 once invoked, about $0.0003 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-09-03.

Related

Other skills, from other repositories

postmortem

Auto-generates a structured postmortem from a completed campaign. Reads the campaign file, telemetry logs, and feature ledger. Produces a documented analysis of what broke, what the safety systems caught, and what patterns emerged. Can also be invoked manually for any incident.

SethGammon/Citadel · 58 tokens

systematic-debugging

4-phase root cause analysis: observe, hypothesize, verify, fix. Enforces investigation before any code changes. Emergency stop after 2 failed fixes. Prevents shotgun debugging and fix cascades.

SethGammon/Citadel · 45 tokens

db-repo

Работа с хранилищем конфигурации 1С. Используй когда нужно захватить объекты, поместить изменения в хранилище конфигурации, получить изменения из него, подключить базу к хранилищу.

Nikolay-Shirokov/cc-1c-skills · 56 tokens

db-list

Управление реестром баз данных 1С (.v8-project.json). Используй когда нужно работать с реестром баз — список баз, зарегистрировать базу в реестре, какие базы есть.

Nikolay-Shirokov/cc-1c-skills · 46 tokens

db-cfe-admin

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

Nikolay-Shirokov/cc-1c-skills · 60 tokens

db-load-dt

Загрузка информационной базы 1С из DT-файла — полная перезапись базы (конфигурация + данные). Используй когда нужно загрузить архив информационной базы, восстановить базу, загрузить dt.

Nikolay-Shirokov/cc-1c-skills · 52 tokens