debug-module

debug-module is a command for Claude Code from antosubash/SimpleModule. It costs 0 tokens per session (1,455 once invoked), scanned A, original, MIT.

Diagnose why a module isn't being discovered or working correctly in SimpleModule.

Command for Claude Code

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.

agentmods
npx agentmods add commands/antosubash/simplemodule/debug-module
Clone the repo
git clone --depth 1 https://github.com/antosubash/SimpleModule

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 debug-module

README.md
[![agentmods](https://agentmods.dev/badge/commands/antosubash/simplemodule/debug-module.svg)](https://agentmods.dev/commands/antosubash/simplemodule/debug-module)
Your own site
<a href="https://agentmods.dev/commands/antosubash/simplemodule/debug-module"><img src="https://agentmods.dev/badge/commands/antosubash/simplemodule/debug-module.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,455 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.01455
Opus 5 $0.00000 $0.00727
Sonnet 5 $0.00000 $0.00291
Haiku 4.5 $0.00000 $0.00145

Measured today against content hash 8f99bb43b26d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

debug-module 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 today.

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/commands/debug-module.md · 138 lines

How it starts

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

Diagnose why a module isn't being discovered or working correctly in SimpleModule.

If no module name was supplied as an argument, ask: "Which module would you like to debug? (e.g. Products, Orders)"

Work through all 7 checks below in order. For each check, mark it ✅ pass / ❌ fail / ⚠️ warning, then apply the described fix before moving to the next check. Do not skip checks even if earlier ones fail.

Status marker meanings: ✅ = passes all requirements · ❌ = fails, fix required · ⚠️ = exists and will work, but has a non-critical configuration difference (e.g., SM00xx warnings but no errors, or a file exists but a setting differs from the expected default).

Replace {Name} with the module name throughout.


Check 1 — Module class

Read modules/{Name}/src/SimpleModule.{Name}/{Name}Module.cs.

Verify:

  • The file exists.
  • The class is decorated with [Module(...)].
  • The class implements IModule.
  • The class is public.
  • The class is not sealed.

Fix if failing: Create or correct the file so the class is public, non-sealed, carries [Module(...)], and implements IModule.


Check 2 — Contracts SDK

Read modules/{Name}/src/SimpleModule.{Name}.Contracts/SimpleModule.{Name}.Contracts.csproj.

Verify:

  • The file exists.
  • Sdk="Microsoft.NET.Sdk" (must NOT be Microsoft.NET.Sdk.Razor or Microsoft.NET.Sdk.Web).

Fix if failing: Set the Sdk attribute to Microsoft.NET.Sdk.


Check 3 — Implementation SDK + FrameworkReference

Read modules/{Name}/src/SimpleModule.{Name}/SimpleModule.{Name}.csproj.

Verify:

  • The file exists.
  • Sdk="Microsoft.NET.Sdk.StaticWebAssets" (the implementation project ships the module's static frontend bundle; must NOT be Microsoft.NET.Sdk.Razor or Microsoft.NET.Sdk.Web).
  • Contains <FrameworkReference Include="Microsoft.AspNetCore.App" />.

Fix if failing: Set Sdk="Microsoft.NET.Sdk.StaticWebAssets" if it is wrong. If <FrameworkReference Include="Microsoft.AspNetCore.App" /> is missing, add it inside an <ItemGroup>.

Read the full file on GitHub · 138 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. today First seen · 138 lines · 0 tokens per session scan A 8f99bb43b26d

Subscribe to this mod's changes

debug-module is a command published in the GitHub repository antosubash/SimpleModule (5 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,455 tokens. 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-09-04.