1c-bsp-command

Adds commands and handler procedures to BSP-registered 1C external data processors.

Updated Jun 26, 2026
One-click install
npx skills add https://github.com/pavelvdo/universal-xml-exchange2 --skill 1c-bsp-command-pavelvdo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: 1c-bsp-command
Source: https://github.com/pavelvdo/universal-xml-exchange2/tree/main/.cursor/skills/1c-bsp/command
Command: npx skills add https://github.com/pavelvdo/universal-xml-exchange2 --skill 1c-bsp-command-pavelvdo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Adding a new command to a BSP-registered 1C external data processor requires editing ExternalDataProcessorInfo() with the correct command type, presentation, and identifier, plus writing matching ExecuteCommand or Print handlers — a repetitive, error-prone task done by hand. ## Core Features & Use Cases - Command Registration: Inserts a new command block into ExternalDataProcessorInfo() before the Return statement, with correct NStr presentation, ID, and command type. - Automatic Type Mapping: Maps free-form user input (e.g. "open form", "on server") to the proper BSP CommandType function, or infers the default from the processor kind (PrintForm, ObjectFilling, AdditionalReport, etc.). - Handler Generation: Creates or extends ExecuteCommand (server/client) and Print procedures in the object module or form module, adding ElsIf branches when handlers already exist. - Use Case: You have a print form data processor registered via BSP and need a second print command — the skill adds the command registration, the Print branch, and the Generate function stub with correct PrintManagement API calls. ## Quick Start Ask the assistant to add a new command named "FillData" of type "server method" to the MyProcessor data processor using the 1c-bsp-command skill.

Frequently Asked Questions about 1c-bsp-command

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

FAQPage Schema
How do I add a command to a BSP external data processor in 1C?

Add a new element to RegistrationParameters.Commands inside ExternalDataProcessorInfo() before the Return statement, setting Presentation, ID, Use (command type), and ShowNotification. Then implement an ExecuteCommand or Print handler procedure matching the command type.

How to add a print form command to a 1C BSP processor?

Register the command with CommandTypeServerMethodCall and set Modifier to "PrintMXL". In the Print procedure, call PrintManagement.PrintFormInfo with your command ID and assign the SpreadsheetDocument from a generation function.

What command types does BSP AdditionalReportsAndDataProcessors support?

BSP supports CommandTypeOpenForm, CommandTypeClientMethodCall, CommandTypeServerMethodCall, CommandTypeFormFilling, and CommandTypeScenarioInSafeMode. The default depends on processor kind: print forms and object filling use server method calls, while reports typically open a form.

Does the data processor need BSP registration before adding commands?

Yes, ExternalDataProcessorInfo() must already exist in the object module with BSP registration parameters. If it is missing, run the 1c-bsp-registration skill first to initialize the processor before adding commands.

Where are client command handlers placed in a 1C external processor?

Client handlers go in the form module at Forms/<FormName>/Ext/Form/Module.bsl as an &AtClient ExecuteCommand procedure. Server handlers go in the object module's PublicInterface region.