bitrix-project-structure

bitrix-project-structure is a skill for Claude Code, Codex from bxmaximum/bitrix-framework-skills. It costs 51 tokens per session (1,330 once invoked), scanned A, original, MIT.

A guide to organising code in Bitrix, a PHP website and application platform. It explains where custom code belongs, how modules are loaded, and how namespaces and settings work.

In plain words
What is it for?
Use it when adding modules, components, templates, routes, or shared PHP code, or when fixing module-loading and project-configuration issues.
Why use it?
It removes guesswork about file locations and prevents custom code from being placed in system-managed areas.

Skill for Claude CodeCodex

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

Good fit Use it when adding modules, components, templates, routes, or shared PHP code, or when fixing module-loading and project-configuration issues.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bxmaximum/bitrix-framework-skills/bitrix-project-structure
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-project-structure
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-project-structure

README.md
[![agentmods](https://agentmods.dev/badge/skills/bxmaximum/bitrix-framework-skills/bitrix-project-structure/github.svg)](https://agentmods.dev/skills/bxmaximum/bitrix-framework-skills/bitrix-project-structure)
Your own site
<a href="https://agentmods.dev/skills/bxmaximum/bitrix-framework-skills/bitrix-project-structure"><img src="https://agentmods.dev/badge/skills/bxmaximum/bitrix-framework-skills/bitrix-project-structure/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-project-structure

Your own site · 80×15
<a href="https://agentmods.dev/skills/bxmaximum/bitrix-framework-skills/bitrix-project-structure"><img src="https://agentmods.dev/badge/skills/bxmaximum/bitrix-framework-skills/bitrix-project-structure.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,330 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.00051 $0.01330
Opus 5.5 $0.00020 $0.00532
Sonnet 5.5 $0.00010 $0.00266
Haiku 4.5 $0.00005 $0.00133

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

Security

Grade A, and why

bitrix-project-structure 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 29d 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-project-structure/SKILL.md · 76 lines

How it starts

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

Структура проекта и автозагрузка

Baseline: main 23.0+ · Verified: main 26.1000.0

Перед PHP-кодом прочитай bitrix-framework, если ещё не читал его в этой задаче.

Since main 26.900 проверка системы требует PHP 8.2+ и расширение Tokenizer (token_get_all). При обновлении проверь доступность в HTTP и CLI; старые версии ядра оценивай по их требованиям, не отключай проверку для обхода несовместимости.

Корневые каталоги

  • /bitrix/ — ядро и модули Marketplace; заменяются обновлениями. Не редактируй (bitrix-framework).
  • /local/ — весь код проекта; одинаковый относительный путь в /local/ приоритетнее /bitrix/.
  • /upload/ — файлы пользователей и модулей.
/local/
├── modules/<vendor>.<module>/   # код проекта находится в модулях (bitrix-modules)
├── components/<ns>/<name>/      # bitrix-components
├── templates/<site_tpl>/        # шаблоны сайта и переопределения шаблонов компонентов
├── routes/web.php               # bitrix-routing
├── js/<vendor>/<module>/<ext>/  # ID расширения vendor.module.ext (bitrix-extensions)
├── activities/                  # действия bizproc (также activities/custom)
├── gadgets/<ns>/<name>/         # гаджеты рабочего стола
├── blocks/                      # блоки landing
├── php_interface/
│   ├── init.php                 # каждый хит, до кода страницы
│   ├── dbconn.php               # здесь Since main 24.100; константы ядра
│   ├── after_connect_d7.php     # только после подключения default к БД
│   └── user_lang/<lang>/lang.php # подмена фраз
├── .settings.php                # заменяет /bitrix/.settings.php (bitrix-settings)
└── .settings_extra.php

Защити /local/php_interface/ от HTTP-доступа так же, как /bitrix/php_interface/.

Файлы php_interface

  • init.php: только константы, нужные до модулей, и addEventHandler() для событий, не принадлежащих модулю. Остальное размещай в модуле (install/, include.php, .settings.php).
  • after_connect_d7.php подключается внутри объекта соединения default: используй $this->queryExecute("SET …") (кодировка, sql_mode, часовой пояс). Выполняется один файл: копия /local отключает /bitrix, поэтому перенеси его инструкции. Другие соединения запускают свой файл через 'include_after_connected' => '/abs/path.php' в connections.

Read the full file on GitHub · 76 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. 29d ago Changed · +4 lines · -12 tokens per session 109bdd194cf2
  2. 2mo ago Changed · -113 lines · -44 tokens per session dbac1bd4bfd7
  3. 3mo ago First seen · 185 lines · 107 tokens per session scan A 2960dde4fad5

Subscribe to this mod's changes

bitrix-project-structure is a skill published in the GitHub repository bxmaximum/bitrix-framework-skills (82 stars, last pushed 2d ago), licensed MIT. It adds 51 tokens to every session and 1,330 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

bitrix-project-structure compared with skills from other repositories

bitrix-project-structure next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bitrix-project-structurebxmaximum/bitrix-framework-skillsSkill822d agoMITA51Claude Code, Codex
n8n-architectEtienneLescot/n8n-as-codeSkill1.7kyesterdayMITA52Claude Code, Codex
roblox-cloudTabooHarmony/roblox-brainSkill2392d agoMITA38Claude Code
cto-advisorborghei/Claude-SkillsSkill1.3kyesterdaynoneA36Claude Code
agent-protocolborghei/Claude-SkillsSkill1.3kyesterdaynoneA45Claude Code
api-design-reviewerborghei/Claude-SkillsSkill1.3kyesterdaynoneA58Claude Code
api-test-suite-builderborghei/Claude-SkillsSkill1.3kyesterdaynoneA49Claude Code