skd-info — Claude Code skill: what it does, how to install
skd-info inspects a 1C data composition schema and exposes its datasets, fields, parameters, variants, and queries for report analysis.
/plugin marketplace add Nikolay-Shirokov/cc-1c-skills
/plugin install 1c-skills@cc-1c-skillsWhat skd-info does
The skill reads a 1C data composition schema from Template.xml and turns its structure into a compact report. It can list datasets, fields, links, calculated fields, resources, parameters, variants, and template bindings. Detail modes show the selected field, expression, aggregation, filter, or grouping.
Use -Mode to switch between overview, full, query, fields, trace, and variant. Add -Name when you need one dataset or field. The -Raw flag returns the complete query text, while -OutFile saves a result to a file. A practical workflow starts with an overview, follows a field with trace, then opens the related dataset query.
The skill supports a query round trip: export to query.sql, edit the file, and send it back through skd-edit. Analysis needs a path to Template.xml or a layout directory; a layout directory can resolve to Ext/Template.xml.
What it helps with
- map a 1C data composition schema
- locate report fields and parameters
- trace a calculated column to its dataset
- extract a dataset query
- inspect variant groups and filters
Example prompts for the agent
- Analyze the report schema at
<path>and show its overview. - Trace how
<field>is calculated in<path>with-Mode trace -Name <field>. - Export the raw query for dataset
<dataset>from<path>toquery.sql.
How to install skd-info
1Plugin marketplace
/plugin marketplace add Nikolay-Shirokov/cc-1c-skills/plugin install 1c-skills@cc-1c-skillsThis installs the whole 1c-skills plugin with all its skills
2Skills CLI (Vercel)
npx skills add Nikolay-Shirokov/cc-1c-skills --skill skd-info -a claude-code3Manually: put the files in place
~/.claude/skills/skd-info/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/skd-info/
1Skills CLI (Vercel)
npx skills add Nikolay-Shirokov/cc-1c-skills --skill skd-info -a codex2Manually: put the files in place
.agents/skills/skd-info/SKILL.mdFor all projects use ~/.agents/skills/
Manually: put the files in place
.cursor/skills/skd-info/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install Nikolay-Shirokov/cc-1c-skills skd-info2Manually: put the files in place
.github/skills/skd-info/SKILL.mdPlatform CLI
gemini skills install https://github.com/Nikolay-Shirokov/cc-1c-skills --path .claude/skills/skd-infoManually: put the files in place
.devin/skills/skd-info/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about skd-info
How do I install skd-info in Claude Code?
Add the marketplace with /plugin marketplace add Nikolay-Shirokov/cc-1c-skills, then install it with /plugin install 1c-skills@cc-1c-skills.
What does skd-info do?
It inspects a 1C Template.xml schema and presents its datasets, fields, parameters, variants, resources, templates, and queries in focused views.
How can I export the original dataset query?
Run the query mode with the dataset name. Add -Raw to return the complete query and -OutFile to save it, such as query.sql.
Source text
SKILL.md · MIT
---
name: skd-info
description: Анализ структуры схемы компоновки данных 1С (СКД) — наборы, поля, параметры, варианты. Используй для понимания отчёта — источник данных (запрос), доступные поля, параметры
argument-hint: <TemplatePath> [-Mode overview|query|fields|links|calculated|resources|params|variant|templates|trace|full] [-Name <dataset|variant|field|group>] [-Raw]
allowed-tools:
- Bash
- Read
- Glob
---
# /skd-info — Анализ схемы компоновки данных
Читает Template.xml схемы компоновки данных (СКД) и выводит компактную сводку. Заменяет необходимость читать тысячи строк XML.
## Параметры и команда
| Параметр | Описание |
|----------|----------|
| `TemplatePath` | Путь к Template.xml или каталогу макета (авто-резолв в `Ext/Template.xml`) |
| `Mode` | Режим анализа (по умолчанию `overview`) |
| `Name` | Имя набора (query), поля (fields/calculated/resources/trace), варианта (variant) или группировки/поля (templates) |
| `Batch` | Номер пакета запроса, 0 = все (только query) |
| `Raw` | (только query) сырой текст запроса целиком, без заголовков/оглавления/разделителей пакетов. Для выгрузки в `.sql` и возврата через `skd-edit set-query @file` |
| `Limit` / `Offset` | Пагинация (по умолчанию 150 строк; `-Raw` не усекается) |
| `OutFile` | Записать результат в файл (UTF-8 BOM) |
```powershell
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/skd-info.ps1" -TemplatePath "<путь>"
```
С указанием режима:
```powershell
... -Mode query -Name НоменклатураСЦенами
... -Mode query -Name ДанныеТ13 -Batch 3
... -Mode query -Name ДанныеТ13 -Raw -OutFile query.sql
... -Mode fields -Name КадастроваяСтоимость
... -Mode calculated -Name КоэффициентКи
... -Mode resources -Name СуммаНалога
... -Mode trace -Name "Коэффициент Ки"
... -Mode variant -Name 1
... -Mode templates
... -Mode templates -Name ВидНалоговойБазы
```
## Режимы
| Режим | Без `-Name` | С `-Name` |
|-------|-------------|-----------|
| `overview` | Навигационная карта схемы + подсказки Next | — |
| `query` | — | Текст запроса набора (с оглавлением батчей); `-Raw` — чистая выгрузка для правки |
| `fields` | Карта: имена полей по наборам | Деталь поля: набор, тип, роль, формат |
| `links` | Все связи наборов | — |
| `calculated` | Карта: имена вычисляемых полей | Выражение + заголовок + ограничения |
| `resources` | Карта: имена ресурсов (`*` = групповые формулы) | Формулы агрегации по группировкам |
| `params` | Таблица параметров: тип, значение, видимость | — |
| `variant` | Список вариантов | Структура группировок + фильтры + вывод |
| `templates` | Карта привязок шаблонов (field/group) | Содержимое шаблона: строки, ячейки, выражения |
| `trace` | — | Полная цепочка: набор → вычисление → ресурс |
| `full` | Полная сводка: overview + query + fields + resources + params + variant | — |
Паттерн: без `-Name` — карта/индекс, с `-Name` — деталь конкретного элемента. Режим `full` объединяет 6 ключевых режимов в один вызов.
## Типичный workflow
1. `overview` — понять структуру, увидеть подсказки
2. `trace -Name <поле>` — узнать как считается колонка отчёта (от заголовка до запроса за один вызов)
3. `query -Name <набор>` — посмотреть текст SQL-запроса
4. `variant -Name <N>` — посмотреть группировки и фильтры варианта
Переработка запроса (round-trip): `query -Name <набор> -Raw -OutFile q.sql` →
правка `q.sql` → `/skd-edit <tpl> -Operation set-query -Value "@q.sql"`. Флаг
`-Raw` отдаёт запрос целиком без декораций, поэтому выгрузка ↔ возврат
точны (включая многопакетные запросы с временными таблицами).
## Верификация
```
/skd-info <path> — overview (точка входа)
/skd-info <path> -Mode trace -Name <field> — трассировка поля
```
© Nikolay Shirokov · MIT · Nikolay-Shirokov/cc-1c-skills