By abdoumoumen
Runtime debugging toolkit for web apps — inject state tracking, function interception, expression polling, and timeline instrumentation into any page via browser automation
Runtime debugging toolkit for web apps — inject state tracking, function interception, expression polling, and timeline instrumentation into any page via browser automation.
Zero dependencies. No setup. Works with any AI coding agent that has browser automation.
ai-debugger gives your AI coding agent a debugging toolkit it can inject into any running web page. Once injected, the agent can:
fetch, localStorage.setItem, or any function to record every callAll of this happens at runtime via browser automation — no code changes required (though code instrumentation mode is also supported for tracking internal state).
copilot plugin install AbdouMoumen/ai-debugger
Interactive (within a Claude session):
/pluginAbdouMoumen/ai-debuggerCommand line:
claude plugin marketplace add AbdouMoumen/ai-debugger
claude plugin install ai-debugger@ai-debugger
Copy the skill files into your agent's instruction directory, or just tell your agent to read the SKILL.md file:
skills/ai-debugger/SKILL.md # Skill definition
skills/ai-debugger/reference/debug-agent.js # Injectable script
skills/ai-debugger/reference/api-reference.md # Full API docs
Your AI agent needs a browser automation tool that can:
Any tool works — Playwright MCP, Chrome DevTools MCP, Puppeteer MCP, built-in browser tools, etc.
┌─────────────────────────────┐
│ AI Coding Agent │
│ (Claude, Copilot, etc.) │
└──────────┬──────────────────┘
│
│ 1. Read debug-agent.js
│ 2. Evaluate in page
│ 3. Call __debugAgent APIs
│
▼
┌─────────────────────────────┐
│ Browser Automation │
│ (Playwright, DevTools...) │
└──────────┬──────────────────┘
│
│ browser_evaluate()
│
▼
┌─────────────────────────────┐
│ Web Page (any URL) │
│ │
│ window.__debugAgent = { │
│ watch, intercept, poll, │
│ mark, getTimeline, │
│ getSnapshot, ... │
│ } │
└─────────────────────────────┘
Once the agent injects the script, it can do things like:
// Track all fetch calls
__debugAgent.intercept('fetch')
// Watch for error banners
__debugAgent.poll('errors', "document.querySelectorAll('[role=alert]').length")
// Mark a moment
__debugAgent.mark('clicked-submit')
// Get everything that happened
__debugAgent.getTimeline({ last: 20 })
// Full state dump
__debugAgent.getSnapshot()
| Method | Description |
|---|---|
watch(key, value, opts?) | Track a value with history |
get(key) | Read entry with full history |
getAll() | All tracked entries |
intercept(path, opts?) | Monkey-patch function at dot-path |
restore(path) | Undo interception |
getInterceptions() | List interceptions + call logs |
poll(key, expr, opts?) | Periodically evaluate expression |
stopPoll(key) | Stop polling |
getPolls() | List polls + change history |
mark(label, data?) | Add timestamped annotation |
getTimeline(opts?) | Get chronological events (filterable) |
getSnapshot() | Full dump of everything |
See api-reference.md for complete documentation.
ai-debugger/
├── plugin.json # Copilot CLI manifest
├── .claude-plugin/
│ └── plugin.json # Claude Code manifest (same content)
├── skills/
│ └── ai-debugger/
│ ├── SKILL.md # Skill definition
│ └── reference/
│ ├── debug-agent.js # Injectable script (413 lines, zero deps)
│ └── api-reference.md # Full API documentation
└── README.md
MIT
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Personal Claude Code skills: skill-creator, plugin-creator, forge, mcp-toggle, plugin-updater, fresh-start, dotfiles-sync, devbox-monitor, devbox-report, grill-me, handoff, skill-eval, judgment-evidence.
npx claudepluginhub abdoumoumen/ai-debugger --plugin ai-debuggerCore skills library for Claude Code: TDD, debugging, collaboration patterns, and proven techniques
Superpowers Plus core skills library for Claude Code: planning, execution routing, TDD, debugging, and collaboration workflows
Harness-native ECC operator layer - 67 agents, 271 skills, 92 legacy command shims, reusable hooks, rules, selective install profiles, and production-ready workflows for Claude Code, Codex, OpenCode, Cursor, and related agent harnesses
Tools to maintain and improve CLAUDE.md files - audit quality, capture session learnings, and keep project memory current.
Plugin-safe Claude Code distribution of Antigravity Awesome Skills with 1,561 supported skills.