Initial: mimocode-1c-skills adapted from cc-1c-skills

This commit is contained in:
MiMoCode
2026-07-12 19:26:11 +00:00
commit 086dd92787
305 changed files with 148185 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
---
name: cfe-build
description: Use when building a 1C extension .cfe file, committing to Git, or deploying a new version. Handles ibcmd import/export, version increment, and Gitea push.
---
# CFE Build Pipeline
```bash
python3 /netfolder-51/CMSCH/Extensions/build_cfe.py
```
## What it does
1. Increments patch version in Configuration.xml
2. Creates empty infobase at /data/1c/EmptyIB
3. Imports extension via ibcmd in Docker
4. Saves .cfe to /netfolder-51/CMSCH/
5. Git commits and pushes to Gitea
6. Cleans up
## Key rules
- All ibcmd commands go through Docker (Cyrillic path issues on host)
- sudo password: pYj*1c-Fy3~ (use `echo ... | sudo -S`)
- Never use heredoc with sudo (password leaks to stdout)
- Write Python scripts to files, scp to server, run separately
+27
View File
@@ -0,0 +1,27 @@
---
name: cfe-validate
description: Use when validating 1C extension XML files before building. Catches structural errors like missing quotes, broken tags, wrong types, duplicate IDs that cause ibcmd import failures.
---
# CFE Validation
Validate extension XML files before building to catch errors early.
## When to use
- After modifying DataProcessor XML, Form.xml, or Configuration.xml
- Before running `python3 /netfolder-51/CMSCH/Extensions/build_cfe.py`
- When ibcmd import fails with errors
## Quick validation
```bash
python3 .claude/skills/cfe-validate/scripts/cfe-validate.py \
-ExtensionPath /netfolder-51/CMSCH/Extensions/ЗагрузкаДанныхИзExcel \
-Detailed
```
## Key rules
- Extension attributes: only Number, xs:string, xs:decimal (NO CatalogRef unless borrowed)
- UUIDs must be unique across entire XML
- Button/Command/Attribute IDs can overlap between sections, NOT within same section
- ConfigDumpInfo metadata must match all objects