openspec-apply-change
Implement tasks from an OpenSpec change. Use when the user wants to start implementing, continue implementation, or work through…
Read 1C managed and ordinary forms — similar forms, element trees, bindings, commands, handlers, form / role / report artifacts, form XSD or format spec — via the code-metadata, graph and docs MCP. Use before generating or changing a form; mutations go through 1c-metadata-manage.
Claude Code
$ npx -y skills add comol/ai_rules_1c --skill 1c-form-inspect --agent claude-code
Codex
$ npx skills add comol/ai_rules_1c --skill 1c-form-inspect -a codex -y
Cursor
$ npx skills add comol/ai_rules_1c --skill 1c-form-inspect -a cursor -y
Gemini CLI
$ npx skills add comol/ai_rules_1c --skill 1c-form-inspect -a gemini-cli -y
GitHub Copilot
$ npx skills add comol/ai_rules_1c --skill 1c-form-inspect -a github-copilot -y
OpenCode
$ npx skills add comol/ai_rules_1c --skill 1c-form-inspect -a opencode -y
Windsurf
$ npx skills add comol/ai_rules_1c --skill 1c-form-inspect -a windsurf -y
name: 1c-form-inspect description: "Read 1C managed and ordinary forms — similar forms, element trees, bindings, commands, handlers, form / role / report artifacts, form XSD or format spec — via the code-metadata, graph and docs MCP. Use before generating or changing a form; mutations go through 1c-metadata-manage." argument-hint: "<Kind.Name> [form name]" allowed-tools: mcp__1c-code-metadata-mcp__search_forms, mcp__1c-code-metadata-mcp__inspect_form_layout, mcp__1c-code-metadata-mcp__get_form_artifact, mcp__1c-code-metadata-mcp__get_xsd_schema, mcp__1c-graph-metadata-mcp__get_form_structure, mcp__1c-graph-metadata-mcp__find_form_links, mcp__1C-docs-mcp__formatspec
Read-only. Creating or editing `Form.xml` is the `1c-metadata-manage` skill (`docs/form-manage.md`, form-compile DSL); design rules — `content/rules/forms.md`. Hand-writing a form while the skill is available is a defect.
| Need | Call | Arguments | |---|---|---| | Similar existing forms as examples | `search_forms` (code) | `query`, `limit=10` | | Element tree, bindings, commands, handlers | `inspect_form_layout` (code) | `object_name`, `form_name=""` (empty = default form) | | Form artifact with provenance | `get_form_artifact` (code) | `object_name`, `form_name` or `artifact_id`, `include_ranges=true` | | Graph view of a form | `get_form_structure` / `find_form_links` (graph) | Required `form_name`, optional `object_name`, `form_kind="any"` (`managed` / `ordinary` / `any`); explicit resolved `project_id` | | XML rules of the target | `get_xsd_schema` (code) | `object_type="Форма"` (also `Справочник`, `Документ`, `Роль`, `СКД`, `Макет`; English aliases accepted) | | On-disk format specification | `formatspec` (docs) | `name="1c-form-spec"` or `query="реквизиты формы"` |
Graph form tools use names, not `form_ref`. Keep the returned base `project_id` bound to the current roots and verify the relevant layer (`content/rules/multi-contour-search.md`). `find_form_links` resolves event/command handlers in that form's own module; an identically named routine elsewhere is not the handler.
{"tool": "search_forms", "args": {"query": "ФормаДокумента Реализация", "limit": 10}}
{"tool": "inspect_form_layout", "args": {"object_name": "Документ.РеализацияТоваровУслуг", "form_name": "ФормаДокумента"}}
{"tool": "get_form_structure", "args": {"project_id": "<resolved-project-id>", "object_name": "Документ.РеализацияТоваровУслуг", "form_name": "ФормаДокумента", "form_kind": "managed"}}
{"tool": "get_xsd_schema", "args": {"object_type": "Форма"}}
{"tool": "formatspec", "args": {"name": "1c-form-spec"}}`Forms/<Имя>/Ext/Form.bin` is a binary container: none of the XML routes see it. Read it with the `form-ordinary` skill — `decode` (layout by its format map), `brief` (what the user sees and what the module changes), `render` — and change it there too, not through `1c-metadata-manage` (`content/skills/form-ordinary/SKILL.md`). Never edit `Form.bin` directly.
`verify_xml(xml_content, object_type="Форма")` plus the skill's `form-validate`; `syntaxcheck_file` on the regenerated form module — `1c-validate`. Typed answers map to actions by code — `content/rules/mcp-policy.md → C. Server answers → actions`.
Details: `content/skills/mcp-1c-tools/docs/1c-code-metadata-mcp.md → Forms`, `content/skills/mcp-1c-tools/docs/1c-graph-metadata-mcp.md → Forms`.
Implement tasks from an OpenSpec change. Use when the user wants to start implementing, continue implementation, or work through…
Archive a completed OpenSpec change in the experimental workflow. Use when the user wants to finalize and archive a change after…
Enter OpenSpec explore mode - a thinking partner for exploring ideas, investigating problems, and clarifying requirements in a…
Propose a new OpenSpec change with all artifacts generated in one step. Use when the user wants to quickly describe what they…
Sync delta specs from an OpenSpec change to main specs. Use when the user wants to update main specs with changes from a delta…
Update an OpenSpec change by revising its existing planning artifacts and keeping them coherent with one another. Use when the…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.