---
name: Bitrix Controllers
slug: bitrix-controllers
category: Automation
description: Skill for building thin controllers in Bitrix using Engine Controller/JsonController with filter attributes, error handling, and autowiring. Useful for creating AJAX, REST, or routed endpoints.
github: "https://github.com/bxmaximum/bitrix-framework-skills/tree/main/skills/bitrix-controllers"
stars: 19
forks: 3
install: "npx degit https://github.com/bxmaximum/bitrix-framework-skills/tree/main/skills/bitrix-controllers ~/.claude/skills/bitrix-controllers"
installs_to: ~/.claude/skills/bitrix-controllers
source_path: skills/bitrix-controllers/SKILL.md
collection_size: 25
category_size: 1523
collection_url: "https://dirskills.com/collections/bxmaximum/bitrix-framework-skills"
added: 2026-08-11T07:22:30.032Z
last_synced: 2026-08-11T07:22:30.032Z
canonical_url: "https://dirskills.com/skills/bitrix-controllers"
---

# Bitrix Controllers

Skill for building thin controllers in Bitrix using Engine Controller/JsonController with filter attributes, error handling, and autowiring. Useful for creating AJAX, REST, or routed endpoints.

**Install:**

```bash
npx degit https://github.com/bxmaximum/bitrix-framework-skills/tree/main/skills/bitrix-controllers ~/.claude/skills/bitrix-controllers
```

## README

# Bitrix Controllers

Baseline: **main 23.0+**. Features newer than baseline are marked **Since**.

Progressive disclosure: open **only** the rule files that match the task. Do not read every `rules/*.md`.

## How to use

1. Identify the layer the task touches.
2. Open the matching `rules/*.md` below.
3. Prefer framework-native Bitrix patterns over custom abstractions.


## Choose a rule file

### When to read `rules/basics.md`

Read `rules/basics.md` (`Location, thin controller, autowire`) when the task involves:

- Location and Naming
- Minimal Controller
- Action Parameter Autowiring
- Controller Lifecycle
- Additional Autowire Types
- Front-end Call

### When to read `rules/filters.md`

Read `rules/filters.md` (`Filters and attributes`) when the task involves:

- Default Prefilters
- Action Filters
- PHP 8 Attribute Filters (preferred)

### When to read `rules/errors-response.md`

Read `rules/errors-response.md` (`Errors, responses, scope`) when the task involves:

- Errors
- Response Types
- Scope (AJAX / REST / CLI)
- Checklist

## Checklist

- [ ] Opened only the rule file(s) needed for this task.
- [ ] Followed DI / `/local/` / security canons from `AGENTS.md`.
