Skip to content
Agentmart
Submit a tool

steroid-diagnose

The debugging and diagnosis skill for Steroid-Workflow.

Skill by nzkbuild

IndexedMIT★ 3
Write a review

Chalk Labs

Need help deploying steroid-diagnose?

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/nzkbuild-steroid-diagnose

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

The debugging and diagnosis skill for Steroid-Workflow. Used when the user's intent is "fix" or "debug". Replaces the specify/research/architect phases with a focused 4-phase root cause investigation, then hands off a targeted fix plan to the engine.

Use cases: research, productivity

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/steroid-diagnose

What's inside

Skill name
steroid-diagnose
Description
The debugging and diagnosis skill for Steroid-Workflow. Used when the user's intent is "fix" or "debug". Replaces the specify/research/architect phases with a focused 4-phase root cause investigation, then hands off a targeted fix plan to the engine.
License
MIT
Instructions
187 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Steroid Diagnose (Fix/Debug Pipeline)

This skill replaces the full build pipeline when the user wants to **fix a bug** or **debug an issue**. Instead of vibe → specify → research → architect, it runs a focused diagnosis that produces `diagnosis.md` with root cause analysis and a targeted fix plan.

Adapted from:
- **Steroid Systematic Debugging** (see `Steroid internal reference`) — 4-phase root cause process
- **Steroid Root Cause Tracing** (see `Steroid internal reference`) — Backward call-stack tracing
- **Steroid Defense in Depth** (see `Steroid internal reference`) — Multi-layer validation after fix
- **Steroid Debugger** (see `Steroid internal reference`) — Codebase-aware debugging

## The Iron Law

```
NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST
```

Source: `Steroid internal reference` — "Random fixes waste time and create new bugs. Quick patches mask underlying issues."

If you haven't completed Phase 1 (Root Cause Investigation), you CANNOT propose fixes.

## The Circuit Breaker Mandate

All terminal commands MUST be wrapped in:
```
node steroid-run.cjs '<command>'
```

## Pipeline Position

This skill is triggered when `node steroid-run.cjs detect-intent "<message>"` returns `fix`.

**Fix/Debug pipeline:** scan → **diagnose** → engine (targeted) → verify

It runs AFTER `steroid-scan` (context.md must exist) and BEFORE `steroid-engine`.

If `.memory/changes/<feature>/prompt.json` exists, read it before diagnosis. Use it to preserve:
- the user's exact problem framing
- continuation or post-failure context
- any explicit non-goals so the diagnosis does not widen into a rebuild
- the recommended `diagnose-first` route if present

## The Four Phases

### Pre-Check

Before starting diagnosis, run the gate to ensure scan has completed:
```bash
node steroid-run.cjs gate diagnose <feature>
```
This verifies `context.md` exists from the scan phase.

### Phase 1: Root Cause Investigation

**BEFORE attempting ANY fix:**

1. **Read Error Messages Carefully**
   - Read stack traces completely
   - Note line numbers, file paths, error codes
   - Don't skip past warnings

2. **Reproduce Consistently**
   ```bash
   node steroid-run.cjs '<reproduction command>'
   ```
   - Can you trigger it reliably?
   - What are the exact steps?
   - If not reproducible → gather more data, don't guess

3. **Check Recent Changes**
   ```bash
   node steroid-run.cjs 'git log --oneline -10'
   node steroid-run.cjs 'git diff HEAD~3 --stat'
   ```
   - What changed recently that could cause this?
   - New dependencies? Config changes?

4. **Trace Data Flow**
   Use the backward tracing technique from `Steroid internal reference`:
   - Where does the bad value originate?
   - What called this function with bad input?
   - Keep tracing up until you find the source
   - Fix at source, not at symptom

### Phase 2: Pattern Analysis

1. **Find Working Examples** — Locate similar working code in the same codebase
2. **Compare Against References** — Read reference implementations COMPLETELY
3. **Identify Differences** — What's different between working and broken?
4. **Understand Dependencies** — What other components does this need?

### Phase 3: Hypothesis and Testing

1. **Form Single Hypothesis** — "I think X is the root cause because Y"
2. **Test Minimally** — Make the SMALLEST possible change to test
3. **One Variable at a Time** — Don't fix multiple things at once
4. **If It Doesn't Work** — Form NEW hypothesis, don't stack fixes

### Phase 4: Write Diagnosis

Write findings to `.memory/changes/<feature>/diagnosis.md`:

```markdown
# Diagnosis: <feature>

**Diagnosed:** <timestamp>
**Status:** ROOT_CAUSE_FOUND | NEEDS_MORE_DATA | ARCHITECTURAL_ISSUE

## Problem Statement

<What the user reported, in their words>

## Root Cause

<The actual root cause, traced to specific file:line>

## Evidence

- <What was observed>
- <What was expected>

From nzkbuild/steroid-workflow, MIT.

More from nzkbuild/steroid-workflow

Signals

Stars
3
Forks
0
Open issues
0
Last commit (this folder)
Mar 26, 2026 (7 months ago)
Last release
Mar 16, 2026 (7 months ago)

From GitHub (fetched Oct 24, 2026).

Details

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

More from nzkbuild

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 steroid-diagnose 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 steroid-diagnose?

CallGet help
Cite this page

steroid-diagnose skill. Agent Mart. https://agentmart.dev/skills/nzkbuild-steroid-diagnose (last updated 2026-10-24)