Skd custom layout

From SteelMorgan/1c-agent-based-dev-framework · View interactive version

Skd custom layout is an AI agent skill from the GitHub repository SteelMorgan/1c-agent-based-dev-framework. SKD reports on custom result layout areas: mapping SKD settings to template/groupTemplate, area parameters, expressions, runtime validation of the standard report form. Use mxl-layout-patterns to design the areas.

How to use this skill

Skill file

SKD on a Custom Layout

Purpose

Use this skill when a report is generated through SKD, but the result's appearance is defined by custom areas on the Макеты tab.

This skill describes the SKD linkage:

data sets and fields
  -> settings and variant structure
  -> groupTemplate
  -> template
  -> cell parameter
  -> parameter expression
  -> ТабличныйДокумент

Design the layout of the areas themselves, the grid, borders, fills, fonts, and visual verification through mxl-layout-patterns.

Check the core SKD capabilities through skd-report-patterns.

Do Not Confuse with a Print Form

A print form fills an area with BSL code:

Область = Макет.ПолучитьОбласть("Строка");
Область.Параметры.Поле = Значение;
ТабличныйДокумент.Вывести(Область);

SKD on a custom layout uses a similar visual area model, but SKD calculates and outputs the values:

Main Entities

Do not derive the value from the parameter name. The source of truth is expression.

Workflow

  1. Design the data and structure of the report through skd-report-patterns.
  2. Design the areas and visual model through mxl-layout-patterns.
  3. For each area, define:
  1. Generate/modify the СКД with a supported tool.
  2. Check the XML structure through xml-gen skd info.
  3. Perform a runtime check on the platform.

Layers

Separate four layers.

The functional layer describes which report the user needs:

The technical layer of СКД describes how this is stored and executed:

The technical layer of MXL describes the visual form of the areas:

For this layer, use mxl-layout-patterns; for generating ordinary MXL - mxl-dsl; for СКД areas - the capabilities of skd-dsl.templates.

The runtime layer describes what happens when the report is executed:

An external imported MXL/Excel scaffold does not by itself become an СКД layout. To make Excel or ordinary

MXL a source for this skill, you need to explicitly restore the СКД structure:

What to check

<groupHeaderTemplate> with nested <templateType>Header</templateType>. The ordinary DSL Header

must remain <groupTemplate> with <templateType>Header</templateType>. You must not substitute

GroupHeader with Header in the input DSL or manually rearrange nodes in the generated XML:

this changes layout semantics and hides the generator defect.

then skd compile, validate --type skd, the applicable container validation and Designer package/load

oracle. validate without the Designer oracle is insufficient for serialization-sensitive structure.

СтильГраницы.Слева/Справа/Сверху/Снизу. The canonical structure for side borders is:

a common dcscor:item with the СтильГраницы parameter and a base line of None, and the side-specific

dcscor:item entries must be nested inside it. Do not place СтильГраницы.Слева/Справа/...

as adjacent elements at the dcsat:appearance level: such a structure may pass

XML validation and loading, but be lost during round-trip through Configurator or produce

incorrect runtime rendering. If the generator writes side-specific borders as not nested,

fix the generator/tests, not the layout.

export it back through the platform's standard export, and verify that СтильГраницы.*

were not lost and remained nested under СтильГраницы.

upper cell and СтильГраницы.Сверху on the lower cell in XML is not sufficient proof

until the runtime tabular document has shown the absence of the segment. If the runtime draws a line without an explicit

parameter, check an alternative area structure: merging cells/rows, one parameter instead of two

rows, another output method for the block, or a platform limitation on mixed formatting inside a SKD cell.

rows, do not continue tweaking colors/thicknesses. Check the structural variant: one tableCell

with multiple dcsat:item, one multi-line parameter, another way to output the block, or a platform

limitation on mixed formatting inside a SKD cell.

the xml-generation §4.1 process: separate defect registration, reproduction, red/green,

full tool build, regeneration, and live-check. Locally fixed XML is not a valid proof and does not

allow the flow to continue.

groupTemplate -> template -> parameter -> expression -> runtime ТабличныйДокумент is proven.

Runtime

For an external report with SKD, the usual user verification flow is:

  1. Open the .erf through File -> Open.
  2. Get the standard report form.
  3. Click the standard generate button.
  4. Save or capture the result.

Do not replace this flow with registering the external report, launching the processing through /Execute, or a script if the task is specifically verifying the user opening of the ERF.

Related skills


depends_on:


Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.