business-central-development — скилл для Claude Code: как настроить
Скилл обучает ИИ-агента разработке расширений для Microsoft Dynamics 365 Business Central на языке AL. Он задаёт правила для таблиц, страниц и модулей codeunit.
npx skills add Mindrally/skills --skill business-central-development -a claude-codeЧто делает business-central-development
Скилл настраивает агента на разработку расширений для Microsoft Dynamics 365 Business Central на языке AL. Архитектура строится на объектах. Модель распределяет структуры данных по таблицам table, экраны — по страницам page, а логику обособляет внутри объектов codeunit. Для публичных членов используется PascalCase, для приватных — camelCase.
Инструкции требуют оптимизировать запросы к базе данных. Агент настраивает связи таблиц, задействует вычисляемые поля FlowFields и FlowFilters, а длинные операции отправляет в фоновые задачи через job queue. Обработку ошибок ведут через блоки try-catch, утверждения и функции Error или Confirm.
Для сборки проектов нужен Visual Studio Code с установленным расширением AL Language. Без настроенной среды Dynamics 365 Business Central применить готовые расширения не выйдет.
Какие задачи решает
- Создать структуру данных на языке AL через объекты table
- Инкапсулировать бизнес-логику в объекты codeunit
- Оптимизировать расчёты через FlowFields и FlowFilters
- Вынести долгие операции в фоновые задачи job queue
- Настроить обработку ошибок через try-catch и assert
Примеры запросов агенту
- Создай таблицу Custom Table и страницу Custom Card для учёта оборудования на языке AL
- Напиши codeunit с процедурой ProcessRecord для пакетной обработки записей
- Добавь в таблицу вычисляемое поле через FlowField и настрой фильтр FlowFilter
Как установить business-central-development
1Через Skills CLI (Vercel)
npx skills add Mindrally/skills --skill business-central-development -a claude-code2Вручную: положить файлы
~/.claude/skills/business-central-development/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/business-central-development/
1Через Skills CLI (Vercel)
npx skills add Mindrally/skills --skill business-central-development -a codex2Вручную: положить файлы
.agents/skills/business-central-development/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add Mindrally/skills --skill business-central-development -a cursor2Вручную: положить файлы
.cursor/skills/business-central-development/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install Mindrally/skills business-central-development2Вручную: положить файлы
.github/skills/business-central-development/SKILL.md1Через Skills CLI (Vercel)
npx skills add Mindrally/skills --skill business-central-development -a gemini-cli2Командой платформы
gemini skills install https://github.com/Mindrally/skills --path business-central-developmentВручную: положить файлы
.devin/skills/business-central-development/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add Mindrally/skills --skill business-central-development -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о business-central-development
Как установить business-central-development в Claude Code?
Выполните команду npx skills add Mindrally/skills --skill business-central-development -a claude-code в терминале.
Что делает скилл business-central-development?
Скилл обучает ассистента писать код на языке AL для Microsoft Dynamics 365 Business Central. Он задаёт шаблоны объектов и правила оптимизации запросов.
Какие зависимости нужны для работы со скиллом?
Требуются среда Microsoft Dynamics 365 Business Central и редактор Visual Studio Code с расширением AL Language. При необходимости подключаются приложения AppSource или сторонние расширения.
Исходный текст
SKILL.md · Apache-2.0
---
name: business-central-development
description: Expert guidance for Microsoft Dynamics 365 Business Central development using AL language and extensions
metadata:
maintainer: Mindrally
source: https://github.com/Mindrally/skills
---
# Microsoft Dynamics 365 Business Central Development
You are an expert in AL programming and Microsoft Dynamics 365 Business Central development, emphasizing clarity, modularity, and performance optimization.
## Key Principles
- Write clear, technical responses with precise AL examples
- Leverage built-in features and tools for maximum capability
- Follow AL naming conventions (PascalCase for public members, camelCase for private)
- Implement modular architecture using Business Central's object-based design
## Core Development Practices
### Language & Structure
- Use table objects for data structures and page objects for interfaces
- Employ codeunits to organize and encapsulate business logic
- Leverage AL's trigger system for event-driven programming
- Follow the object-oriented programming paradigm in AL for clear separation of concerns and modularity
### Error Management
- Implement try-catch blocks for database operations and external calls
- Use Error, Message, and Confirm functions for user communication
- Utilize Business Central's debugger for identifying and resolving issues
- Implement custom error messages to improve the development and user experience
- Use AL's assertion system to catch logical errors during development
### Business Central-Specific Guidelines
- Extend existing functionality via table and page extensions
- Keep business logic within codeunits
- Use report objects for analysis and document generation
- Apply permission sets for security management
- Employ the built-in testing framework for unit and integration testing
## Performance Optimization
- Optimize queries with appropriate filters and table relations
- Implement background tasks using job queue entries
- Use AL's FlowFields and FlowFilters for calculated fields to improve performance
- Tune report performance through strategic filtering
- Optimize database queries by using appropriate filters and table relations
## Dependencies
- Microsoft Dynamics 365 Business Central
- Visual Studio Code with AL Language extension
- AppSource apps (as needed for specific functionality)
- Third-party extensions (as needed)
## Key Conventions
- Follow Business Central's object-based architecture for modular and reusable application elements
- Prioritize performance optimization and database management in every stage of development
- Maintain a clear and logical project structure to enhance readability and object management
## Object Types
### Tables
```al
table 50100 "Custom Table"
{
DataClassification = CustomerContent;
fields
{
field(1; "No."; Code[20]) { }
field(2; Description; Text[100]) { }
}
keys
{
key(PK; "No.") { Clustered = true; }
}
}
```
### Pages
```al
page 50100 "Custom Card"
{
PageType = Card;
SourceTable = "Custom Table";
layout
{
area(Content)
{
group(General)
{
field("No."; Rec."No.") { }
field(Description; Rec.Description) { }
}
}
}
}
```
### Codeunits
```al
codeunit 50100 "Custom Logic"
{
procedure ProcessRecord(var Rec: Record "Custom Table")
begin
// Business logic here
end;
}
```
## Resources
Refer to the official Microsoft documentation for the most up-to-date information on AL programming for Business Central: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-programming-in-al
© Mindrally · Apache-2.0 · Mindrally/skills