SuperAPI AI 工具集

meta-edit

通用与其它

查看项目

更新于 10-15 17:18

技能介绍

用途:对已有 1С 元数据 XML 对象做原子化的定向修改,适用于需要增删改属性、表格部分、维度、资源、枚举值、列、表单、模板、命令等场景。

主要能力:内联模式执行简单操作,JSON 模式处理复杂或组合操作;支持批量操作(以 ;; 分隔);支持子元素操作与对象属性修改,例如 add-attribute、add-ts、add-dimension、add-resource、add-enumValue、add-column、add-form/template/command、remove-*、modify-attribute、modify-ts、modify-property、add-owner、add-registerRecord、add-basedOn、add-inputByString 等。还支持位置插入,如 >> after。

使用方式:内联模式命令为 powershell.exe -NoProfile -File .claude/skills/meta-edit/scripts/meta-edit.ps1 -ObjectPath "<path>" -Operation <op> -Value "<val>";JSON 模式为 powershell.exe -NoProfile -File .claude/skills/meta-edit/scripts/meta-edit.ps1 -DefinitionFile "<json>" -ObjectPath "<path>"。参数包括 ObjectPath(必填,支持目录自动解析 <dirName>.xml)、Operation、Value、DefinitionFile、NoValidate(编辑后不运行 meta-validate)。

验证与限制:编辑后可使用 /meta-validate <ObjectPath> 校验、/meta-info <ObjectPath> 查看概览;NoValidate 可跳过校验。详细语法参见 child-operations.md、properties-reference.md、json-dsl.md。资料未提供脚本适用版本、依赖环境及权限要求等细节。