bitrix-project-structure

bitrix-project-structure is a skill for Claude Code, Codex from XCode-NLP/KodaSkills. It costs 79 tokens per session (1,341 once invoked), scanned A, original, MIT.

A guide to organising a Bitrix project and getting its PHP classes loaded. It explains the roles of /bitrix, /local, components, modules, Composer, and PSR-4, a convention that maps class names to file paths.

In plain words
What is it for?
Use it when placing new code, creating modules or components, configuring autoloading, overriding core files safely, or diagnosing why a class is not found.
Why use it?
It reduces class-loading failures and prevents project code from being overwritten by Bitrix updates.

Skill for Claude CodeCodex

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

Good fit Use it when placing new code, creating modules or components, configuring autoloading, overriding core files safely, or diagnosing why a class is not found.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xcode-nlp/kodaskills/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 XCode-NLP/KodaSkills --skill bitrix-project-structure
Clone the repo
git clone --depth 1 https://github.com/XCode-NLP/KodaSkills

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/xcode-nlp/kodaskills/bitrix-project-structure/github.svg)](https://agentmods.dev/skills/xcode-nlp/kodaskills/bitrix-project-structure)
Your own site
<a href="https://agentmods.dev/skills/xcode-nlp/kodaskills/bitrix-project-structure"><img src="https://agentmods.dev/badge/skills/xcode-nlp/kodaskills/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/xcode-nlp/kodaskills/bitrix-project-structure"><img src="https://agentmods.dev/badge/skills/xcode-nlp/kodaskills/bitrix-project-structure.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,341 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.00079 $0.01341
Opus 5.5 $0.00032 $0.00536
Sonnet 5.5 $0.00016 $0.00268
Haiku 4.5 $0.00008 $0.00134

Measured 5d ago against content hash 57ab5d148a5c, 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 5d 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 · 78 lines

How it starts

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

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

Базовый уровень: main 23.0+ · Проверено на: main 26.1000.0

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

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

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

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 5d ago Changed · +1 lines 57ab5d148a5c
  2. 11d ago First seen · 77 lines · 79 tokens per session scan A 0f3d246d7280

Subscribe to this mod's changes

bitrix-project-structure is a skill published in the GitHub repository XCode-NLP/KodaSkills (27 stars, last pushed 5d ago), licensed MIT. It adds 79 tokens to every session and 1,341 once invoked, about $0.0003 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-11-19.

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-structureXCode-NLP/KodaSkillsSkill275d agoMITA79Claude Code, Codex
mvc-expertroedyrustam/vibes-plugSkill1293d agoMITA30Cursor
bd-better-route-bridgeLonsdale201/wp-agent-skillsSkill2610d agoMITA214Claude Code, Codex
bd-data-objectLonsdale201/wp-agent-skillsSkill2610d agoMITA206Claude Code, Codex
wp-plugin-bootstrapLonsdale201/wp-agent-skillsSkill2610d agoMITA183Claude Code, Codex
bd-hydration-coercionLonsdale201/wp-agent-skillsSkill2610d agoMITA224Claude Code, Codex
bd-source-adapterLonsdale201/wp-agent-skillsSkill2610d agoMITA207Claude Code, Codex