跳到正文
FunCoding

1c-validate

Validate changed 1C artifacts — BSL by path (BSL Language Server), logic and performance (1С:Напарник check), style and ITS review, metadata XML against XSD — within the verification-policy budget. Use after every BSL or metadata edit.

Star
565
最近提交
2026年12月1日

content/skills/1c-validate/SKILL.md

在 GitHub 上查看

1c-validate — the validator chain

Select BSL validators from the depth table in content/rules/verification-policy.md using the task path and explicit review request. Run the selected chain in order on the saved modules, within that policy's retry budget. Changed metadata XML also requires verify_xml. Full-cycle gate procedures and unavailable validators — content/rules/verification-gates.md.

Tools and exact arguments

GateCallArguments
1 Syntax — saved file (default)syntaxcheck_filefile_path relative to the mounted sources root, optional lines="5, 10-20" — save first; a failed path is retried once, then fall back to text
1 Syntax — text (fallback)syntaxcheckcode — only when the file tool is not exposed or the fragment has no file yet; confirm by path once written
2 Logic & performancecheck_1c_codeexactly one of code or files (list of saved paths under the declared workspace roots)
3 Style & ITSreview_1c_codesame shape as check_1c_code
5 Metadata XMLverify_xmlxml_content, object_type = the file's kind (descriptor — its type; Форма, СКД, Макет, ПраваРоли for Rights.xml)

syntaxcheck and syntaxcheck_file are one validator for budgeting. Never feed syntax-broken code to the AI validators.

Calls

{"tool": "syntaxcheck_file", "args": {"file_path": "Documents/РеализацияТоваровУслуг/Ext/ObjectModule.bsl", "lines": "120-185"}}
{"tool": "check_1c_code", "args": {"files": ["Documents/РеализацияТоваровУслуг/Ext/ObjectModule.bsl"]}}
{"tool": "review_1c_code", "args": {"files": ["Documents/РеализацияТоваровУслуг/Ext/ObjectModule.bsl"]}}
{"tool": "verify_xml", "args": {"object_type": "Справочник", "xml_content": "<MetaDataObject …>"}}

Reading the answers

  • Blocking, in the new code only (verification-policy.md → Validator budget): Blocker / Critical / Error from syntax; critical / error from check; error from review; a logic, data-integrity, security, transaction or performance defect named by the validator. Style noise never starts another AI pass.
  • provenance on a syntax answer says what a clean report proves: cross-module resolution only with index: ready and cross_module_checks: ran, otherwise syntax and local rules only. Read it, never wait for it.
  • Guard against silent-clean failures (unparsed file fragments, suspiciously empty response after a transport blip → one sentinel check per session) and isolated CFE dumps (unresolved calls to base-configuration modules are base-context unresolved, verified via Gate 6 rather than "fixed").
  • A check of a large module may run for minutes; the server retries transport failures itself — do not resend.
  • A module over the server input limit (ONEC_AI_INPUT_MAX_LENGTH) is cut: check_1c_code / review_1c_code see only its beginning (checks → partial) and take no line range. Run syntaxcheck_file on the whole file; give the AI validators the changed methods copied into a throw-away .bsl inside a declared workspace root (outside the committed sources, deleted afterwards) via files. Its "undefined method" findings are artifacts of the cut, and it has no cross-module context — name that in the Risk: line.
  • Rewrites from rewrite_1c_code / modify_1c_code are drafts and re-enter this chain.
  • A missing validator is graceful degradation with a Risk: line, never a silent skip. Typed answers map to actions by code — content/rules/mcp-policy.md → C. Server answers → actions.

Details: content/skills/mcp-1c-tools/docs/1c-syntax-checker-mcp.md, content/skills/mcp-1c-tools/docs/1c-code-check-mcp.md, content/skills/mcp-1c-tools/docs/1c-code-metadata-mcp.md → XSD schemas & validation.

相似的 Skill

rea-analysis-optimization

MOmorluto/rea485k近 7 天新增 9,215 个 star

codebase-design

MAmattpocock/skills336k近 7 天新增 5,004 个 star

精选

diagnosing-bugs

诊断困难 bug 和性能回归,用测试或脚本构建反馈循环定位问题。

MAmattpocock/skills336k近 7 天新增 5,004 个 star

setup-ts-deep-modules

MAmattpocock/skills336k近 7 天新增 5,004 个 star

code-review

MAmattpocock/skills336k近 7 天新增 5,004 个 star

implement

MAmattpocock/skills336k近 7 天新增 5,004 个 star