원클릭으로
init-context
Initialize project context document for faster AL development workflows. One-time setup that reduces workflow runtime by 40-60%.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Initialize project context document for faster AL development workflows. One-time setup that reduces workflow runtime by 40-60%.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Run mutation testing against an AL project using al-mutate (MSDyn365BC.AL.Mutate). Identifies test gaps by applying AST-based mutations and checking whether the test suite catches them via al-runner. No BC instance required. Produces mutations.json and report.md.
Download AL symbol packages (.app files) for the current project's dependencies from Microsoft NuGet feeds. Reads app.json to determine required packages.
Look up Business Central base application source code (tables, pages, codeunits, events) from MSDyn365BC.Sandbox.Code.History. Use this to verify object structures, find event publishers, or check field definitions.
Quick reference for AL build pipeline. Auto-load when compilation, deployment, or testing is mentioned. For running commands, use /compile, /publish, or /run-tests.
Compile the AL project using al-compile. Runs analyzers, reports errors, and writes diagnostics to the task folder.
Implement AL/BC solution using parallel development agents and 4-specialist review team. Spawns N developer agents for parallel modules, then 4 reviewer agents for comprehensive code review.
| name | init-context |
| description | Initialize project context document for faster AL development workflows. One-time setup that reduces workflow runtime by 40-60%. |
You are an engineering manager orchestrating the creation of a shared project context document. This document accelerates all downstream workflows by giving agents pre-indexed knowledge of the codebase.
File: .dev/project-context.md (at the project root, NOT inside a task subfolder — this is shared across all workflows).
Check if .dev/project-context.md already exists.
Spawn a subagent (medium thoroughness) to explore the AL project. The agent must document:
Instruct the agent to be thorough but not exhaustive — aim for the information another developer (or agent) would need to start contributing within minutes.
Review the generated context for:
If gaps are found, send the agent back to fill them.
Present the user with a summary:
The generated .dev/project-context.md must follow this structure:
# Project Context
> Auto-generated by init-context workflow. Last updated: YYYY-MM-DD HH:MM.
> Do not edit manually — re-run the init-context workflow to update.
## Project Overview
- **App Name**: (from app.json)
- **Publisher**: (from app.json)
- **Version**: (from app.json)
- **Runtime**: (from app.json)
- **Target**: (from app.json)
- **Brief Description**: One paragraph summarizing what this app does.
## Directory Structure
project-root/ ├── src/ │ ├── ... ├── test/ │ ├── ... ├── .dev/ │ └── project-context.md ← you are here ├── app.json └── ...
## Key Objects Registry
| Type | ID | Name | Purpose |
|------|----|------|---------|
| table | 50100 | "Example Table" | Stores ... |
| page | 50100 | "Example Card" | Card page for ... |
| codeunit | 50100 | "Example Mgt." | Business logic for ... |
| ... | ... | ... | ... |
## Architectural Patterns
### Validation
How field validation is implemented (ValidatingTrigger, OnValidate subscribers, etc.).
### Extension Pattern
How table/page extensions are structured and named.
### Error Handling
Error vs. FieldError usage, try-functions, error messages pattern.
### Event Subscriptions
Subscriber naming conventions, which publishers are used.
### Permissions
Permission set structure, how permissions are assigned.
## Base App Integration Points
### Extended Tables
| Base Table | Extension Object | Fields Added |
|-----------|-----------------|--------------|
| ... | ... | ... |
### Subscribed Events
| Publisher Object | Event | Subscriber Codeunit | Purpose |
|-----------------|-------|--------------------:|---------|
| ... | ... | ... | ... |
### Called Procedures
Notable calls to base app procedures and their context.
## Common Code Locations
| Category | Path / Object | Notes |
|----------|--------------|-------|
| Business logic | ... | ... |
| UI logic | ... | ... |
| Utilities | ... | ... |
| Setup / configuration | ... | ... |
## Dependencies
| App Name | Publisher | Version | Purpose |
|----------|----------|---------|---------|
| (from app.json dependencies) | ... | ... | ... |
## Testing Infrastructure
- **Test codeunits**: List with object IDs and what they test.
- **Test helpers / libraries**: Any shared test utilities.
- **Test data setup**: How test data is created.
- **How to run tests**: Commands or configuration needed.
## Recent Changes Log
| Date | Commit / Change | Summary |
|------|----------------|---------|
| (last 5-10 relevant commits) | ... | ... |
## Instructions for Agents
- Always read this file before starting work on a task.
- If this file is more than 7 days old, suggest running init-context to refresh it.
- Object IDs in the registry are authoritative — use the next available ID when creating new objects.
- Follow the architectural patterns documented above; do not invent new patterns without explicit approval.
- Check Base App Integration Points before modifying extension objects.