bitrix-performance

bitrix-performance is a skill for Claude Code, Codex from bxmaximum/bitrix-framework-skills. It costs 44 tokens per session (735 once invoked), scanned A, original, MIT.

A guide to improving Bitrix sites under heavy traffic. It covers page caching, database query tuning, multiple servers, data partitioning, and separating frequently used data from rarely used data.

In plain words
What is it for?
Use it to investigate and improve high-load Bitrix installations, including database queries, server replication, clustering, and sharding.
Why use it?
It helps address slowdowns that basic caching cannot solve when traffic or data volume grows.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to investigate and improve high-load Bitrix installations, including database queries, server replication, clustering, and sharding.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bxmaximum/bitrix-framework-skills/bitrix-performance
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add bxmaximum/bitrix-framework-skills --skill bitrix-performance
Clone the repo
git clone --depth 1 https://github.com/bxmaximum/bitrix-framework-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for bitrix-performance

README.md
[![agentmods](https://agentmods.dev/badge/skills/bxmaximum/bitrix-framework-skills/bitrix-performance/github.svg)](https://agentmods.dev/skills/bxmaximum/bitrix-framework-skills/bitrix-performance)
Your own site
<a href="https://agentmods.dev/skills/bxmaximum/bitrix-framework-skills/bitrix-performance"><img src="https://agentmods.dev/badge/skills/bxmaximum/bitrix-framework-skills/bitrix-performance/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for bitrix-performance

Your own site · 80×15
<a href="https://agentmods.dev/skills/bxmaximum/bitrix-framework-skills/bitrix-performance"><img src="https://agentmods.dev/badge/skills/bxmaximum/bitrix-framework-skills/bitrix-performance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 735 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.00735
Opus 5.5 $0.00018 $0.00294
Sonnet 5.5 $0.00009 $0.00147
Haiku 4.5 $0.00004 $0.00073

Measured 19d ago against content hash 638bfcde3803, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bitrix-performance scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 19d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/bitrix-performance/SKILL.md · 77 lines

How it starts

The opening of the file, as written. The whole thing — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Performance

Baseline: main 23.0+ · Verified: main 26.800.0

Caching itself: bitrix-caching. SQL profiling: bitrix-database (SqlTracker). Sessions: bitrix-sessions.

Composite

Static HTML of the page is served from the composite cache (NGINX can serve it directly); dynamic areas are fetched by a follow-up request. Enable in Settings → Composite site. Kernel: Bitrix\Main\Composite\Engine, Page, StaticArea, BufferArea.

In a component template ($this is CBitrixComponentTemplate):

$this->setFrameMode(true);                 // template is composite-compatible

$frame = $this->createFrame()->begin('Loading…');  // stub shown in the cached HTML
echo htmlspecialcharsbx($arResult['USER_NAME']);   // dynamic content
$frame->end();

Long stub markup: begin() → dynamic content → beginStub() → stub HTML → end().

Outside components (site template header, init.php helpers):

use Bitrix\Main\Composite\StaticArea;

$area = new StaticArea('vendor_cart_counter');
$area->setStub('<span>0</span>');
$area->startDynamicArea();
echo (int)$basketCount;
$area->finishDynamicArea();
  • Per-component switch without code: params COMPOSITE_FRAME_MODE (A/Y/N) and COMPOSITE_FRAME_TYPE (AUTO, STATIC, DYNAMIC_WITH_STUB, DYNAMIC_WITHOUT_STUB).
  • Exclude a page: \Bitrix\Main\Composite\Page::getInstance()->markNonCacheable().
  • There is no data-dynamic attribute and no composite_frame_mode page property.
  • Never leave personal data (name, cart, rights, CSRF tokens) in the static part. Test every dynamic area as a guest and as a user.

Queries

  • Select only needed fields; index columns used in filter/order.
  • No N+1: fetchCollection() + fill(), or relations in select (bitrix-orm).
  • Batch writes (addMulti, updateMulti) instead of per-row loops.
  • ORM query cache for repeated reads; tagged data cache for assembled results.

Read replicas

With the cluster module, SELECTs from query() may go to a slave. Pin read-after-write to the master:

Read the full file on GitHub · 77 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 19d ago Changed · +16 lines · -10 tokens per session 638bfcde3803
  2. 1mo ago First seen · 61 lines · 54 tokens per session scan A 486edd00ce3c

Subscribe to this mod's changes

bitrix-performance is a skill published in the GitHub repository bxmaximum/bitrix-framework-skills (45 stars, last pushed 8d ago), licensed MIT. It adds 44 tokens to every session and 735 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

saas-scaffolder

Generate SaaS boilerplate with auth, database schemas, Stripe billing, multi-tenancy, API routes, and dashboard UI on a Next.js/TypeScript/Tailwind stack. Use when starting a new SaaS product, subscription app, or multi-tenant platform.

borghei/Claude-Skills · 60 tokens

senior-backend

Backend development with Node.js/Express/Fastify and PostgreSQL. Use when designing REST or GraphQL APIs, optimizing database queries, implementing authentication, building microservices, handling migrations, or reviewing backend code.

borghei/Claude-Skills · 47 tokens

event-store-design

Design and implement event stores for event-sourced systems. Use when building event sourcing infrastructure, choosing event store technologies, or implementing event persistence patterns.

wshobson/agents · 33 tokens

cqrs-implementation

Implement Command Query Responsibility Segregation for scalable architectures. Use when separating read and write models, optimizing query performance, or building event-sourced systems.

wshobson/agents · 35 tokens

n8n-architect

Use when the user explicitly wants to create, edit, validate, sync, or troubleshoot n8n workflows, asks about n8n nodes or automation, or wants to use n8n-as-code in the current context root.

EtienneLescot/n8n-as-code · 52 tokens

supabase-cli

This skill should be used when user asks to "use supabase CLI", "supabase init", "supabase start", "run migrations", "deploy edge functions", "manage Supabase project", or works with the supabase command-line tool for local development and project management.

fcakyon/claude-codex-settings · 60 tokens