mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-10-06 23:26:55 +01:00
Rename the host-facing skill to al-code-review, reduce it to a thin Entry adapter, document the architecture, and validate host skill metadata. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: af96bb3d-893a-48a2-8298-c8f4271c162c
2.7 KiB
2.7 KiB
| name | description |
|---|---|
| al-code-review | Review Business Central AL code changes using BCQuality's curated rules. Use for an AL pull request, working-tree diff, branch, or individual AL file when BCQuality is installed as a standalone plugin. |
AL code review
This is BCQuality's host-native adapter for standalone plugin installations. It is not a BCQuality action skill and contains no review or routing policy. Its only responsibility is to translate the caller's request into an Entry task context and execute the resulting dispatch.
Execute
- Resolve
PLUGIN_ROOTto the directory containing this plugin's rootplugin.json. This file isPLUGIN_ROOT/skills/al-code-review/SKILL.md; when the host does not expose the plugin root, resolve it two levels above this file. - Build the
task-contextrequired byPLUGIN_ROOT/skills/entry.md:- Copy the caller's actual request verbatim into
goal; do not replace a focused request such as "review performance" with a generic full-review goal. - Set
inputs-availableto the inputs actually available to the review, normallypr-difffor changes orfile-pathfor one file. - Set
technologies: [al]when the input is known to be AL. - Pass
bc-version,countries, andapplication-areaonly when supplied or reliably determined. - If
BCQUALITY_ENABLED_LAYERSis set, split its comma-separated value and pass the trimmed, non-empty entries asenabled-layers; otherwise omit the field and let Entry apply its default. - If
BCQUALITY_DISABLED_SKILLSis set, split its comma-separated value and pass the trimmed, non-empty entries asdisabled-skills; otherwise omit the field.
- Copy the caller's actual request verbatim into
- Read and execute
PLUGIN_ROOT/skills/entry.mdexactly as written, including its Preparation step. Entry is authoritative for index freshness, routing, defaults, and failure behavior; this adapter must not duplicate or weaken those rules. - Follow Entry's How the agent uses the dispatch instructions. Invoke only
the returned action skills, pass each dispatch entry's exact input subset,
and read
PLUGIN_ROOT/skills/read.mdandPLUGIN_ROOT/skills/do.mdon demand. When a dispatched super-skill requests isolated leaf execution and the host supports child contexts, use them. - Return each dispatched action skill's findings report unchanged. If Entry
returns
no-matchorfailed, return its dispatch record unchanged.
The internal microsoft/skills/review/al-code-review.md action skill remains
the canonical coordinator for a broad AL review. Entry decides whether that
super-skill or a narrower domain skill applies; this host adapter never chooses
between them.