Add read-only planning and repository-changing development skills so BCQuality knowledge can guide features, bug fixes, refactors, upgrades, and maintenance before the existing AL review gate runs. Track Microsoft Learn ingestion and add development and BCApps-shaped guidance evaluation fixtures. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 638b66d2-9f06-4f60-8781-808709e1485c
7.9 KiB
| kind | id | version | title | description | inputs | outputs | bc-version | technologies | countries | application-area | guidance-skill | quality-skill | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| action-skill | al-development | 1 | AL development | Implements Business Central AL features, bug fixes, refactors, upgrades, and maintenance changes using BCQuality knowledge. |
|
|
|
|
|
|
microsoft/skills/development/al-development-plan.md | microsoft/skills/review/al-code-review.md |
AL development
Implements a Business Central change in an existing AL repository. Feature work, bug fixing, refactoring, upgrades, and maintenance share one public contract and one quality pipeline; their different investigation disciplines are execution modes within this skill.
Both a writable repository and a development-request are required. A structured request has this shape:
development-request:
kind: auto # feature | bug | refactor | upgrade | maintenance
description: string # optional when plan states the requested outcome
plan: string # optional
acceptance-criteria: [string] # optional
A plain-text request is normalized to kind: auto with the text as description. A plan-only request is valid when the plan states the requested outcome. Return not-applicable without changing files when either input is absent, both description and plan are empty, or the repository is not an AL project.
Source
Read the frontmatter guidance-skill; it owns BCQuality discovery and returns the knowledge constraints for the implementation plan. Inspect the target repository for app.json, existing objects, tests, permission sets, analyzers, build scripts, naming and object-ID conventions, dependencies, target/runtime versions, localization layout, and uncommitted user changes. For bugs, refactors, and upgrades, inspect enough history and surrounding code to establish the behavior being changed.
Relevance
Resolve and pass this context to the guidance-skill:
bc-versionfrom the target application's platform/application/runtime settings or supplied context. For an upgrade, distinguish source and target versions.technologies: [al], plus any additional technology actually required by the request.countriesfromapp.json, workspace configuration, or supplied context.application-areafrom the request and affected objects.
Record unresolved dimensions in the development plan rather than silently substituting broad values. The guidance-skill applies READ's matching semantics and returns any conditional applicability in its report.
Worklist
- Normalize the request, deriving a concise description from a plan-only input, and classify
kind: autoas:featurefor new or intentionally expanded behavior;bugfor observed behavior that contradicts an expected result;refactorfor structural change with no intended behavior change;upgradefor schema, data, dependency, runtime, or application-version migration;maintenancefor bounded development work that fits none of the above. Preserve an explicit valid kind. When repository evidence conflicts with it, record the mismatch and ask for clarification before changing files rather than silently switching disciplines.
- Establish the mode-specific implementation contract:
- Feature: define user-visible behavior and cover data lifecycle, UI/API, permissions, extensibility, upgrade impact, telemetry, and tests where applicable.
- Bug: state expected versus actual behavior, reproduce or otherwise prove the defect, trace the root cause, and define a regression test that fails for that cause.
- Refactor: identify the behavior and public contracts that must remain invariant, plus the checks that establish a before/after baseline.
- Upgrade: identify source and target states, data migration, compatibility, idempotency, and validation requirements.
- Maintenance: define the bounded outcome and the behavior that must not change.
- Treat a supplied plan as an input constraint, not as proof. Reconcile it with repository reality and BCQuality; preserve its intent, correct unsafe assumptions, and record consequential deviations.
- Discover existing implementation patterns and reusable objects before proposing new ones. Preserve repository conventions and current user changes.
- Materialize a
development-plancontaining the classified kind, request, assumptions, affected files and symbols, design or root cause, proposed changes, validation strategy, and acceptance criteria. - Invoke the frontmatter
guidance-skillwith that plan, the repository, and the resolved context. It performs Source, Relevance, and knowledge worklisting independently and read-only. - Require a complete guidance result before editing product code:
completed— use every returned constraint and validation consideration.no-knowledge— returnno-knowledgewithout implementing a Business Central-specific change.not-applicable,partial, orfailed— return the corresponding non-completed outcome without editing product code; preserve its reason inremaining.
- Copy the guidance report's selected paths into the eventual implementation report only when the corresponding constraint materially shaped the implementation. Carry its suppression records forward.
Action
- Record the starting working-tree state so unrelated changes are preserved and excluded from
changes. - Apply the execution mode:
- Feature: implement the smallest complete vertical slice; do not leave placeholder surfaces.
- Bug: reproduce first when feasible, fix the root cause rather than the symptom, keep the patch surgical, and add a regression test.
- Refactor: capture a behavioral baseline, avoid unrelated behavior changes, and prove the declared invariants afterward.
- Upgrade: make migrations rerunnable where required, preserve data and compatibility, and validate both upgraded and fresh-install paths when applicable.
- Maintenance: make only the bounded requested change and preserve surrounding behavior.
- Produce a coherent design that satisfies the implementation contract and every constraint returned by the guidance-skill. Reuse existing abstractions and object ranges. Do not hard-code a Business Central fact in this skill or invent a rule absent from both the repository and reliable platform knowledge.
- Implement the request end to end. Include all surfaces required by the mode, acceptance criteria, and repository conventions. Do not create success-shaped stubs.
- Treat the guidance report as design constraints throughout implementation. Adapt its referenced companion samples to the target codebase; never copy demonstration IDs or names blindly.
- Run the smallest existing build, analyzer, and test commands that cover the change. Fix failures caused by the implementation. Record every command and real outcome in
validation; unavailable checks arenot-run, neverpassed. - Invoke the frontmatter
quality-skillagainst the final implementation diff. Fix all justified knowledge-backedblockerandmajorfindings and concrete defects introduced by this work, then rerun affected validation and review. Preserve the last findings-report inreviewand add avalidationentry withid: "review". If review is disabled or unavailable, recordnot-runand returnpartial. - Verify the persisted files against the implementation contract, acceptance criteria, and mode-specific evidence. If behavior, validation, or review remains incomplete, return
partialand list the exact gap inremaining.
Output
Return one implementation-report conforming to DO. Set plan.kind to the classified execution mode. knowledge lists only articles opened in full and materially used. changes lists only files changed by this skill. completed requires a persisted implementation, passing required validation, and no unresolved blocker or major finding in review.