mcpField
T
template-remove

template-remove

github.com/nikolay-shirokovDevelopment74155 installsUpdated today
Repository

About template-remove

template-remove is a skill for removing a layout from a 1C object. It deletes the layout files, unregisters it in the root XML, and clears a related report reference when applicable.

Key features

  1. 01Deletes layout metadata and directory
  2. 02Removes registration from root XML ChildObjects
  3. 03Clears report main data composition schema reference

Use cases

  1. 01Remove an unused layout from an object
  2. 02Clean up a report's reference to a deleted main layout

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/nikolay-shirokov/cc-1c-skills --skill template-remove

After installing, type/template-removein Claude Code to confirm it loaded.

Bundled filesscripts/remove-template.ps1scripts/remove-template.py

Details

From the project README

/template-remove — Удаление макета

Удаляет макет и убирает его регистрацию из корневого XML объекта.

Usage

/template-remove <ObjectName> <TemplateName>
ПараметрОбязательныйПо умолчаниюОписание
ObjectNameда—Имя объекта
TemplateNameда—Имя макета для удаления
SrcDirнетsrcКаталог исходников

Команда

powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/remove-template.ps1" -ObjectName "<ObjectName>" -TemplateName "<TemplateName>" [-SrcDir "<SrcDir>"]

Что удаляется

<SrcDir>/<ObjectName>/Templates/<TemplateName>.xml     # Метаданные макета
<SrcDir>/<ObjectName>/Templates/<TemplateName>/         # Каталог макета (рекурсивно)

Что модифицируется

  • <SrcDir>/<ObjectName>.xml — убирается <Template> из ChildObjects
  • Для ExternalReport/Report: если удалённый макет был указан в MainDataCompositionSchema — значение очищается

Comments

Markdown supported