/aldc:al-context-createfrom ALDC for Claude Code
Generates or updates a context.md file documenting project structure, architecture, and key patterns for AI assistants and developers working on AL/Business Central projects.
Ships in ALDC for Claude Code. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Claude Code runtime: read
${CLAUDE_PLUGIN_ROOT}/docs/claude-runtime.mdbefore running this workflow (gates, tools, paths,<Name from $ARGUMENTS>inputs). It runs in the main session.
Generate a comprehensive context.md file that serves as the master context document for AI assistants and developers working on this AL/Business Central project.
The context.md file provides:
This enables AI assistants to load complete project context quickly and make informed suggestions.
Load project metadata:
# Get app.json configuration
Read app.json
# Understand dependencies
mcp__al__al_getpackagedependencies # when the official AL MCP is connected
# Map directory structure
Glob src/**
Identify key patterns:
# Find all table extensions
@search "tableextension" *.al
# Find all page extensions
@search "pageextension" *.al
# Find event subscribers
@search "EventSubscriber" *.al
# Find published integration events
@search "IntegrationEvent" *.al
# Find API pages
@search "APIPublisher\|APIVersion" *.al
Understand what the extension does:
Key questions to answer:
Identify and document:
Document:
Document key architectural choices:
Create the file at project root with this structure:
# Project Context - [Extension Name]
> **Auto-generated**: [Date]
> **Purpose**: Master context document for AI assistants and developers
## 1. Project Overview
### Business Purpose
[What business problem does this extension solve?]
### Target Users
- [User role 1]: [What they do with this extension]
- [User role 2]: [What they do with this extension]
### Extension Metadata
- **App ID**: [from app.json]
- **Version**: [current version]
- **Publisher**: [publisher name]
- **Platform**: [Business Central version target]
- **License**: [if applicable]
## 2. Architecture Overview
### Organization Strategy
[Describe how code is organized - feature-based folders, naming patterns, etc.]
src/ ├── [Feature1]/ │ ├── Data/ # Tables, table extensions │ ├── Processing/ # Codeunits, business logic │ └── UI/ # Pages, page extensions └── [Feature2]/ └── ...
### Key Design Patterns
- **[Pattern 1]**: [Description and rationale]
- **[Pattern 2]**: [Description and rationale]
### Naming Conventions
- **Tables**: [Pattern, e.g., "Prefix_EntityName"]
- **Pages**: [Pattern]
- **Codeunits**: [Pattern]
- **Fields**: [Pattern]
- **Variables**: [Pattern]
## 3. Data Model
### Core Tables
| Table | Object ID | Purpose | Key Relationships |
|-------|-----------|---------|-------------------|
| [Table 1] | [ID] | [Purpose] | → [Related tables] |
| [Table 2] | [ID] | [Purpose] | → [Related tables] |
### Table Extensions
| Extends | New Fields | Purpose |
|---------|------------|---------|
| [Standard Table] | [Field 1, Field 2] | [Why extended] |
### Key FlowFields
- **[Table].[FlowField]**: [What it calculates and why]
## 4. Processing Logic
### Main Codeunits
| Codeunit | Purpose | Key Methods |
|----------|---------|-------------|
| [Name] | [Responsibility] | [Method1(), Method2()] |
### Business Flows
1. **[Flow Name]** (e.g., "Order Approval Flow")
- Entry point: [Where it starts]
- Steps: [Key processing steps]
- Events: [Events published/subscribed]
- Output: [What it produces]
## 5. UI Structure
### Main Pages
| Page | Type | Purpose | Extends |
|------|------|---------|---------|
| [Page Name] | Card/List/Document | [Purpose] | [Base page if extension] |
### User Flows
1. **[User Task]**: [Navigation path and steps]
## 6. Integration Points
### Dependencies
```json
[List key dependencies from app.json]
| Event | Publisher | Purpose |
|---|---|---|
| OnBefore[Action] | [Standard Codeunit] | [Why subscribed] |
| Event | Purpose | When to Subscribe |
|---|---|---|
| OnBefore[CustomAction] | [Purpose] | [Use cases for consumers] |
Problem: [What problem was being solved]
Decision: [What was decided]
Rationale: [Why this approach]
Trade-offs: [What was given up]
[Same structure]
src/[FeatureFolder]/src/[ProcessingFolder]/src/[APIFolder]/[EventSubscriber]# Build project: agent mcp__al__al_build, or VS Code "AL: Package"
# Download symbols: agent mcp__al__al_downloadsymbols, or VS Code "AL: Download Symbols"
# Run tests: aldc.yaml -> testing.runner, or VS Code Test Explorer (human)
# Generate permissions: VS Code "AL: Generate permission set" (human)
Maintenance: Update this file when:
Usage: AI assistants should load this file first when providing assistance on this project.
### 7. Validation Gates
**Before finalizing:**
- ✅ File is under 500 lines for quick loading
- ✅ All sections have actual content (remove empty sections)
- ✅ Links to code examples are accurate
- ✅ Metadata from app.json is correct
- ✅ Architecture diagrams are clear
- ✅ Navigation paths are tested
### 8. Placement & Integration
**Where to create:**
- Place `context.md` at project root (next to app.json)
- If multiple projects, create in each project root
**Git configuration:**
```gitignore
# Add to .gitignore if context contains sensitive info:
# context.md
README integration: Update README.md to reference context.md:
## For AI Assistants
See [context.md](./context.md) for complete project context.
Deliver:
context.md file at project rootA successful context.md enables:
What SKILL.md sets; muted values are Claude Code's defaults
25 skills in this plugin
/al-buildBuild, package, and deploy AL extensions to Business Central environments. ALDC workflow (Copilot prompt al-build); invoke explicitly./al-initializeInitialize AL development environment and workspace for Business Central. ALDC workflow (Copilot prompt al-initialize); invoke explicitly./al-memory-createGenerate or update memory.md file tracking decisions, changes, and learnings throughout project development for continuity across sessions. ALDC workflow (Copilot prompt al-memory.create); invoke explicitly./al-pr-preparePrepare a clean, documented pull request draft for AL features or fixes with summary, testing notes, and checklist. ALDC workflow (Copilot prompt al-pr-prepare); invoke explicitly./architectAL Architecture and Design assistant for Business Central extensions. Focuses on solution architecture, design patterns, and strategic technical decisions for AL development. Use when requirements need architectural analysis, data model design, integration strategy, or pattern evaluation before implementation./auditIndependent, on-demand AL codebase auditor for Business Central. Judges the code against BCQuality (citable knowledge) plus native checks for what BCQuality does not reach. Read-only; advisory verdict. Default scope: objects changed vs main; full codebase on request.npx claudepluginhub javiarmesto/aldc-al-development-collection --plugin aldcOther plugins' skills for the same job