bitrix-result-and-errors

Community

Unify Bitrix results and errors with safe typing.

Authorbxmaximum
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill standardizes the handling of Bitrix results, errors, and error collections across services and controllers, enabling predictable API responses without relying on exceptions for expected failure cases.

Core Features & Use Cases

  • Typed Result patterns (AddResult, UpdateResult, DeleteResult) provide stable contracts and typed data access.
  • Centralized error handling using \Bitrix\Main\Error and \Bitrix\Main\ErrorCollection ensures consistent error codes and client-facing messages.
  • Clear controller integration: convert Result errors into client responses, improving reliability and debuggability in API services.

Quick Start

Create a simple Result-based service method that validates input, returns a Result with errors on failure, and returns data on success.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: bitrix-result-and-errors
Download link: https://github.com/bxmaximum/bitrix_ai_challenge/archive/main.zip#bitrix-result-and-errors

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.