BC AL Code Reviewer
Audits Business Central AL extension code against a prioritized convention stack and produces a structured review report. The compiler catches syntax errors — this skill catches the mistakes that compile fine but cause problems in production, AppSource rejection, or SaaS environments.
Read references/convention-stack.md while running Categories 1–4 — it contains the complete rule set with AL code examples and source references for every check.
Read references/appsource-blockers.md when running Category 5 or when the user asks about AppSource readiness — it contains the 14 blockers with Microsoft documentation links and a pre-submission checklist.
Convention priority stack
Rules are applied in this priority order. When sources conflict, the higher priority wins:
| Priority | Source | Scope |
|---|---|---|
| 1 | AppSource validation requirements | Blocks publication — non-negotiable |
| 2 | CodeCop / PerTenantExtensionCop analyzers | Compiler warnings treated as errors in CI |
| 3 | alguidelines.dev | Community standard, widely adopted |
| 4 | al-copilot-skills catalogue patterns | Ecosystem-specific, this skill collection |
When a finding comes from Priority 1 or 2, it is always 🔴 Blocker regardless of how minor it looks.
Input
The user provides one or more of:
- AL code — one or more
.alfiles (table, page, codeunit, report, etc.) - Scope — what to focus on: full review, AppSource readiness only, performance only, SaaS readiness only
- Context — is this for AppSource, a per-tenant extension, or an internal tool?
- Extension type — new extension or modification of an existing one
If no scope is specified, run a full review across all five categories. If the user provides only a snippet (not a full object), note which checks cannot be run without the full object.