bc-ext-advisor
Guide a Business Central user through preparing a high-quality extensibility request and filing it as a GitHub issue in microsoft/ALAppExtensions. The skill classifies the request (event, external access, enum, or general enhancement), gathers the mandatory information for that type, checks it against the extensibility rules and blockers, drafts the issue against the standard template, and — only after explicit approval — submits it with the `gh` CLI. It is advisory and read-only against workspace code: it never edits, builds, or runs AL source. It applies only to Microsoft base-application AL objects. Runs interactively in VS Code Copilot Chat (agent mode) and the Copilot CLI. TRIGGER when a user wants to request an event, make a member public/global, add or extend an enum, or otherwise ask Microsoft to make base Business Central code more extensible. DO NOT TRIGGER for pure bug reports, for changes to non-Microsoft (custom) objects, or to write or fix AL code.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 61
- Forks
- 34
01 前言 Front Matter
- name
- bc-ext-advisor
- description
- Guide a Business Central user through preparing a high-quality extensibility request and filing it as a GitHub issue in microsoft/ALAppExtensions. The skill classifies the request (event, external access, enum, or general enhancement), gathers the mandatory information for that type, checks it against the extensibility rules and blockers, drafts the issue against the standard template, and — only after explicit approval — submits it with the `gh` CLI. It is advisory and read-only against workspace code: it never edits, builds, or runs AL source. It applies only to Microsoft base-application AL objects. Runs interactively in VS Code Copilot Chat (agent mode) and the Copilot CLI. TRIGGER when a user wants to request an event, make a member public/global, add or extend an enum, or otherwise ask Microsoft to make base Business Central code more extensible. DO NOT TRIGGER for pure bug reports, for changes to non-Microsoft (custom) objects, or to write or fix AL code.
- allowed-tools
- [ "view", "grep", "glob", "ask_user", "powershell", "run_vscode_command" ]
02 资源文件 27
- 参考文档knowledge/examples/enum-request-good.md935 B
- 参考文档knowledge/examples/event-request-bad.md995 B
- 参考文档knowledge/examples/event-request-good.md899 B
- 参考文档knowledge/examples/event-request.ishandled-good.md1.4 KB
- 参考文档knowledge/examples/extensibility-enhancement-good.md1.0 KB
- 参考文档knowledge/examples/request-for-external-good.md1.5 KB
- 参考文档knowledge/general-guidance.md5.0 KB
- 参考文档knowledge/request_requirements/enum-request.md1.5 KB
- 参考文档knowledge/request_requirements/event-request.ishandled.md1.1 KB
- 参考文档knowledge/request_requirements/event-request.md856 B
- 参考文档knowledge/request_requirements/extensibility-enhancement.md810 B
- 参考文档knowledge/request_requirements/general.md1.7 KB
- 参考文档knowledge/request_requirements/request-for-external.md1.1 KB
- 参考文档knowledge/request-types.md1.9 KB
- 参考文档knowledge/rules/enum-request.md361 B
- 参考文档knowledge/rules/event-request.ishandled.md3.6 KB
- 参考文档knowledge/rules/event-request.md4.1 KB
- 参考文档knowledge/rules/general.md2.4 KB
- 参考文档knowledge/rules/request-for-external.md521 B
- 参考文档README.md4.3 KB
- 参考文档references/cli-run.md4.9 KB
- 参考文档references/event-flow.md4.6 KB
- 参考文档references/failure-modes.md5.3 KB
- 参考文档references/logs-and-traces.md4.3 KB
- 参考文档references/web-api.md3.4 KB
- 脚本scripts/Submit-ExtensibilityRequestDraft.ps13.7 KB
- 参考文档templates/extensibility-request.md1.8 KB
03 SKILL.md 正文
BC Extensibility Advisor Skill
Advisory skill that helps a Business Central user prepare an extensibility request and file it as a
GitHub issue in microsoft/ALAppExtensions. It prepares and, on explicit approval, submits the
issue; it gives no final approval — a human maintainer decides.
The knowledge that drives every decision lives in the files below. Read each one where the steps direct, follow it as written, and never paste its raw text to the user — translate it into plain questions and guidance.
| File | Role |
|---|---|
knowledge/general-guidance.md |
Communication, eligibility, and how to gather information. |
knowledge/request-types.md |
The request types, their subtypes, and how to classify. |
knowledge/request_requirements/ |
Information required per type and, where needed, subtype. |
knowledge/rules/ |
Blockers, warnings, alternatives, and implementation guidance per type. |
knowledge/examples/ |
Worked good/bad requests per type. |
templates/extensibility-request.md |
The issue structure to draft against. |
Operating boundaries
- Advisory and read-only. Never edit, create, build, publish, or run AL source. The only write action is creating the approved issue in Step 7.
- GitHub via
gh. The one GitHub write is creating that issue. Never modify other issues. If aghcommand fails with an authentication error, stop and tell the user to rungh auth login.
Interactive prompting
- When an
ask_usercapability is available in an interactive host, prefer popup-style structured questions for short, bounded inputs instead of open chat. - Use popup questions for small batches of missing mandatory fields when each answer is short and unambiguous.
- Popup questions may also be free-text with no predefined answers when a single focused narrative answer is needed.
- Use free-text popup questions for one concise narrative field at a time, such as the business problem, desired outcome, current limitation, or why an alternative fell short.
- Use normal chat for longer narrative discovery, multi-part explanations, or answers that are likely to span multiple paragraphs.
- Keep each popup concise and specific. Prefer one decision per popup unless a small grouped batch clearly reduces back-and-forth without mixing phases.
Core Principles
- First understand the user's business need and desired outcome.
- Focus on the problem before discussing implementation details.
- Do not suggest alternatives, workarounds, or existing extensibility points until the requested change is fully understood.
- Always discuss the user's requested solution before evaluating alternatives.
- Never submit a request without explicit user approval.
Workflow
1. Load Guidance
Read knowledge/general-guidance.md and follow it throughout the conversation.
2. Classify the Request
Read knowledge/request-types.md.
Identify:
- Target object
- Intended change
- Request type
- Request subtype (if applicable)
If classification is uncertain, ask the user for clarification before proceeding. If the uncertainty is between a small number of known request types or subtypes, prefer a popup question with those options.
3. Load Requirements and Rules
Read:
knowledge/request_requirements/general.mdknowledge/rules/general.md
Then read all available type/subtype-specific files from:
knowledge/request_requirements/knowledge/rules/
Only load files relevant to the classified type and subtype. Missing files are not blockers.
4. Understand the Requirement
Work with the user to understand:
- The business problem
- The desired outcome
- The exact behavior they want changed
- Why the change is needed
- Ask only for missing mandatory requirement details.
- Do not ask alternatives questions in this step.
When mandatory details are short and structured, prefer popup questions. When one focused explanatory field is missing, a free-text popup is acceptable. When details require broader context or iterative explanation, ask in normal chat.
Gather all mandatory information required for the selected request type. If necessary, summarize your understanding and ask the user to confirm before moving on.
5. Evaluate Feasibility
Once the requirement is understood (Step 4 is complete):
- Check for blockers.
- Check for unsupported scenarios.
- Check for existing extensibility points.
- Check for documented alternatives.
- If alternatives are available suggest them one by one in most probable order, asking the user to confirm whether each was tried and why it fell short.
For each alternative check, use a popup for the yes/no confirmation first, then use normal chat for the explanation only when needed.
6. Draft the Extensibility Request
Create the draft using:
templates/extensibility-request.md
Ensure that:
- All mandatory requirements are satisfied.
- Applicable rules are followed.
- Relevant examples from
knowledge/examples/are used as guidance.
Render the complete draft directly in the chat as formatted Markdown. The draft must be displayed between horizontal separators.
7. Refine with the User
Ask the user to review the draft. Continue refining it based on feedback until the user explicitly approves it. The approved draft becomes the single source of truth for the title and body.
When the draft is ready, prefer a popup approval question before submission.
8. Submit After Approval
Only after explicit user approval:
& ".\.github\skills\bc-ext-advisor\scripts\Submit-ExtensibilityRequestDraft.ps1" `
-Title "<title from approved draft>" `
-Body "<body from approved draft>" `
-Repo "microsoft/ALAppExtensions"
Use the approved draft for both title and body.
9. Confirm Submission
Report the result using this exact format:
Extensibility request <number> (<url>) is created.
04 同仓库更多 Skills
bcbench-example
BC-Bench example skill — a no-op skill that only exists to prove the BC-Bench `plugins` experiment toggle loaded a plugin and made its skill available. USE FOR nothing real; it is a smoke-test marker. DO NOT USE FOR actual Business Central / AL work.
extensibility-request-implement
Implement a single Business Central extensibility request as an AL code change. The request is provided as plain text (a natural-language description of the extension point that is needed, usually a new integration event / event publisher). The skill locates the affected AL code in the current repository, adds the requested extension point following the repository extensibility guidelines, and propagates the change across the W1 base layer and any same-named country/region layer files. It edits only `.al` source files and leaves the changes unstaged in the working tree. No build, no tests, no commit, and no pull request. TRIGGER when the user asks to implement or add an extensibility request / extension point / integration event described in the provided text. DO NOT TRIGGER for bug fixes, for building or testing, or for opening pull requests.
al-test-generation
Guide for creating AL tests for Microsoft Dynamics 365 Business Central. Use this when asked to write, create, or generate AL test codeunits, test procedures, or test automation for Business Central.
al-test-generation
Guide for creating AL tests for Microsoft Dynamics 365 Business Central. Use this when asked to write, create, or generate AL test codeunits, test procedures, or test automation for Business Central.
bc-al-query-mcp
Use when: writing, fixing, validating, or running Business Central AL query objects with bc_data MCP tools (and, optionally, Microsoft Learn MCP docs). Covers AL query syntax, table discovery, schemas, relations, joins, filters, FlowFields, pagination, and read-only data retrieval.
update-agent-harness
Update an agent harness used by BC-Bench. Use when bumping GitHub Copilot CLI or Claude Code, reviewing intervening release notes and breaking changes, curating benchmark-worthy model choices, updating the BC-Bench version, or preparing the release handoff.