skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
bxmaximum/bitrix-framework-skills202 installs

bitrix-validation

Bitrix\Main\Validation — rule attributes (NotEmpty, Length, Email, RegExp…), ValidationService, ValidationParameter request DTOs, rules on action params, groups, custom validators. Use when validating controller, service or CLI input.

How do I install this agent skill?

npx skills add https://github.com/bxmaximum/bitrix-framework-skills --skill bitrix-validation
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    The skill provides instructional content and code examples for the Bitrix validation framework using PHP 8 attributes. It covers standard data validation practices and contains no malicious code, remote execution, or security vulnerabilities.

  • Socketpass

    No alerts

  • Snykpass

    Risk: LOW · No issues

What does this agent skill do?

Validation

Baseline: main 23.0+ · Verified: main 26.800.0

The whole namespace is Since main 24.300. Before that, check input by hand in the service and return Result errors (bitrix-result-and-errors).

TaskRead
Rule attributes, DTOs, nested objects, collections, groups, ValidationServicerules/rules-dto.md
Controller input: rules on action params, ValidationParameter DTOsrules/controller.md
Custom rule attribute and validator, error codesrules/custom.md

Invariants

  • Service: ServiceLocator::getInstance()->get('main.validation.service'), or type-hint ValidationService in a service constructor (stateless).
  • There is no .settings.php validation section and no #[ValidationParameter] attribute.
  • Names: RegExp (not Regex), errorMessage (not message). Errors have no getField(): the property path is in getCode() (email, items.0.name).
  • Rules on action params, groups, #[Json], #[OnlyOneOfPropertyRequired] are Since main 26.250*. On 25.x a rule on an action param is silently ignored: validate a DTO instead.
  • ValidationResult extends Result: pass its errors up via the service Result, don't throw.

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/bxmaximum/bitrix-framework-skills/bitrix-validation">View bitrix-validation on skillZs</a>