agentleFS
javiarmestojaviarmesto/ALDC-AL-Development-Collection/.claude/skills/al-build/SKILL.md

al-build

Skill115 starsChanged 12 days agoMITView on GitHub

Build, package, and deploy AL extensions to Business Central environments. ALDC workflow (Copilot prompt al-build); invoke explicitly.

The file

Show its rules and text

We split this skill into the rules it gives an agent

17 rules. About 0 are common, 8 are distinctive, and 9 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 9

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Ask and confirm with the user before proceeding.

    line 43
  2. Very specific:

    Build: Use al_build to compile the project

    line 49
  3. Very specific:

    Deploy: Use al_incremental_publish for rapid iteration (requires approval)

    line 51
  4. Distinctive:

    Verify: Check for any compilation errors

    line 52
  5. Very specific:

    Build: Use al_build with full validation

    line 55
  6. Very specific:

    Package: Create .app file with al_package

    line 56
  7. Very specific:

    Deploy: Use al_publish to deploy with debugging enabled (requires approval)

    line 58
  8. Distinctive:

    Test: Ensure all unit tests pass

    line 59
  9. Very specific:

    Build: Use al_build with strict validation

    line 62
  10. Very specific:

    Package: Create release package with al_package

    line 63
  11. Distinctive:

    Validation: Verify package integrity and dependencies

    line 64
  12. Distinctive:

    All production changes require explicit human authorization

    line 68
  13. Very specific:

    Use al_publish_existing_extension when deploying pre-built .app files

    line 71
  14. Distinctive:

    Verify package compatibility with target environment

    line 72
  15. Very specific:

    Use al_full_package when creating packages with all dependencies

    line 75
  16. Distinctive:

    Verify extension appears in Extension Management

    line 89
  17. Distinctive:

    Check all functionality works as expected

    line 90

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Claude Code adapter — generated by scripts/sync-plugin-support.js, do not edit. Canonical source: prompts/al-build.prompt.md (sha256 126f6ff7fda0215517ead6a1a0c9996d8181c5117abdef8f52c269724284989d). This workflow was written for @workspace use … in GitHub Copilot Chat. Apply these harness mappings and treat everything else as binding:

Copilot surface in the contractClaude Code equivalent
#runSubagent / runSubagent / agents:The Task tool with subagent_type: "aldc:<agent>"; one invocation carries everything inline (subagents are stateless)
#askQuestions / vscode/askQuestionsAskUserQuestion (main session only; a subagent returns its questions in its structured output)
handoffs: entries, and send: false on oneNo equivalent — the gate is yours to keep. In Copilot a handoff is a button the human clicks, and send: false additionally hands them the prompt to review before it is sent; the host supplies the approval. Claude Code delegates through the Task tool, with no click and no review step. So never auto-delegate: present your output, get explicit approval, and only then delegate or route to another role. The handoff's routing is carried by the plugin's role entry skills; its human gate is carried by this rule
@al-architect, @al-spec-agent, @al-conductor, @al-developer, @al-developer-reviewer, @al-triage, @al-presales, @al-agent-builder, @dredd/aldc:architect, /aldc:spec, /aldc:conduct, /aldc:develop, /aldc:review, /aldc:triage, /aldc:presales, /aldc:agent-builder, /aldc:audit (or claude --agent aldc:<agent>)
@workspace use <workflow>/aldc:<workflow> with dots replaced by dashes (al-spec.create -> /aldc:al-spec-create); already rewritten below
${input:Name} prompt variablesTake the value from $ARGUMENTS; ask through AskUserQuestion when missing. Already rewritten below as <Name from $ARGUMENTS>
execute / runInTerminal, AL compilation or symbol restoreDeveloper/Implementer: discovered official AL MCP mcp__al__al_compile / mcp__al__al_build / mcp__al__al_downloadsymbols, or an installed ALTool/AL-Go runner through Bash. Use the correct App/Test project; unavailable capabilities are never simulated. Publishing retains its separate human/CI gate and is not granted by this adapter
edit, read/readFile, search, #codebaseEdit/Write, Read, Grep/Glob
#changes, changes, search/changesRead-only git status / git diff through Bash only where granted; otherwise read the caller-supplied diff artifact or return the missing evidence request
read/problems, al_get_diagnostics, #testFailureDiscovered mcp__al__al_getdiagnostics for the explicit project, or actual compiler/test output. Diagnostics are not evidence of a fresh compile or executed tests. No result: record not-run / unavailable
al-symbols-mcp/*, upstash/context7/*, microsoft-learn/*, microsoft-docs/*Tools named mcp__al-symbols-mcp__*, mcp__context7__*, mcp__microsoft-docs__* (or the mcp__plugin_aldc_… form). A server that is not loaded is unavailable; do not simulate it
sshadowsdk.al-lsp-for-agents/*, #usages, semantic definition/reference queriesClaude LSP with the existing AL LSP for Agents companion; discover the actual operations and project context first. VS Code tool identifiers are not Claude tool names
ms-dynamics-smb.al/*, vscode.mermaid-chat-features/*VS Code tool identifiers do not exist here. Use only a separately discovered Claude capability; never rename community tools as Microsoft tools
vscode/memory, vscode/*Not available; keep state in the canonical .claude/plans/ artifacts of the project
todoTodoWrite for in-session tracking; durable state stays in .claude/plans/
"load skill-x"The Skill tool (aldc:<skill-name>) or read ${CLAUDE_PROJECT_DIR}/.claude/skills/<skill-name>/SKILL.md
.github/instructions/*.instructions.md (applyTo)${CLAUDE_PROJECT_DIR}/.claude/rules/*.md (paths:); /aldc:al-initialize copies them to the project's .claude/rules/ for auto-apply in the main session; inject inline for subagents exactly as the contract says
.github/skills/, .github/plans/…, docs/templates/${CLAUDE_PROJECT_DIR}/.claude/skills/, .claude/plans/… (project-owned, aldc.yaml -> plans.root), ${CLAUDE_PROJECT_DIR}/claude-plugin/docs/templates/; already rewritten below
python … runtime helpers, --aldc-rootPaths already point at ${CLAUDE_PLUGIN_ROOT}; use python or python3, whichever exists (stdlib only)
aldc.yaml${CLAUDE_PROJECT_DIR}/aldc.yaml when the project has one, otherwise ${CLAUDE_PROJECT_DIR}/claude-plugin/aldc.yaml

Read ${CLAUDE_PROJECT_DIR}/claude-plugin/docs/claude-al-tooling.md for this surface’s LSP/MCP bindings, then ${CLAUDE_PROJECT_DIR}/.claude/skills/skill-migrate/references/cli-al-tools.md for the shared role/evidence contract. The Claude guide supersedes older capability-availability examples, never role responsibilities or human gates.

Build and Deploy AL Extension

Your goal is to build and deploy the AL extension for <DeploymentType from $ARGUMENTS> environment.

Select Deployment Strategy

Based on #codebase select the appropriate deployment strategy Ask and confirm with the user before proceeding.

Deployment Types

Based on the deployment type, use the appropriate strategy:

Development Environment

  1. Build: Use al_build to compile the project
  2. Review: Present build results for human approval
  3. Deploy: Use al_incremental_publish for rapid iteration (requires approval)
  4. Verify: Check for any compilation errors

Testing Environment

  1. Build: Use al_build with full validation
  2. Package: Create .app file with al_package
  3. Review: Present package details for human approval
  4. Deploy: Use al_publish to deploy with debugging enabled (requires approval)
  5. Test: Ensure all unit tests pass

Production Environment

  1. Build: Use al_build with strict validation
  2. Package: Create release package with al_package
  3. Validation: Verify package integrity and dependencies
  4. Documentation: Generate deployment checklist and present for review
  5. Human Gate: MANDATORY - Manual approval required before any production action
    • Note: Automated deployment to production is intentionally disabled as safeguard
    • All production changes require explicit human authorization

Existing Package Deployment

  • Use al_publish_existing_extension when deploying pre-built .app files
  • Verify package compatibility with target environment

Full Dependency Package

  • Use al_full_package when creating packages with all dependencies
  • Useful for offline installations or isolated environments

Error Handling

Monitor the output for:

  • Compilation errors
  • Dependency conflicts
  • Publishing failures
  • Permission issues

Post-Deployment Verification

After deployment:

  1. Verify extension appears in Extension Management
  2. Check all functionality works as expected
  3. Validate permissions are correctly applied
  4. Monitor for any runtime errors

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.