Bitrix24 PHP SDK developer skill

Bitrix24 PHP SDK

A skill for Bitrix24's official PHP SDK that teaches an agent to wire up webhooks and OAuth, call SDK services, and handle results, errors and pagination

SkillOfficialEditors’ pick

Medium risk

We rate an entry medium when the tool runs code, makes network calls or reads project files. Check what exactly it does before installing.

Why this level

  • Generated code calls a live Bitrix24 portal via a webhook or OAuth
  • Mishandling webhook secrets or OAuth tokens can expose portal access
All reasons and checks
Russian stack

bitrix24/b24phpsdk

Install

In your terminal, with SkillFoxx CLI

npx skillfoxx add skills/bitrix24-php-sdk

Detects the agents on your machine, checks the risk and pins the version.

Other ways to install

Assembled automatically, review before installing.

Run in a terminal in the project folder

npx skills add bitrix24/b24phpsdk --skill b24phpsdk-developer b24phpsdk-maintainer -a claude-code -y

The skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.

Without third-party tools, from commit 7ab58fc
tmp=$(mktemp -d)
git clone --filter=blob:none --no-checkout https://github.com/bitrix24/b24phpsdk.git "$tmp"
git -C "$tmp" sparse-checkout set --no-cone /resources/skills/b24phpsdk-developer/ /.claude/skills/b24phpsdk-maintainer/
git -C "$tmp" checkout 7ab58fc5a7af286360a7ae30454ccf8d923f00f1
mkdir -p .claude/skills
cp -R "$tmp/resources/skills/b24phpsdk-developer" .claude/skills/b24phpsdk-developer
cp -R "$tmp/.claude/skills/b24phpsdk-maintainer" .claude/skills/b24phpsdk-maintainer

Commands for macOS and Linux, on Windows run them in Git Bash.

Run in a terminal in the project folder

npx skills add bitrix24/b24phpsdk --skill b24phpsdk-developer b24phpsdk-maintainer -a cursor -y

The skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.

Without third-party tools, from commit 7ab58fc
tmp=$(mktemp -d)
git clone --filter=blob:none --no-checkout https://github.com/bitrix24/b24phpsdk.git "$tmp"
git -C "$tmp" sparse-checkout set --no-cone /resources/skills/b24phpsdk-developer/ /.claude/skills/b24phpsdk-maintainer/
git -C "$tmp" checkout 7ab58fc5a7af286360a7ae30454ccf8d923f00f1
mkdir -p .agents/skills
cp -R "$tmp/resources/skills/b24phpsdk-developer" .agents/skills/b24phpsdk-developer
cp -R "$tmp/.claude/skills/b24phpsdk-maintainer" .agents/skills/b24phpsdk-maintainer

Commands for macOS and Linux, on Windows run them in Git Bash.

Run in a terminal in the project folder

npx skills add bitrix24/b24phpsdk --skill b24phpsdk-developer b24phpsdk-maintainer -a github-copilot -y

The skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.

Without third-party tools, from commit 7ab58fc
tmp=$(mktemp -d)
git clone --filter=blob:none --no-checkout https://github.com/bitrix24/b24phpsdk.git "$tmp"
git -C "$tmp" sparse-checkout set --no-cone /resources/skills/b24phpsdk-developer/ /.claude/skills/b24phpsdk-maintainer/
git -C "$tmp" checkout 7ab58fc5a7af286360a7ae30454ccf8d923f00f1
mkdir -p .github/skills
cp -R "$tmp/resources/skills/b24phpsdk-developer" .github/skills/b24phpsdk-developer
cp -R "$tmp/.claude/skills/b24phpsdk-maintainer" .github/skills/b24phpsdk-maintainer

Commands for macOS and Linux, on Windows run them in Git Bash.

Run in a terminal in the project folder

npx skills add bitrix24/b24phpsdk --skill b24phpsdk-developer b24phpsdk-maintainer -a codex -y

The skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.

