mcpField
B
bitrix-request-response

bitrix-request-response

github.com/bxmaximumDevelopment47270 installsUpdated 2w ago
Repository

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

  1. 01Access application and request context
  2. 02Read query, form, header, cookie, and JSON data
  3. 03Build HTTP and JSON responses
  4. 04Handle redirects, files, and cookies

Use cases

  1. 01Read controller input from the correct request source
  2. 02Return JSON, redirects, or file responses
  3. 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-response

After installing, type/bitrix-request-responsein Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

rules/
application-context.md
request.md
response.md
uri-uuid.md

Details

From the project README

Application, Context, Request, Response

Baseline: main 23.0+ · Verified: main 26.800.0

TaskRead
Application, Context, site, language, session accessrules/application-context.md
Reading query, form, headers, cookies, files, JSON bodyrules/request.md
HttpResponse, Json/AjaxJson, redirect, files, cookies, Converterrules/response.md
Uri, UuidGeneratorrules/uri-uuid.md

Invariants

  • Request data only via $this->getRequest() (controllers) or Context::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 in JsonController: getJsonList() or JsonPayload.
  • Filtered values ($request['x']) are not escaped: cast, validate, escape on output.
  • Output via response objects (HttpResponse, Engine\Response\*), not header()/echo json_encode().

Comments

Markdown supported