Notre avis
Valide les fichiers de configuration 1C pour les erreurs structurelles dans Configuration.xml, y compris la well-formedness XML, les propriétés, les objets enfants et les fichiers de langue.
Points forts
- Vérifie à la fois la structure XML et les règles sémantiques (valeurs d'énumération valides, références de langue).
- Fournit une sortie claire des erreurs et avertissements avec codes de sortie pour l'automatisation.
- Permet de limiter le nombre d'erreurs signalées avec le paramètre -MaxErrors.
- Peut enregistrer les résultats dans un fichier pour une révision ultérieure.
Limites
- Nécessite un environnement d'exécution PowerShell, limitant l'utilisation multiplateforme.
- Ne vérifie que les métadonnées de configuration, pas la logique métier ni la syntaxe du code.
- Limitée aux formats de version 1C spécifiques (2.17/2.20).
À utiliser après avoir créé ou modifié une configuration 1C pour garantir sa conformité structurelle avant le déploiement ou le développement ultérieur.
Ne pas utiliser pour valider le comportement d'exécution, la logique métier ou les erreurs de code ; pour cela, utilisez le vérificateur syntaxique intégré de 1C.
Analyse de sécurité
SûrThe skill runs a local PowerShell script for XML validation, with no destructive, exfiltrating, or obfuscated actions. The script path is fixed and arguments are user-provided paths, posing no injection or remote execution risk.
Aucun point d'attention détecté
Exemples
Validate the 1C configuration at path upload/cfempty for structural errors.Run cf-validate on the configuration at C:\WS\tasks\cfsrc\acc_8.3.24 and show the results.Validate the 1C configuration in test-tmp/cf but stop after 10 errors.name: cf-validate description: Валидация конфигурации 1С. Используй после создания или модификации конфигурации для проверки корректности argument-hint: <ConfigPath> [-MaxErrors 30] allowed-tools:
- Bash
- Read
- Glob
/cf-validate — валидация конфигурации 1С
Проверяет Configuration.xml на структурные ошибки: XML well-formedness, InternalInfo, свойства, enum-значения, ChildObjects, DefaultLanguage, файлы языков, каталоги объектов.
Параметры и команда
| Параметр | Описание |
|----------|----------|
| ConfigPath | Путь к Configuration.xml или каталогу выгрузки |
| MaxErrors | Остановиться после N ошибок (default: 30) |
| OutFile | Записать результат в файл (UTF-8 BOM) |
powershell.exe -NoProfile -File .claude/skills/cf-validate/scripts/cf-validate.ps1 -ConfigPath "<путь>"
Выполняемые проверки
| # | Проверка | Серьёзность | |---|----------|-------------| | 1 | XML well-formedness, MetaDataObject/Configuration, version 2.17/2.20 | ERROR | | 2 | InternalInfo: 7 ContainedObject, валидные ClassId, уникальность | ERROR | | 3 | Properties: Name непустой, Synonym, DefaultLanguage, DefaultRunMode | ERROR/WARN | | 4 | Properties: enum-значения (11 свойств) | ERROR | | 5 | ChildObjects: валидные имена типов (44 типа), нет дубликатов, порядок типов | ERROR/WARN | | 6 | DefaultLanguage ссылается на существующий Language в ChildObjects | ERROR | | 7 | Файлы языков Languages/<name>.xml существуют | WARN | | 8 | Каталоги объектов из ChildObjects существуют (spot-check) | WARN |
Вывод
=== Validation: Configuration.МояКонфигурация ===
[OK] 1. Root structure: MetaDataObject/Configuration, version 2.17
[OK] 2. InternalInfo: 7 ContainedObject, all ClassIds valid
[OK] 3. Properties: Name="МояКонфигурация", Synonym present
[OK] 4. Property values: 11 enum properties checked
[OK] 5. ChildObjects: 1 types, 1 objects, order correct
[OK] 6. DefaultLanguage "Language.Русский" found in ChildObjects
[OK] 7. Language files: 1/1 exist
[OK] 8. Object directories: spot-check passed
=== Result: 0 errors, 0 warnings ===
Exit code: 0 = OK, 1 = errors.
Примеры
# Пустая конфигурация
... -ConfigPath upload/cfempty
# Реальная конфигурация
... -ConfigPath C:\WS\tasks\cfsrc\acc_8.3.24
# С лимитом ошибок
... -ConfigPath test-tmp/cf -MaxErrors 10
Expert Next.js App Router
Developpement
Un skill qui transforme Claude en expert Next.js App Router.
Générateur de README
Developpement
Crée des README.md professionnels et complets pour vos projets.
Rédacteur de Documentation API
Developpement
Génère de la documentation API complète au format OpenAPI/Swagger.