About bitrix-request-response
A Bitrix development skill covering application context, request data, and HTTP responses. It guides developers toward framework APIs and away from direct superglobal access or manual output.
Key features
- 01Access application and request context
- 02Read query, form, header, cookie, and JSON data
- 03Build HTTP and JSON responses
- 04Handle redirects, files, and cookies
Use cases
- 01Read controller input from the correct request source
- 02Return JSON, redirects, or file responses
- 03Work with site, language, and session context
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ bxmaximum/ bitrix-framework-skills --skill bitrix-request-responseAfter installing, type/bitrix-request-responsein Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
rules/application-context.mdrequest.mdresponse.mduri-uuid.mdDetails
From the project READMEApplication, Context, Request, Response
Baseline: main 23.0+ · Verified: main 26.800.0
| Task | Read |
|---|---|
Application, Context, site, language, session access | rules/application-context.md |
| Reading query, form, headers, cookies, files, JSON body | rules/request.md |
HttpResponse, Json/AjaxJson, redirect, files, cookies, Converter | rules/response.md |
Uri, UuidGenerator | rules/uri-uuid.md |
Invariants
- Request data only via
$this->getRequest()(controllers) orContext::getCurrent()->getRequest(). Never$_GET/$_POST/$_COOKIE/$_SERVER. - Use the getter for the known source (
getQuery/getPost/getHeader/getCookie).get()merges query and form only. - A JSON body is not in
get()/getPost()and is bound to action params only inJsonController:getJsonList()orJsonPayload. - Filtered values (
$request['x']) are not escaped: cast, validate, escape on output. - Output via response objects (
HttpResponse,Engine\Response\*), notheader()/echo json_encode().
Comments
Markdown supported