Skip to main content
skill CX Codex

template-remove — Claude Code skill: delete a 1C template

Removes a template from a 1C object and drops its registration in the root XML. Handy when a template has to go from a report, data processor or catalog.

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add Nikolay-Shirokov/cc-1c-skills
/plugin install 1c-skills@cc-1c-skills
Open on GitHub

What template-remove does

The skill runs remove-template.ps1 from its own directory. The script deletes the template metadata file <SrcDir>/<ObjectName>/Templates/<TemplateName>.xml and removes the <TemplateName>/ folder recursively.

It then edits the object's root XML, taking <Template> out of ChildObjects. For ExternalReport and Report there is one more step: if the deleted template was set in MainDataCompositionSchema, that value is cleared. Skip it and the report keeps pointing at a template that no longer exists.

Both arguments are required: the object name and the template name. SrcDir overrides the source directory, which defaults to src. Everything happens on dumped source files, so you need the configuration exported to sources first.

What it helps with

  • drop a template from a data processor without breaking the root XML
  • unregister a template in the object's ChildObjects
  • clear MainDataCompositionSchema after deleting a report template
  • wipe the template folder and its metadata in one call

Example prompts for the agent

  • /template-remove DataProcessorUpload SettingsTemplate
  • /template-remove ReportSales MainSchema -SrcDir src
  • remove the SettingsTemplate template from the DataProcessorUpload object

How to install template-remove

1Plugin marketplace

/plugin marketplace add Nikolay-Shirokov/cc-1c-skills
/plugin install 1c-skills@cc-1c-skills

This installs the whole 1c-skills plugin with all its skills

2Skills CLI (Vercel)

npx skills add Nikolay-Shirokov/cc-1c-skills --skill template-remove -a claude-code

3Manually: put the files in place

~/.claude/skills/template-remove/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/template-remove/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about template-remove

How do I install template-remove in Claude?

From the marketplace: run /plugin marketplace add Nikolay-Shirokov/cc-1c-skills, then /plugin install 1c-skills@cc-1c-skills. The other route is npx skills add Nikolay-Shirokov/cc-1c-skills --skill template-remove -a claude-code.

What does template-remove do?

It deletes a 1C template: the metadata file, the template folder and the <Template> entry in the root XML's ChildObjects. For reports it also clears MainDataCompositionSchema when that template was referenced there.

What arguments does the skill take?

An object name and a template name, both required. The source directory can be overridden with SrcDir; otherwise src is used.

Source text

SKILL.md · MIT
---
name: template-remove
description: Удалить макет из объекта 1С (обработка, отчёт, справочник, документ и др.)
argument-hint: <ObjectName> <TemplateName>
disable-model-invocation: true
allowed-tools:
  - Bash
  - Read
  - Write
  - Edit
  - Glob
  - Grep
---

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

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

## Usage

```
/template-remove <ObjectName> <TemplateName>
```

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

## Команда

```powershell
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` — значение очищается

© Nikolay Shirokov · MIT · Nikolay-Shirokov/cc-1c-skills

Similar skills

SKILL.md skills catalog →

From the same set14

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor