AGENT SKILL
AL 代码分析检查
run-al-code-analysis
通过公开的预发布版 ALTool,对临时项目运行 CodeCop、PerTenantExtensionCop、UICop 或 AppSourceCop 代码分析。
- License 许可
- MIT
- 所属仓库
- microsoft/AL
- 最近更新
- 2026-10-21
- Stars
- ★ 889
- Forks
- 286
01 前言 Front Matter
- name
- run-al-code-analysis
- description
- Runs CodeCop, PerTenantExtensionCop, UICop, or AppSourceCop against a temporary project through the public prerelease ALTool.
- argument-hint
- <project-folder> <analyzer>
03 SKILL.md 正文
- Invoke
verify-prerelease-altool. - Invoke
download-al-symbolswhen the project has symbol references. - Create a temporary
.code-workspacethrough:& $env:ALTOOL_PATH workspace create $workspaceFile $projectPath - Run the requested analyzer with ALTool workspace compile:
Select only the reported analyzer from& $env:ALTOOL_PATH workspace compile $workspaceFile ` --packagecachepath (Join-Path $projectPath '.alpackages') ` --analyzers PTECop ` --outfolder $outputFolder ` --errorlogdirectory $errorLogFolderAppSourceCop,CodeCop,PTECop, orUICop. Use--rulesetwhen the issue supplies one. Never invokealc.exe. - Preserve the exact diagnostics and exit code. A missing analyzer, ruleset, or symbol package is an inconclusive setup failure, not evidence that no diagnostic exists.
- Exercise both the reported case and the nearest valid control case when feasible.
04 同仓库更多 Skills
预发布 ALTool 可执行文件核验
verify-prerelease-altool
验证工作流安装的公开预发布版 ALTool 是否为每一个复现命令所使用的可执行文件。
★ 889
AL 端到端生产路径复现
verify-al-e2e
通过工作流安装的公开预发布版 ALTool 和 BCInsider 沙箱,编排最小化的生产路径 AL 问题复现。
★ 889
AL 测试代码单元运行
run-al-tests
通过公开的预发布版 ALTool,对已预置的 BCInsider 沙箱运行已发布的 AL 测试代码单元(codeunit)。
★ 889
AL MCP 工具调用
run-al-mcp-tool
通过工作流安装的预发布版 ALTool 调用一个安全的 AL MCP 工具操作,用于独立复现 MCP 和编辑器工具相关的问题。
★ 889
AL 应用发布
publish-al-app
通过公开的预发布版 ALTool,将编译好的 AL 应用发布到已配置的 BCInsider 沙箱。
★ 889
AL 符号包下载
download-al-symbols
通过已安装的预发布版 ALTool,为临时 AL 复现项目下载精确的 Business Central 符号包。在编译任何 app.json 引用了 platform、application 或依赖包的项目之前使用。
★ 889