Without third-party tools, from commit 7ab58fc
tmp=$(mktemp -d)
git clone --filter=blob:none --no-checkout https://github.com/bitrix24/b24phpsdk.git "$tmp"
git -C "$tmp" sparse-checkout set --no-cone /resources/skills/b24phpsdk-developer/ /.claude/skills/b24phpsdk-maintainer/
git -C "$tmp" checkout 7ab58fc5a7af286360a7ae30454ccf8d923f00f1
mkdir -p .agents/skills
cp -R "$tmp/resources/skills/b24phpsdk-developer" .agents/skills/b24phpsdk-developer
cp -R "$tmp/.claude/skills/b24phpsdk-maintainer" .agents/skills/b24phpsdk-maintainer

Commands for macOS and Linux, on Windows run them in Git Bash.

Run in a terminal in the project folder

npx skills add bitrix24/b24phpsdk --skill b24phpsdk-developer b24phpsdk-maintainer -a gemini-cli -y

The skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.

Without third-party tools, from commit 7ab58fc
tmp=$(mktemp -d)
git clone --filter=blob:none --no-checkout https://github.com/bitrix24/b24phpsdk.git "$tmp"
git -C "$tmp" sparse-checkout set --no-cone /resources/skills/b24phpsdk-developer/ /.claude/skills/b24phpsdk-maintainer/
git -C "$tmp" checkout 7ab58fc5a7af286360a7ae30454ccf8d923f00f1
mkdir -p .agents/skills
cp -R "$tmp/resources/skills/b24phpsdk-developer" .agents/skills/b24phpsdk-developer
cp -R "$tmp/.claude/skills/b24phpsdk-maintainer" .agents/skills/b24phpsdk-maintainer

Commands for macOS and Linux, on Windows run them in Git Bash.

Run in a terminal in the project folder

tmp=$(mktemp -d)
git clone --filter=blob:none --no-checkout https://github.com/bitrix24/b24phpsdk.git "$tmp"
git -C "$tmp" sparse-checkout set --no-cone /resources/skills/b24phpsdk-developer/ /.claude/skills/b24phpsdk-maintainer/
git -C "$tmp" checkout 7ab58fc5a7af286360a7ae30454ccf8d923f00f1
mkdir -p .devin/skills
cp -R "$tmp/resources/skills/b24phpsdk-developer" .devin/skills/b24phpsdk-developer
cp -R "$tmp/.claude/skills/b24phpsdk-maintainer" .devin/skills/b24phpsdk-maintainer

Commands for macOS and Linux, on Windows run them in Git Bash.

Formerly Windsurf.

Run in a terminal in the project folder

npx skills add bitrix24/b24phpsdk --skill b24phpsdk-developer b24phpsdk-maintainer -a cline -y

The skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.

Without third-party tools, from commit 7ab58fc
tmp=$(mktemp -d)
git clone --filter=blob:none --no-checkout https://github.com/bitrix24/b24phpsdk.git "$tmp"
git -C "$tmp" sparse-checkout set --no-cone /resources/skills/b24phpsdk-developer/ /.claude/skills/b24phpsdk-maintainer/
git -C "$tmp" checkout 7ab58fc5a7af286360a7ae30454ccf8d923f00f1
mkdir -p .cline/skills
cp -R "$tmp/resources/skills/b24phpsdk-developer" .cline/skills/b24phpsdk-developer
cp -R "$tmp/.claude/skills/b24phpsdk-maintainer" .cline/skills/b24phpsdk-maintainer

Commands for macOS and Linux, on Windows run them in Git Bash.

Run in a terminal in the project folder

npx skills add bitrix24/b24phpsdk --skill b24phpsdk-developer b24phpsdk-maintainer -a roo -y

The skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.

Without third-party tools, from commit 7ab58fc
tmp=$(mktemp -d)
git clone --filter=blob:none --no-checkout https://github.com/bitrix24/b24phpsdk.git "$tmp"
git -C "$tmp" sparse-checkout set --no-cone /resources/skills/b24phpsdk-developer/ /.claude/skills/b24phpsdk-maintainer/
git -C "$tmp" checkout 7ab58fc5a7af286360a7ae30454ccf8d923f00f1
mkdir -p .roo/skills
cp -R "$tmp/resources/skills/b24phpsdk-developer" .roo/skills/b24phpsdk-developer
cp -R "$tmp/.claude/skills/b24phpsdk-maintainer" .roo/skills/b24phpsdk-maintainer

Commands for macOS and Linux, on Windows run them in Git Bash.

A fork of Roo Code, same .roo folders.

Run in a terminal in the project folder

npx skills add bitrix24/b24phpsdk --skill b24phpsdk-developer b24phpsdk-maintainer -a opencode -y

The skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.

Without third-party tools, from commit 7ab58fc
tmp=$(mktemp -d)
git clone --filter=blob:none --no-checkout https://github.com/bitrix24/b24phpsdk.git "$tmp"
git -C "$tmp" sparse-checkout set --no-cone /resources/skills/b24phpsdk-developer/ /.claude/skills/b24phpsdk-maintainer/
git -C "$tmp" checkout 7ab58fc5a7af286360a7ae30454ccf8d923f00f1
mkdir -p .agents/skills
cp -R "$tmp/resources/skills/b24phpsdk-developer" .agents/skills/b24phpsdk-developer
cp -R "$tmp/.claude/skills/b24phpsdk-maintainer" .agents/skills/b24phpsdk-maintainer

Commands for macOS and Linux, on Windows run them in Git Bash.

Run in a terminal in the project folder

tmp=$(mktemp -d)
git clone --filter=blob:none --no-checkout https://github.com/bitrix24/b24phpsdk.git "$tmp"
git -C "$tmp" sparse-checkout set --no-cone /resources/skills/b24phpsdk-developer/ /.claude/skills/b24phpsdk-maintainer/
git -C "$tmp" checkout 7ab58fc5a7af286360a7ae30454ccf8d923f00f1
mkdir -p .agents/skills
cp -R "$tmp/resources/skills/b24phpsdk-developer" .agents/skills/b24phpsdk-developer
cp -R "$tmp/.claude/skills/b24phpsdk-maintainer" .agents/skills/b24phpsdk-maintainer

Commands for macOS and Linux, on Windows run them in Git Bash.

Run in a terminal in the project folder

tmp=$(mktemp -d)
git clone --filter=blob:none --no-checkout https://github.com/bitrix24/b24phpsdk.git "$tmp"
git -C "$tmp" sparse-checkout set --no-cone /resources/skills/b24phpsdk-developer/ /.claude/skills/b24phpsdk-maintainer/
git -C "$tmp" checkout 7ab58fc5a7af286360a7ae30454ccf8d923f00f1
mkdir -p .agents/skills
cp -R "$tmp/resources/skills/b24phpsdk-developer" .agents/skills/b24phpsdk-developer
cp -R "$tmp/.claude/skills/b24phpsdk-maintainer" .agents/skills/b24phpsdk-maintainer

Commands for macOS and Linux, on Windows run them in Git Bash.

You will need: Node.js

Checked against the repository on Sep 26, 2026, commit 7ab58fc.

Text for your agent

Copy resources/skills/b24phpsdk-developer from the bitrix24/b24phpsdk repository into my project's .claude/skills so the agent writes integration code following the SDK's own conventions: ServiceBuilderFactory, webhook or OAuth, exceptions handled at the application boundary.

This is third-party code. Review the repository files before installing.

What it does

The b24phpsdk-developer skill lives inside the SDK repository itself at resources/skills and targets product applications that consume bitrix24/b24phpsdk, not development of the SDK. It lays out a workflow: check the installed version and services via ServiceBuilderFactory first, choose a webhook for a server integration tied to one fixed portal or OAuth for an app installed into different portals, keep secrets only in configuration, catch SDK exceptions at the application boundary, and work with results and pagination through SDK methods rather than the raw response array. Separate reference files cover installation, result handling, and error handling with tests.

Who it is for. For PHP developers building Bitrix24 integrations with the official SDK who want an agent to write code in the project's own style.

Good fit when

  • You are writing PHP code that calls bitrix24/b24phpsdk services
  • You need to correctly initialize access via a webhook or OAuth
  • You want an established practice for SDK exceptions, pagination and batch calls

Not a fit when

  • You are working on the SDK repository itself: issues, releases, generated service wrappers and OpenAPI coverage, for which the repository has a separate b24phpsdk-maintainer skill
  • You need an SDK for a language other than PHP

Example request

Write a service that fetches recent Bitrix24 contacts through b24phpsdk via a webhook and wraps SDK errors

Limitations

The skill must be copied into your project by hand; the README gives no single install command. It requires bitrix24/b24phpsdk already installed via Composer. The library ships two incompatible versions, v1 on the main branch and v3 on the v3 branch with a different REST endpoint format, and the skill does not choose a version for you.

How to disable. Delete the b24phpsdk-developer folder from your project's .claude/skills, or .agents/skills if you used the generic format.

Security check

  • Generated code calls a live Bitrix24 portal via a webhook or OAuth
  • Mishandling webhook secrets or OAuth tokens can expose portal access

README in short

The SKILL.md file describes the skill's scope, a seven-step workflow for using the SDK, and a routing table to three reference files: installation and initialization, result and pagination handling, error handling and tests. It separately shows an adapter pattern that keeps domain code independent of SDK services through a product-owned interface.

SKILL.md

---
name: b24phpsdk-developer
description: Use when writing product application code with bitrix24/b24phpsdk, integrating Bitrix24 webhooks or OAuth, choosing SDK service calls, handling SDK results, errors, pagination, batch calls, or tests outside the SDK repository
---

# Bitrix24 PHP SDK Developer

## Scope

Use this skill for product applications that consume `bitrix24/b24phpsdk`.

Do not use it for SDK repository maintenance: GitHub issue triage, release work, changelog policy,
OpenAPI coverage, generated SDK service wrappers, result-item annotation tests, or other SDK
internals. In the SDK repository, those tasks belong to `b24phpsdk-maintainer`.

## Workflow

1. Inspect the installed package version and public API first: read `composer.lock`, run
   `composer show bitrix24/b24phpsdk`, and search `vendor/bitrix24/b24phpsdk/src/Services` before
   writing integration code.
2. Prefer `ServiceBuilderFactory` and public service builders over direct REST calls.
3. Use incoming webhook initialization for server-side integrations that can rely on a fixed portal
   webhook. Use OAuth only when the product owns Bitrix24 app installation, token storage, and token
   refresh.
4. Keep webhook URLs, OAuth tokens, client secrets, and portal domains in environment or application
   configuration. Never inline them in code, docs, test fixtures, or logs.
5. Catch SDK exceptions at the application boundary. Do not scatter low-level SDK error handling
   through domain code.
6. Prefer SDK result objects and accessors such as `getContacts()` over raw response-array indexing.
7. Treat list calls as paginated. Use batch helpers deliberately when reading many records.
8. Test product logic with fakes around your own SDK boundary. Keep live Bitrix24 checks explicit,
   opt-in, and driven by `BITRIX24_WEBHOOK`.

FAQ

How is this different from b24phpsdk-maintainer in the same repository?

b24phpsdk-developer targets code that consumes the SDK in your own app, while b24phpsdk-maintainer is only for working on the SDK repository itself: issues, releases, generated services.

Webhook or OAuth?

The skill recommends a webhook for server integrations tied to a fixed portal, and OAuth only when the application itself owns Bitrix24 installation and token storage.

Editors’ pick

A skills library that gives coding agents a development process: brainstorming, planning, TDD, subagents and code review

PluginMedium riskNo VPN needed292.5KRepository stars
Editors’ pick

Small composable skills for engineering with agents: plan grilling, TDD, bug diagnosis, code review and architecture

SkillLow risk271.4KRepository stars
Editors’ pick

GitHub toolkit for spec-driven development: the specify CLI adds agent commands and skills to a project, from principles to implementation

CLIMedium riskNo VPN needed139.3KRepository stars

Reference MCP servers

Model Context Protocol servers

Official

Official reference MCP servers: Filesystem, Fetch, Git, Memory, Sequential Thinking, Time and Everything

MCP serverMedium risk90.6KRepository stars
Foxx AIBitrix24 PHP SDK developer skill

I am Foxx AI and I have already vetted this tool. Ask about install, setup or anything else, and I will keep it simple.