用途:点编辑 1С 子系统的命令界面文件 CommandInterface.xml,用于隐藏或显示命令、把命令放入指定分组、调整命令顺序、子系统和分组顺序。
主要能力:支持 hide、show、place、order、subsystem-order、group-order 六种操作;hide/show 接受命令名或数组,place 接受命令与分组对象,order 接受分组与命令列表,subsystem-order 与 group-order 接受顺序数组。可通过 Operation 与 Value 单次执行,也可用 DefinitionFile 传入 JSON 操作数组批量执行。CreateIfMissing 可在文件不存在时创建,NoValidate 可跳过自动校验。
使用方式:内联模式执行 powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/interface-edit.ps1" -CIPath '<path>' -Operation hide -Value '<cmd>';JSON 模式执行 powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/interface-edit.ps1" -CIPath '<path>' -DefinitionFile '<json>'。CIPath 为必填,指向 CommandInterface.xml。
适用场景:需要按子系统调整 1С 命令界面可见性、分组与排序时使用。
限制:资料未提供运行环境版本、权限要求、错误处理细节及校验规则说明;操作前建议确认路径与命令名正确,必要时先用 /interface-validate <CIPath> 校验。