No manual xml edit

From SteelMorgan/1c-agent-based-dev-framework · View interactive version

No manual xml edit is an AI agent skill from the GitHub repository SteelMorgan/1c-agent-based-dev-framework. When editing 1C XML/MXL, use xml-generation

How to use this skill

Skill file

Prohibition on manual editing of 1C XML and MXL

Trigger: any attempt to use Edit/Write/sed/awk/Bash on a *.mxl or *.xml file in 1C directories. When triggered, apply the xml-generation skill (framework/skills/tool-usage/platform-data/xml-generation/SKILL.md).

PROHIBITED (without exceptions)

Why: 1C metadata has a strict schema plus non-obvious runtime dependencies. Direct editing regularly produces a non-canonical schema that passes build and LSP, but breaks runtime UI. Precedent: OC-22444 F-01 - 6 iterations of Developer-Code could not stabilize the form.

What counts as 1C XML (rule applies)

What is NOT 1C XML (rule does not apply)

Self-check for agents without a PreToolUse hook (Codex, Cursor, Aider, Cline, etc.)

In Claude Code, the hook blocks automatically. In all other environments, self-check is mandatory before every Edit/Write/apply_patch/sed on a path with the .xml or .mxl extension:

python3 tools/hooks/block-direct-xml-edit.py --check "<path>" --tool Edit

Some platform capabilities (conditional form formatting, dynamic list filters, MXL cell coloring by condition) are not stored in XML and are implemented programmatically - this is design, not an xml-gen defect; do not look for a manual XML workaround. The list and examples are in the xml-generation skill.

Exception (xmlgen does not support the operation)

If xml-gen explicitly does not support the required operation, record the fact of manual editing (MANUAL_XML_EDIT: with the file, operation, reason, validation method) in {role}-context.md and notify the orchestrator (MANUAL_XML_EDIT_REPORTED:) in orchestrator-context.md. The recording format is in the xml-generation skill.


depends_on:


Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.