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.
npx agentmods add commands/mort-lab/excel-mcp/debug-rcagit clone --depth 1 https://github.com/mort-lab/excel-mcpWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.00592 |
| Opus 5 | $0.00000 | $0.00296 |
| Sonnet 5 | $0.00000 | $0.00118 |
| Haiku 4.5 | $0.00000 | $0.00059 |
Grade A, and why
debug-RCA scanned grade A with 1 finding 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 2d 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- Test with curl/Postman first This is a copy
100% identical to debug-RCA — 220 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 109 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Debug Issue
Systematically debug and diagnose the reported problem.
Problem Description
$ARGUMENTS
Debugging Process
-
Reproduce the Issue
- Get exact steps to reproduce
- Verify you can see the same problem
- Note any error messages or logs
- Document the expected vs actual behavior
-
Gather Information
# Check recent changes git log --oneline -10 # Look for error patterns in logs # Search for related error messages -
Isolate the Problem
- Binary Search: Comment out code sections to narrow down
- Git Bisect: Find when the bug was introduced
- Logging: Add strategic log statements
- Debugger: Set breakpoints if applicable
-
Common Debugging Strategies
For Runtime Errors
- Read the full stack trace
- Identify the exact line causing the error
- Check variable values at that point
- Verify assumptions about data types
For Logic Errors
- Add print/log statements to trace execution
- Verify each step produces expected results
- Check boundary conditions
- Test with minimal reproducible example
For Performance Issues
- Add timing measurements
- Check for N+1 queries
- Look for inefficient algorithms
- Profile if necessary
For Integration Issues
- Verify external service is accessible
- Check authentication/credentials
- Validate request/response formats
- Test with curl/Postman first
-
Root Cause Analysis
- Why did this happen?
- Why wasn't it caught earlier?
- Are there similar issues elsewhere?
- How can we prevent this class of bugs?
-
Implement Fix
- Fix the root cause, not just symptoms
- Add defensive programming if needed
- Consider edge cases
- Keep fix minimal and focused, follow KISS
-
Verify Resolution
- Confirm original issue is fixed
- Check for regression
- Test related functionality
- Add test to prevent recurrence
-
Document Findings
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.
- 2d ago First seen · 109 lines · 0 tokens per session scan A 5e23896bfbe0
debug-RCA is a command published in the GitHub repository mort-lab/excel-mcp (5 stars, last pushed 24d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 592 tokens. A static security scan graded it A with 1 finding (makes network calls). It is 100% identical to debug-RCA, differing in 220 lines, and is treated as a copy.
Other commands, from other repositories
pr-address
Address PR review comments on current branch.
enforce_standards
CRITICAL: Before running the code standards enforcer, we must prepare the stack properly and abort if there are merge conflicts.
icpg-bootstrap
Infer ReasonNodes from existing git commit history. One-time setup for existing codebases.
statusbar-style
Switch the status-bar style (classic / capsule / hairline).
run
Command "run" from ErisPulse/ErisPulse, covering erispulse.cli.commands.run 模块, 模块概述, 类列表, class reloadhandler(filesystemeventhandler) and class runcommand(command).
init
Command "init" from ErisPulse/ErisPulse, covering erispulse.cli.commands.init 模块, 模块概述, 函数列表, validateprojectname(name: str) and 类列表.