Reads the Template.xml of the Data Composition Schema (DCS) and outputs a compact summary. Replaces the need to read thousands of lines of XML.
Parameters and command
| Parameter | Description |
|---|---|
TemplatePath |
Path to Template.xml or the template directory (auto-resolve to Ext/Template.xml) |
Mode |
Analysis mode (default overview) |
Name |
Name of the dataset (query), field (fields/calculated/resources/trace), variant (variant), or grouping/field (templates) |
Batch |
Query batch number, 0 = all (query only) |
Limit / Offset |
Pagination (default 150 lines) |
OutFile |
Write the result to a file (UTF-8 BOM) |
powershell.exe -NoProfile -File .claude/skills/skd-info/scripts/skd-info.ps1 -TemplatePath "<путь>"
With mode specified:
... -Mode query -Name НоменклатураСЦенами
... -Mode query -Name ДанныеТ13 -Batch 3
... -Mode fields -Name КадастроваяСтоимость
... -Mode calculated -Name КоэффициентКи
... -Mode resources -Name СуммаНалога
... -Mode trace -Name "Коэффициент Ки"
... -Mode variant -Name 1
... -Mode templates
... -Mode templates -Name ВидНалоговойБазы
Modes
| Mode | Without -Name |
С -Name |
|---|---|---|
overview |
Schema navigation map + Next hints | — |
query |
— | Dataset query text (with a table of contents of batches) |
fields |
Map: field names by dataset | Field details: dataset, type, role, format |
links |
All dataset links | — |
calculated |
Map: calculated field names | Expression + title + constraints |
resources |
Map: resource names (* = group formulas) |
Aggregation formulas by groupings |
params |
Parameters table: type, value, visibility | — |
variant |
List of variants | Grouping structure + filters + output |
templates |
Map of template bindings (field/group) | Template contents: rows, cells, expressions |
trace |
— | Full chain: dataset → calculation → resource |
full |
Full summary: overview + query + fields + resources + params + variant | — |
Pattern: without -Name — map/index, with -Name — details of a specific element. Mode full combines 6 key modes in one call.
Typical workflow
overview— understand the structure, see the hintstrace -Name <поле>— learn how a report column is calculated (from header to query in a single call)query -Name <набор>— view the SQL query textvariant -Name <N>— view the groupings and filters of the variant
Detailed examples of the output of each mode are in modes-reference.md.
Verification
/skd-info <path> — overview (точка входа)
/skd-info <path> -Mode trace -Name <field> — трассировка поля