Skip to content
Agentmart
Submit a tool

optima-debug

Structured debugging — frame the bug, list 5–7 category-diverse hypotheses, distill to 1–2, validate with local logs/doctor before any code fix.

Skill by julienlhk

IndexedMIT
Write a review

Chalk Labs

Need help deploying optima-debug?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

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/julienlhk-optima-debug

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

Structured debugging — frame the bug, list 5–7 category-diverse hypotheses, distill to 1–2, validate with local logs/doctor before any code fix. Use for failures, flakes, wrong behavior, or "it doesn't work".

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/optima-debug

What's inside

Skill name
optima-debug
Description
Structured debugging — frame the bug, list 5–7 category-diverse hypotheses, distill to 1–2, validate with local logs/doctor before any code fix. Use for failures, flakes, wrong behavior, or "it doesn't work".
License
MIT
Instructions
159 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Optima Debug

## Hard rule

**No code fix until a hypothesis is confirmed by evidence.**  
Jumping to a patch is a failure of this skill.

## Order (do not skip)

```text
Frame → Hypothesize (5–7) → Rank (1–2) → Instrument → Validate → Fix → Verify
```

```mermaid
flowchart TD
  frame[1_Frame] --> hypo[2_Hypothesize_5_to_7]
  hypo --> rank[3_Rank_to_1_or_2]
  rank --> logs[4_Instrument]
  logs --> evidence[5_Validate]
  evidence -->|confirmed| fix[6_Minimal_fix]
  evidence -->|killed| hypo
  fix --> verify[7_Verify_and_clean]
```

---

### 1) Frame (3 lines max)

| Field | Value |
|-------|-------|
| **Symptom** | Exact observation (error text, wrong output, missing path) |
| **Expected** | What should happen |
| **Scope** | Command / host / env / after which change |

Bootstrap with a local probe (no network):

```bash
npx optima debug
npx optima debug --problem "<one-line symptom>"
npx optima debug --write   # optional: OPTIMA_DEBUG.md in the project only
```

---

### 2) Hypothesize 5–7 sources

Use **different categories** — not 7 flavors of the same guess:

| # | Category | Starter prompt |
|---|----------|----------------|
| 1 | **Install / wiring** | Skills/rules never landed here |
| 2 | **Host / agent** | Cursor/Claude not loading always-on rules |
| 3 | **Config / env** | `OPTIMA_SKIP_POSTINSTALL`, wrong cwd, wrong `--host` |
| 4 | **Version / path** | Stale `optima-ai`, wrong bin, monorepo vs npm |
| 5 | **Context / ignores** | Needed file excluded by ignore boundaries |
| 6 | **Logic / code** | Bug in compressor, meter, classifier, installer |
| 7 | **External** | Permissions, sandbox EPERM, provider API |

Each hypothesis must be falsifiable:

> **If** \<cause\> **were true, we would see** \<observable\>.

---

### 3) Distill to 1–2 most likely

| Rank | Hypothesis | Why likely now | Fast disproof |
|------|------------|----------------|---------------|
| H1 | | | One command / log that kills it |
| H2 | | | One command / log that kills it |

Park the rest. Do not investigate all seven.

---

### 4) Instrument before fixing

Add the **smallest** checks that distinguish H1 vs H2:

| Prefer | Avoid |
|--------|-------|
| `npx optima doctor` / `npx optima debug` | Spray `console.log` everywhere |
| File exists + version + env dump | Logging secrets / full prompts |
| One boundary log (in → out) | Remote logging / telemetry |

Logs stay on **local stdout** (or `--write` into the project). Never send elsewhere.

---

### 5) Validate

| Evidence | Action |
|----------|--------|
| Confirms H1/H2 | Proceed to minimal fix |
| Kills H1/H2 | Promote next candidate — do **not** fix anyway |
| Ambiguous | One tighter log; still no speculative rewrite |

---

### 6) Fix

- Smallest change for the **validated** cause only
- No drive-by refactors in the same pass

### 7) Verify + clean

- Re-run the failing repro
- Remove temporary debug logs
- One-line root cause note

---

## Agent output template (fill before coding)

```markdown
### Frame
- Symptom:
- Expected:
- Scope:

From julienlhk/optima, MIT.

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Sep 17, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

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

More from julienlhk

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get optima-debug running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying optima-debug?

CallGet help
Cite this page

optima-debug skill. Agent Mart. https://agentmart.dev/skills/julienlhk-optima-debug (last updated 2026-10-24)