debug
This skill should be used when debugging frontend/UI bugs that need runtime evidence.
Skill by nengoxx
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/nengoxx-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.
About
Use cases: design, frontend, backend, writing
Reviews
Write a reviewNo 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
- Runs as
- Node.js package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/debug
What's inside
- Skill name
debug- Description
- This skill should be used when debugging frontend/UI bugs that need runtime evidence. USE THIS SKILL (instead of adding console.log) when you're about to: "add console.log and ask user to check", "open DevTools and tell me what you see", "reproduce the bug and share the output", "check the browser console". Triggers: "debug this", "fix this bug", "why isn't this working", "investigate this issue", "trace the problem", "figure out why X happens", "UI not updating", "state is wrong", "value is null/undefined", "click doesn't work", "modal not showing". Automates log collection server-side - you read logs directly, no user copy-paste needed.
- License
- GPL-3.0
- Instructions
- 411 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
- Instructions call the network
Agent Skills spec issues
- name: "debug" does not match folder "debug-skill"
Files (7)
- marketplace.json · .claude-plugin/
- README.md
- SKILL.md
- package.json
- screenshot.png
- debug_cleanup.js · scripts/
- debug_server.js · scripts/
SKILL.md (first lines)
# Debug Mode
Fix bugs with **runtime evidence**, not guesses.
```
Don't guess → Hypothesize → Instrument → Reproduce → Analyze → Fix → Verify
```
## When to Use
**Trigger signals** (if you're about to do any of these, use this skill instead):
- "Open DevTools Console and check for..."
- "Reproduce the bug and tell me what you see"
- "Add console.log and let me know the output"
- "Click X, open Y, check if Z appears in console"
**Example scenario that should trigger this skill:**
```
❌ Without skill (manual, slow):
"I added debug logging. Please:
1. Open the app in browser
2. Open DevTools Console (F12)
3. Open the defect modal and select a defect
4. Check console for [DEBUG] logs
5. Tell me what you see"
✅ With skill (automated):
Logs are captured server-side → you read them directly → no user copy-paste needed
```
**Use when debugging:**
- State/value issues (null, undefined, wrong type)
- Conditional logic (which branch was taken)
- Async timing (race conditions, load order)
- User interaction flows (modals, forms, clicks)
## Arguments
```
/debug /path/to/project
```
If no path provided, use current working directory.
## Workflow
### Phase 1: Start Log Server
**Step 1: Ensure server is running** (starts if needed, no-op if already running):
```bash
node skills/debug/scripts/debug_server.js /path/to/project &
```
Server outputs JSON:
- `{"status":"started",...}` - new server started
- `{"status":"already_running",...}` - server was already running (this is fine!)
**Step 2: Create session** (server generates unique ID from your description):
```bash
curl -s -X POST http://localhost:8787/session -d '{"name":"fix-null-userid"}'
```
Response:
```json
{"session_id":"fix-null-userid-a1b2c3","log_file":"/path/to/project/.debug/debug-fix-null-userid-a1b2c3.log"}
```
**Save the `session_id` from the response** - use it in all subsequent steps.
**Server endpoints:**
- POST `/session` with `{"name": "description"}` → creates session, returns `{session_id, log_file}`
- POST `/log` with `{"sessionId": "...", "msg": "..."}` → writes to log file
- GET `/` → returns status and log directory
**If port 8787 busy:** `lsof -ti :8787 | xargs kill -9` then restart
──────────
### Phase 2: Generate Hypotheses
**Before instrumenting**, generate 3-5 specific hypotheses:
```
Hypothesis H1: userId is null when passed to calculateScore()
Expected: number (e.g., 5)
Actual: null
Test: Log userId at function entry
Hypothesis H2: score is string instead of number
Expected: 85 (number)
Actual: "85" (string)
Test: Log typeof score
```
Each hypothesis must be:
- **Specific** (not "something is wrong")
- **Testable** (can confirm/reject with logs)
- **Cover different subsystems** (don't cluster)
──────────
### Phase 3: Instrument Code
Add logging calls to test all hypotheses.
**JavaScript/TypeScript:**
```javascript
// #region debug
const SESSION_ID = 'REPLACE_WITH_SESSION_ID'; // e.g. 'fix-null-userid-a1b2c3'
const DEBUG_LOG_URL = 'http://localhost:8787/log';
const debugLog = (msg, data = {}, hypothesisId = null) => {
const payload = JSON.stringify({
sessionId: SESSION_ID,
msg,
data,
hypothesisId,From nengoxx/ctrl-b, GPL-3.0.
More from nengoxx/ctrl-b
- 0.479score
cleanui
nengoxx
Prevents generic AI-generated UI patterns when building web apps, mobile apps, and websites.
SkillCFreshness: CClaude Code +9 - 0.474score
commit-after-fix
nengoxx
Checkpoint a fix into a Git commit right after resolving an audit finding or debugging a bug.
SkillCFreshness: CClaude Code +9 - 0.474score
audit
nengoxx
Systematically audit a codebase (or a scoped subsystem) for reliability, correctness, and design quality, then write a structured findings report to…
SkillCFreshness: CClaude Code +9 - 0.474score
audit-only-rotation
nengoxx
Run ONE audit pass against the next subsystem in the rotation — audit only, no fixing.
SkillCFreshness: CClaude Code +9 - 0.474score
audit-rotation
nengoxx
Run ONE quota-gated audit-and-fix cycle against the next subsystem in a rotation.
SkillCFreshness: CClaude Code +9 - 0.474score
claude-audit
nengoxx
Drive the Claude Code CLI (headless) to debug and fix a codebase by working through an existing audit report in docs/audit/.
SkillCFreshness: CClaude Code +9 - 0.474score
coding-discipline
nengoxx
The default engineering loop for ANY coding work in this repo — wrap every implementation, feature, addition, fix, or refactor in it.
SkillCFreshness: CClaude Code +9 - 0.474score
debug-rotation
nengoxx
Quota-gated loop that fixes the open findings already written in docs/audit/ reports — fix only, no auditing.
SkillCFreshness: CClaude Code +9 - 0.471score
trading-safety-review
nengoxx
Review Telegram signal bot changes for trading-safety invariants before modifying or merging parsing, execution, backtesting, optimizer, routing, or…
SkillCFreshness: CClaude Code +9 - 0.471score
refactor-small-pass
nengoxx
Keep cleanup and refactor work surgical, behavior-preserving, testable, and easy to review in this Telegram signal bot project.
SkillCFreshness: CClaude Code +9 - 0.455score
mcp-builder
nengoxx
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools.
SkillCFreshness: CClaude Code +9 - 0.455score
skill-creator
nengoxx
Create new skills, modify and improve existing skills, and measure skill performance.
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- May 27, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- GPL-3.0
- Repository
- github.com/nengoxx/ctrl-b
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from nengoxx
- 0.479score
cleanui
nengoxx
Prevents generic AI-generated UI patterns when building web apps, mobile apps, and websites.
SkillCFreshness: CClaude Code +9 - 0.474score
claude-audit
nengoxx
Drive the Claude Code CLI (headless) to debug and fix a codebase by working through an existing audit report in docs/audit/.
SkillCFreshness: CClaude Code +9 - 0.474score
audit
nengoxx
Systematically audit a codebase (or a scoped subsystem) for reliability, correctness, and design quality, then write a structured findings report to…
SkillCFreshness: CClaude Code +9 - 0.474score
audit-only-rotation
nengoxx
Run ONE audit pass against the next subsystem in the rotation — audit only, no fixing.
SkillCFreshness: CClaude Code +9 - 0.474score
audit-rotation
nengoxx
Run ONE quota-gated audit-and-fix cycle against the next subsystem in a rotation.
SkillCFreshness: CClaude Code +9 - 0.474score
commit-after-fix
nengoxx
Checkpoint a fix into a Git commit right after resolving an audit finding or debugging a bug.
SkillCFreshness: CClaude Code +9
Cite this page
debug skill. Agent Mart. https://agentmart.dev/skills/nengoxx-debug (last updated 2026-10-24)