Skip to content
Agentmart
Submit a tool

systematic-debugging

Scientific root-cause analysis, log inspection, and defect remediation for Monika.

Skill by alakbarr

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/alakbarr-systematic-debugging

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Scientific root-cause analysis, log inspection, and defect remediation for Monika.

Use cases: research

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/systematic-debugging

What's inside

Skill name
systematic-debugging
Description
Scientific root-cause analysis, log inspection, and defect remediation for Monika.
License
MIT
Instructions
38 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Monika Systematic Debugging & Diagnostics Playbook

## 1. 4-Step Scientific Debugging Method
1. **Observe & Capture Telemetry**:
   - Collect exact exception traceback, module name, and state snapshot.
   - Inspect application logs in `logs/` or terminal stdout.
2. **Formulate Falsifiable Hypotheses**:
   - Rank potential failure causes based on empirical telemetry rather than assumptions.
   - Test each hypothesis sequentially (e.g. database schema mismatch vs broker IPC disconnection).
3. **Apply Minimal Surgical Patch**:
   - Resolve the root vulnerability at the narrowest responsible module layer.
   - Never suppress errors with blanket `try...except Exception: pass`.
4. **Prove Resolution**:
   - Execute targeted unit test first, followed by `pytest tests/ -x -q` to guarantee zero regression.

## 2. Common Monika Failure Patterns & Diagnostic SOP

| Failure Symptom | Likely Root Cause | Diagnostic & Resolution SOP |
|:---|:---|:---|
| **Stale H4 Indicator Rejection** | MT5 terminal disconnected or historical bar fetch failed | Check `heartbeat.txt` and MT5 terminal IPC connection. Run `python -m monika.interfaces.cli.main doctor`. |
| **Broker Error 10004 (REQUOTE)** | Market moved beyond price deviation during volatility spike | Apply `mt5_slippage_defense` protocol (`ORDER_FILLING_IOC` with `deviation = 50`). |
| **Priced-In Score $\ge 8$ Hard Block** | Market has fully anticipated scheduled catalyst | Normal system safety behavior. Verify `macro_priced_in_calculator.py` outputs. Do not bypass RiskGate. |
| **Tool JSON Decode Error** | LLM output included conversational markdown wrappers around JSON | Use `extract_and_parse_json()` from `analysis/providers/base_provider.py` which scrubs thinking tags and code fences. |
| **Database Lock / Sync Timeout** | SQLite/PostgreSQL transaction held open across long async call | Ensure all DB calls use `async with session.begin():` and avoid long network I/O inside open transactions. |

## 3. Diagnostic Commands Reference
```bash
# 1. Full system health audit
python -m monika.interfaces.cli.main doctor

# 2. Re-run failed test in verbose mode
pytest tests/path/to/test_file.py -vv -s

# 3. Check database migration head
alembic current
```

From alakbarr/Monika, MIT.

More from alakbarr/Monika

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Oct 13, 2026 (17 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from alakbarr

Cite this page

systematic-debugging skill. Agent Mart. https://agentmart.dev/skills/alakbarr-systematic-debugging (last updated 2026-10-24)