Bitrix AI Challenge — модуль «Избранное»
CommunityShip a Bitrix Wishlist module with ORM.
Authorbxmaximum
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill encapsulates the Bitrix AI Challenge wishlist module, detailing how to store favorites for authenticated users via ORM and guests via encrypted cookies, plus migration, API, and admin UI requirements to deliver a production-grade solution.
Core Features & Use Cases
- Storage: authenticated users use a dedicated ORM DataManager table; guests use encrypted cookies.
- Migration: move guest favorites to DB on user login via OnAfterUserAuthorize; avoid duplicates.
- REST API: expose POST favorites.add, POST favorites.remove, GET favorites.list, GET favorites.getProducts via \Bitrix\Main\Engine\Controller with proper CSRF and auth checks.
- Public Component: vendor:favorites.button for add/remove with AJAX, parameterized by PRODUCT_ID, SHOW_COUNTER, and BUTTON_SIZE; responsive UI.
- Caching & Invalidation: cache wishlist for users; invalidate on IBlock element updates/deletes via tagged cache; events OnAfterIBlockElementDelete and OnAfterIBlockElementUpdate.
- Admin Settings: module settings page to select catalog info-block, guest cookie TTL, and enable/disable module features.
- Non-functional: API calls <= 100ms, strong validation, CSRF protection, cookie encryption.
Quick Start
Install and configure the Wishlist module following bitrix_ai_challenge.md, then test via the REST API and the public component.
Dependency Matrix
Required Modules
None requiredComponents
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 AI Challenge — модуль «Избранное» Download link: https://github.com/bxmaximum/bitrix_ai_challenge/archive/main.zip#bitrix-ai-challenge Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.