skd-decompile

Decompile 1C Data Composition Schema Template.xml into a JSON DSL draft.

41|5|Updated May 28, 2026
One-click install
npx skills add https://github.com/msrv-tech/skills --skill skd-decompile
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: skd-decompile
Source: https://github.com/msrv-tech/skills/tree/main/skd-decompile
Command: npx skills add https://github.com/msrv-tech/skills --skill skd-decompile

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill converts 1C Data Composition Schema (СКД) Template.xml into a JSON-DSL draft, enabling scaffold or structural refactoring by starting from an emittable JSON representation rather than direct XML edits.

Core Features & Use Cases

  • Reads a Template.xml DataCompositionSchema and emits a draft JSON in the /skd-compile format.
  • Produces sentinel nodes for constructs that the decompiler cannot express in DSL, along with a warnings file (<basename>.warnings.md) to guide manual adjustments.
  • Supports end-to-end workflow: decompile, modify JSON, recompile with /skd-compile, validate via /skd-validate and /skd-info.

Quick Start

Run the skd-decompile script with a Template.xml path to generate a draft JSON output.

Frequently Asked Questions about skd-decompile

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert a 1C Data Composition Schema Template.xml into JSON?

To convert a 1C Data Composition Schema Template.xml into JSON, you can use a decompiler that parses the XML and emits a draft JSON DSL suitable for scaffolding and structural refactoring tasks. This enables round-trip workflows by starting from an emittable JSON representation rather than direct XML edits.

What is a JSON DSL draft for 1C SKD templates used for?

A JSON DSL draft for 1C SKD templates is used for scaffolding or structural refactoring. It provides an emittable JSON representation of the Data Composition Schema, enabling round-trip workflows to modify, recompile, and validate the schema. This avoids direct XML edits and supports safer manual adjustments.

How do I handle constructs that cannot be expressed in DSL when decompiling 1C SKD?

When decompiling 1C SKD, constructs that cannot be expressed in DSL are output as sentinel nodes. The decompiler also generates a warnings markdown file to surface these nodes and guide necessary manual adjustments. This parser-driven conversion emits diagnostics to ensure safe edits.

Can I recompile the JSON DSL back into a 1C Data Composition Schema?

Yes, you can recompile the JSON DSL back into a 1C Data Composition Schema. The decompiled JSON supports an end-to-end round-trip workflow where you can recompile with a compiler and validate the schema using dedicated validation and info tools.

Does the 1C SKD decompiler require any external dependencies?

The 1C SKD decompiler does not require external dependencies. It implements a robust parser-driven conversion internally, reading the Template.xml path and emitting the JSON draft along with diagnostics. You only need the Template.xml file to generate the output.

What are the limitations of decompiling 1C Data Composition Schema templates?

A limitation of decompiling 1C Data Composition Schema templates is that not all constructs can be expressed in DSL. The decompiler surfaces these as sentinel nodes and warnings, requiring manual adjustments to complete the structural refactoring safely.