Skip to main content
skill CX Codex

form-remove — Claude Code skill: what it does, how to install

Deletes 1C forms from decompiled project sources and cleans up references in the root object XML file.

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 form-remove does

The skill automates form deletion for 1C configuration objects like catalogs, documents, data processors, or reports. It invokes remove-form.ps1 via PowerShell to delete the form metadata XML and erase its entire folder inside the source directory.

Besides file deletion, it edits <ObjectName>.xml by removing the form entry from ChildObjects and resetting any properties pointing to that form. If other elements still reference the form, the -Force flag deletes it anyway and clears dangling references.

Execution depends on powershell.exe in the system environment. Without PowerShell, the cleanup script cannot run.

What it helps with

  • delete 1C form metadata and its nested directory
  • remove form records from ChildObjects in the root XML
  • clear object properties that point to a deleted form
  • force form removal across linked metadata with the Force flag

Example prompts for the agent

  • /form-remove CatalogItems ItemForm
  • /form-remove DataProcessorImport MainEditForm
  • /form-remove DocumentOrder ObsoleteForm -Force

How to install form-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 form-remove -a claude-code

3Manually: put the files in place

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

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

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

Questions about form-remove

How to install form-remove in Claude Code?

Run both marketplace commands in Claude Code: /plugin marketplace add Nikolay-Shirokov/cc-1c-skills followed by /plugin install 1c-skills@cc-1c-skills.

What files does form-remove modify or delete?

It deletes <SrcDir>/<ObjectName>/Forms/<FormName>.xml, wipes the <SrcDir>/<ObjectName>/Forms/<FormName>/ folder, and cleans <SrcDir>/<ObjectName>.xml.

When should you use the Force flag?

Use -Force when other object properties reference the target form so the script deletes the files and resets those references.

Source text

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

# /form-remove — Удаление формы

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

## Usage

```
/form-remove <ObjectName> <FormName>
```

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

## Команда

```powershell
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/remove-form.ps1" -ObjectName "<ObjectName>" -FormName "<FormName>" [-SrcDir "<SrcDir>"] [-Force]
```

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

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

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

- `<SrcDir>/<ObjectName>.xml` — убирается `<Form>` из `ChildObjects`
- Свойства объекта, указывавшие на удалённую форму — очищаются

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

Topics and platforms

SKILL.md skills catalog →

From the same set59

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