bitrix-service-locator

bitrix-service-locator is a skill for Claude Code, Codex from bxmaximum/bitrix-framework-skills. It costs 56 tokens per session (1,089 once invoked), scanned A, original, MIT.

A guide to Bitrix's service locator and dependency-injection system, which supplies application services and their dependencies where they are needed.

In plain words
What is it for?
Use it to register module services, retrieve them with has() and get(), inject constructor dependencies, and inject controller action parameters.
Why use it?
It helps keep service setup and dependency access consistent instead of constructing dependencies throughout the code.

Skill for Claude CodeCodex

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

Good fit Use it to register module services, retrieve them with has() and get(), inject constructor dependencies, and inject controller action parameters.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/bxmaximum/bitrix-framework-skills/bitrix-service-locator"><img src="https://agentmods.dev/badge/skills/bxmaximum/bitrix-framework-skills/bitrix-service-locator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,089 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.00056 $0.01089
Opus 5.5 $0.00022 $0.00436
Sonnet 5.5 $0.00011 $0.00218
Haiku 4.5 $0.00006 $0.00109

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

Security

Grade A, and why

bitrix-service-locator 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 23d 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-service-locator/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.

ServiceLocator (DI)

Baseline: main 23.0+ · Verified: main 26.800.0

Where constructor DI is allowed (services yes; controllers via action params; commands and handlers no): bitrix-framework. Domain classes never touch the container.

How get($id) resolves (Since main 26.250*)

Key Result
Built before, or addInstance() the same instance
Not registered, class exists autowired: each ctor param = get(<its type>); a param with a default gets the default
Registered interface / abstract class className → implementation autowired (constructorParams ignored); constructor closure → called with constructorParams as args
Registered concrete class or string id className → new $class(...array_values(constructorParams)), no autowire; constructor closure → called without args
  • Instances are cached for the process unless the entry has 'singleton' => false.
  • A cycle throws CircularDependencyException. An untyped, union or scalar param without a default throws ServiceNotFoundException.
  • Before 26.250: every registered key is built by new $class(...constructorParams) or constructor(). Unregistered classes are autowired only if all ctor params are concrete classes (no interfaces, defaults ignored). No singleton option. On such kernels bind implementations with dependencies through a constructor closure.

Registration

services in /local/modules/vendor.module/.settings.php (registered on Loader::includeModule()) or in the global settings:

<?php
return [
    'services' => [
        'value' => [
            // interface → implementation (autowired since 26.250*)
            \Vendor\Blog\Domain\PostRepositoryInterface::class => [
                'className' => \Vendor\Blog\Infrastructure\OrmPostRepository::class,
            ],
            // scalar arguments → factory
            \Vendor\Blog\Infrastructure\TelegramClient::class => [
                'constructor' => static fn () => new \Vendor\Blog\Infrastructure\TelegramClient(
                    (string)getenv('TELEGRAM_BOT_TOKEN'),
                ),
            ],
            // positional args; closure evaluated on first get()
            'vendor.blog.mailer' => [
                'className' => \Vendor\Blog\Infrastructure\Mailer::class,
                'constructorParams' => static fn () => ['[email protected]'],
            ],
        ],
        'readonly' => true,
    ],
];

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. 23d ago Changed · -126 lines · -63 tokens per session f0d9be8cc25d
  2. 1mo ago First seen · 203 lines · 119 tokens per session scan A e5a77af2c52a

Subscribe to this mod's changes

bitrix-service-locator is a skill published in the GitHub repository bxmaximum/bitrix-framework-skills (46 stars, last pushed 12d ago), licensed MIT. It adds 56 tokens to every session and 1,089 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

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

roblox-cloud

Use for Roblox Open Cloud: API keys, OAuth 2.0, webhooks, scopes, token lifecycle, DataStore or messaging access from outside the game.

TabooHarmony/roblox-brain · 37 tokens

cto-advisor

Technical leadership guidance for engineering teams, architecture decisions, and technology strategy. Use when assessing technical debt, scaling engineering teams, evaluating technologies, or making architecture decisions.

borghei/Claude-Skills · 36 tokens

agent-protocol

Design AI agent communication protocols: MCP tool schemas, A2A, function calling, and inter- agent messaging. Use when building multi-agent systems, defining tool interfaces, or implementing agent-to-agent communication.

borghei/Claude-Skills · 45 tokens

aws-solution-architect

Design AWS serverless architectures for startups with IaC. Use when designing serverless architecture, writing CloudFormation, optimizing AWS costs, setting up CI/CD, or migrating to AWS across Lambda, API Gateway, and DynamoDB.

borghei/Claude-Skills · 51 tokens

mcp-server-builder

Build MCP (Model Context Protocol) servers with tool definitions, resource providers, prompt templates, and transports. Use when exposing APIs to AI agents, building tool servers, converting OpenAPI to MCP, or creating MCP integrations.

borghei/Claude-Skills · 49 tokens