agentleFS
MindrallyMindrally/skills/business-central-development/SKILL.md

business-central-development

Skill266 starsChanged 10 months agoApache-2.0View on GitHub

Expert guidance for Microsoft Dynamics 365 Business Central development using AL language and extensions

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 10 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write clear, technical responses with precise AL examples

    line 12
  2. Distinctive:

    Follow AL naming conventions (PascalCase for public members, camelCase for private)

    line 14
  3. Distinctive:

    Use table objects for data structures and page objects for interfaces

    line 21
  4. Distinctive:

    Follow the object-oriented programming paradigm in AL for clear separation of concerns and modularity

    line 24
  5. Distinctive:

    Use Error, Message, and Confirm functions for user communication

    line 29
  6. Distinctive:

    Use AL's assertion system to catch logical errors during development

    line 32
  7. Distinctive:

    Keep business logic within codeunits

    line 37
  8. Distinctive:

    Use report objects for analysis and document generation

    line 38
  9. Distinctive:

    Use AL's FlowFields and FlowFilters for calculated fields to improve performance

    line 46
  10. Distinctive:

    Follow Business Central's object-based architecture for modular and reusable application elements

    line 59

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

table 50100 "Custom Table"
{
    DataClassification = CustomerContent;

    fields
    {
        field(1; "No."; Code[20]) { }
        field(2; Description; Text[100]) { }
    }

    keys
    {
        key(PK; "No.") { Clustered = true; }
    }
}

Pages

page 50100 "Custom Card"
{
    PageType = Card;
    SourceTable = "Custom Table";

    layout
    {
        area(Content)
        {
            group(General)
            {
                field("No."; Rec."No.") { }
                field(Description; Rec.Description) { }
            }
        }
    }
}

Codeunits

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

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.