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