skill-debug

skill-debug is a skill for Claude Code from javiarmesto/ALDC-AL-Development-Collection. It costs 28 tokens per session (2,239 once invoked), scanned A, original, MIT.

A guide to diagnosing Business Central problems such as runtime errors, logic bugs, intermittent failures, slow code, and configuration issues.

In plain words
What is it for?
Use it for standard debugging, snapshot debugging, CPU profiling, telemetry analysis, and investigating publishing, authentication, or event-subscriber issues.
Why use it?
It helps match each problem with an appropriate debugging method and trace the underlying cause.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it for standard debugging, snapshot debugging, CPU profiling, telemetry analysis, and investigating publishing, authentication, or event-subscriber issues.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/javiarmesto/aldc-al-development-collection/skill-debug
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add javiarmesto/ALDC-AL-Development-Collection --skill skill-debug
Clone the repo
git clone --depth 1 https://github.com/javiarmesto/ALDC-AL-Development-Collection

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for skill-debug

README.md
[![agentmods](https://agentmods.dev/badge/skills/javiarmesto/aldc-al-development-collection/skill-debug/github.svg)](https://agentmods.dev/skills/javiarmesto/aldc-al-development-collection/skill-debug)
Your own site
<a href="https://agentmods.dev/skills/javiarmesto/aldc-al-development-collection/skill-debug"><img src="https://agentmods.dev/badge/skills/javiarmesto/aldc-al-development-collection/skill-debug/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for skill-debug

Your own site · 80×15
<a href="https://agentmods.dev/skills/javiarmesto/aldc-al-development-collection/skill-debug"><img src="https://agentmods.dev/badge/skills/javiarmesto/aldc-al-development-collection/skill-debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,239 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00028 $0.02239
Opus 5 $0.00014 $0.01120
Sonnet 5 $0.00006 $0.00448
Haiku 4.5 $0.00003 $0.00224

Measured 9d ago against content hash 1cb52bafa2fa, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

skill-debug scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/skill-debug/SKILL.md · 251 lines

How it starts

The opening of the file, as written. The whole thing — 251 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Skill: AL Debugging & Diagnostics

Purpose

Systematic diagnosis and root cause analysis for AL Business Central issues: runtime errors, logic bugs, intermittent failures, performance bottlenecks, and configuration problems.

When to Load

This skill should be loaded when:

  • A runtime error, exception, or unexpected behavior is reported
  • A logic bug needs root cause analysis (not just a symptom fix)
  • An intermittent issue needs snapshot capture
  • A performance bottleneck needs CPU profiling
  • Configuration issues (auth, symbols, build, publishing) block development
  • An event subscriber is not firing as expected

Core Patterns

Pattern 1: Choose Debugging Strategy

Select the right tool before starting:

Issue Type Strategy Tool
Consistent runtime error Standard debugger VS Code AL debugger (attach, no publish) — human step
Already deployed code Debug without publish VS Code AL debugger (attach, no publish) — human step
Rapid dev cycle Incremental publish VS Code RAD publish (AL: Publish without Debugging) — human step
Intermittent / hard-to-reproduce Snapshot debugging VS Code snapshot debugging — human step
Slow performance CPU profiling VS Code CPU profiler — human step
Auth / symbols / build Configuration troubleshoot See Workflow Step 2b
Copilot AI feature Agent session debug launch.json with clientType: Agent

Pattern 2: Data Flow Tracing

Scenario: "Value is wrong after posting"

1. Set breakpoint at final location (where value is wrong)
2. Work backwards to find where value is set
3. Use `usages` tool to find all assignments
4. Set breakpoints at each assignment point
5. Step through to find which execution path is taken
6. Inspect conditions and variable states at each point

Pattern 3: Event Subscriber Not Firing

Scenario: "My event subscriber doesn't execute"

1. Verify subscriber signature exactly matches publisher (name, parameters, types)
2. Check SkipOnMissingLicense and SkipOnMissingPermission attributes
3. Confirm the extension containing the publisher is active and published
4. Set breakpoint inside subscriber body
5. Verify the publisher event is actually being raised (breakpoint in publisher)
6. Check if IsHandled = true is set before your subscriber runs
7. Inspect subscriber execution order (EventPriority)

Read the full file on GitHub · 251 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 251 lines · 28 tokens per session scan A 1cb52bafa2fa

Subscribe to this mod's changes

skill-debug is a skill published in the GitHub repository javiarmesto/ALDC-AL-Development-Collection (103 stars, last pushed 2d ago), licensed MIT. It adds 28 tokens to every session and 2,239 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories