debug

debug is a command for Claude Code from mischasigtermans/laravel-altitude. It costs 7 tokens per session (384 once invoked), scanned A, original, MIT.

A command for investigating an existing software error using logs, database or queue information, request traces, and the relevant source code. It classifies the problem before following the error to its location.

In plain words
What is it for?
Diagnosing HTTP, database, queue, and authentication problems, including application logs, failed jobs, requests, exceptions, queries, mail, and stack traces.
Why use it?
It gives a repeatable way to move from an error message to the code and system data that may explain it.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

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/mischasigtermans/laravel-altitude/debug
Clone the repo
git clone --depth 1 https://github.com/mischasigtermans/laravel-altitude

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/mischasigtermans/laravel-altitude/debug.svg)](https://agentmods.dev/commands/mischasigtermans/laravel-altitude/debug)
Your own site
<a href="https://agentmods.dev/commands/mischasigtermans/laravel-altitude/debug"><img src="https://agentmods.dev/badge/commands/mischasigtermans/laravel-altitude/debug.svg" alt="Measured on agentmods" height="20"></a>
Per session 7 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 384 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.1 $0.00007 $0.00384
Opus 5 $0.00003 $0.00192
Sonnet 5 $0.00001 $0.00077
Haiku 4.5 $0.00001 $0.00038

Measured 6d ago against content hash 73f08e34e390, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

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 6d 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.

stubs/commands/debug.md · 79 lines

What it actually says

Debug - Investigate Errors

Investigate errors using available diagnostic tools.

Usage

/debug [error context]

Issue Classification

Error Type?
├── HTTP → Telescope requests, route logs
├── Database → Telescope queries, slow log
├── Queue → failed_jobs, Telescope jobs
└── Auth → Telescope requests, session

Investigation

1. Gather Context

If Herd MCP available (Laravel Herd Pro):

mcp__herd__get-logs                 # Application logs
mcp__herd__get-dumps                # Dump output

If Telescope MCP installed (lucianotonet/laravel-telescope-mcp):

mcp__laravel-telescope__requests    # HTTP with exceptions
mcp__laravel-telescope__exceptions  # Stack traces
mcp__laravel-telescope__queries     # Slow/failed queries
mcp__laravel-telescope__jobs        # Failed jobs
mcp__laravel-telescope__logs        # Application logs
mcp__laravel-telescope__mail        # Email issues

Fallback:

  • Read storage/logs/laravel.log
  • Search for error messages
  • Check failed_jobs table

2. Trace

  • Follow stack trace to file:line
  • Read surrounding code
  • Check related files

3. Report

## Debug Report

**Error:** [Exception] - [message]
**Location:** [file:line]

### Root Cause
[What's failing]

### Fix
[Code change]

Examples

/debug
/debug "500 on checkout"
/debug "jobs stuck"
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. 6d ago First seen · 79 lines · 7 tokens per session scan A 73f08e34e390

Subscribe to this mod's changes

debug is a command published in the GitHub repository mischasigtermans/laravel-altitude (122 stars, last pushed 5mo ago), licensed MIT. It adds 7 tokens to every session and 384 once invoked, about $0.0000 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.