SimpleModule: Command for Claude Code

.claude/commands/debug-module.md

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.

A step-by-step troubleshooting command for finding why a SimpleModule component is not discovered or working. It checks the module class and other required configuration items in order, marking each result.

In plain words
What is it for?
Use it to inspect module files, attributes, interfaces, visibility, and SDK setup when diagnosing a C# module.
Why use it?
It turns a vague module failure into a repeatable checklist and applies fixes before moving to the next check.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is antosubash/SimpleModule's own configuration. It tells Claude Code how to work on SimpleModule itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything SimpleModule configures →

Reuse

Borrowing it

Nothing to install: this file belongs to antosubash/SimpleModule. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/antosubash/SimpleModule/main/.claude/commands/debug-module.md
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/github.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/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 debug-module

Your own site · 80×15
<a href="https://agentmods.dev/commands/antosubash/simplemodule/debug-module"><img src="https://agentmods.dev/badge/commands/antosubash/simplemodule/debug-module.svg" alt="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
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.00000 $0.01455
Opus 5.5 $0.00000 $0.00582
Sonnet 5.5 $0.00000 $0.00291
Haiku 4.5 $0.00000 $0.00145

Measured 1mo ago against content hash 8f99bb43b26d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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/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. 1mo ago 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 19d ago), 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.