跳到正文
FunCoding

v8unpack-cf

Read and write a whole 1C binary — CF / CFE / EPF — without the platform via the `v8unpack` CLI. Use for a binary with no infobase / Designer / `ibcmd`; one ordinary form (`Form.bin`, `form.frm`) is the form-ordinary skill.

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

content/skills/v8unpack-cf/SKILL.md

在 GitHub 上查看

v8unpack-cf — read and write 1C binary artifacts

This skill owns whole binaries. One ordinary form is not one of them:

You haveRouteSection
One ordinary form — .../Forms/<Форма>/Ext/Form.bin or form.frmskill form-ordinary (content/skills/form-ordinary/SKILL.md); MCP unpack_ordinary_form / build_ordinary_form only as its fallbackOrdinary forms — Form.bin
A whole CF / CFE / EPF binaryv8unpack CLI (-E / -B)Whole binaries — CF / CFE / EPF

Use this skill when the 1C:Enterprise platform is not at hand. When the configuration lives in an infobase, extract it through the platform instead — see the getconfigfiles rule.

Dependency

  • v8unpack Python package — pip install "v8unpack>=1.2.6,<2". Verify with python -m v8unpack --help.
  • Both MCP servers declare it in their own requirements, so the tools work in a built image. When it is missing they answer status="error", error_code="dependency_missing" with the install line in hint — that is the answer, not a crash.

Ordinary forms — Form.bin

An ordinary form is the form-ordinary skill's (content/skills/form-ordinary/SKILL.md): a named format map, edit operations, validation, rendering and the Form.bin round trip, with no MCP server. Fall back to the MCP pair unpack_ordinary_form / build_ordinary_form only when that skill cannot run here (no Python ≥ 3.12, a failing selftest) and the task is a lossless container round trip; then read ordinary-forms.md first — exact MCP contract, workspace, workflow and warnings. Never edit Form.bin directly or deflate its entries.

Whole binaries — CF / CFE / EPF

Before whole-binary extraction, build, indexing or Python API use, read whole-binaries.md. On Windows use --processes 1 unless parallel processing is validated for the artifact. A rebuilt current-configuration .cf is not a loadable substitute for a platform-written file; the limitations below apply.

Limitations

Of the CLI route:

  • Object properties and form layout are stored in header / raw as raw arrays.
  • Files larger than 1 MB (layouts, HTML) are stored as .bin without decoding.
  • Encrypted modules are kept in binary form.
  • With --auto_include, nested objects are sorted alphabetically.

Of ordinary forms specifically — measured on a real extraction (1C-Gitter 1.1.0.8, 170 form artifacts, v8unpack 1.2.6), not assumed:

  • *.elem.json is populated for managed forms and empty for ordinary ones. 23 of 23 managed forms (Тип формы = 1) came back with a named tree; 147 of 147 ordinary forms (Тип формы = 0, element version '' or 0-5-1) came back empty, because neither version is in v8unpack's FormCore.supported_form_versions (0-26, 0-27, 1). So for the ordinary forms of a modern configuration the CLI route yields no named elements; read their layout from Form.bin with form-ordinary (decode names positions by its format map).
  • v8unpack 1.2.6 cannot write a container with compressed entries through Container.build(nested=False) — it raises struct.error, because Document.compress returns no table-of-contents offset. Irrelevant for a Form.bin: its entries must be plain anyway (see ordinary-form warnings), and the MCP codec writes them plain with verbatim (nested=True) container records. Relevant only if you drive the library directly for a whole CF / CFE / EPF.
  • A .cf rebuilt with -B from a current configuration is not the configuration — see whole-binary build. Observed metadata degradation on 8.3.27; the platform is the only writer of a loadable configuration file.
  • A rebuilt binary's SHA-256 always differs from its source (write timestamps). Compare logical payload, not the container hash (see ordinary-form warnings).

Relationship to other rules

  • getconfigfiles — extracts configuration objects from a running infobase through the platform. Prefer it when an infobase is available; use v8unpack-cf when you only have a binary artifact and no platform.
  • 1c-metadata-manage — MCP-based skill for operating on the metadata structure once the sources are unpacked. It owns managed forms (Ext/Form.xml); ordinary forms are form-ordinary's, because there is no XML for it to edit.
  • form-ordinary — ordinary forms (Form.bin, form.frm): reading, editing, generation, rendering, pack / unpack, and epf-copyinfo for an .epf built by ibcmd.
  • forms.md — the router for managed-form work. It sends ordinary forms to form-ordinary.
  • mcp-1c-tools — the MCP catalog. unpack_ordinary_form / build_ordinary_form are listed there under both 1c-code-metadata-mcp and 1c-graph-metadata-mcp; ordinary-forms.md is the contract they share — the fallback route.

相似的 Skill

精选

domain-modeling

编写词汇表,记录架构决策,澄清术语歧义。

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

writing-fragments

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

writing-shape

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

writing-beats

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

perfect-docs

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

writing-skills

OBobra/superpowers331k近 7 天新增 5,757 个 star