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.
/plugin marketplace add Nikolay-Shirokov/cc-1c-skills
/plugin install 1c-skills@cc-1c-skillsWhat 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
MainDataCompositionSchemaafter 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-skillsThis 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-code3Manually: put the files in place
~/.claude/skills/template-remove/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/template-remove/
1Skills CLI (Vercel)
npx skills add Nikolay-Shirokov/cc-1c-skills --skill template-remove -a codex2Manually: put the files in place
.agents/skills/template-remove/SKILL.mdFor all projects use ~/.agents/skills/
Manually: put the files in place
.cursor/skills/template-remove/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install Nikolay-Shirokov/cc-1c-skills template-remove2Manually: put the files in place
.github/skills/template-remove/SKILL.mdPlatform CLI
gemini skills install https://github.com/Nikolay-Shirokov/cc-1c-skills --path .claude/skills/template-removeManually: put the files in place
.devin/skills/template-remove/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
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