# Debug

> Debug is an open-source agent skill for developer tools. Debugs an Apps in Toss mini-app in a local browser or on a real Toss device. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/toss/apps-in-toss-harness/tree/main/packages/agent-plugin/shared/skills/debug
- **Repository:** https://github.com/toss/apps-in-toss-harness
- **GitHub stars:** 195
- **License:** BSD-3-Clause
- **Skill name:** debug
- **Collection:** https://github.com/toss/apps-in-toss-harness
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

This skill guides an agent through debugging an Apps in Toss mini-app in two environments: a local desktop browser with the mock SDK and devtools panel, and a real Toss app WebView on a phone attached through a Chrome DevTools relay. It first checks the project setup, starts the dev server when needed, and picks an observation point such as the panel tabs, window.__ait state, or browser DevTools based on the reported symptom.

When a hypothesis forms, the skill runs an observe, hypothesize, minimal fix, and re-verify loop, changing one variable per cycle and removing failed changes before the next try. It stops and hands back to the user after repeated failures, when the symptom cannot be reproduced, or when deploying or console state changes would be needed. Device-side attach relies on the ait-debugger MCP server and a debug build with the debugger client wired in, and the on-device steps are documented as Claude Code specific.

## When your agent uses it

> Debug an Apps in Toss mini-app across two environments — local browser (devtools panel, `window.__ait`, browser DevTools) and on-device intoss-private candidate (real Toss WebView via `ait-debugger` MCP relay-staging QR attach). Branches by what it observes, then runs an autonomous observe → hypothesize → minimal-fix → re-verify loop and hands off when it stalls (§6). Triggered by `/ait:debug` (no args). Distinct from `status`/`logs` (console-side, not live device state).

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/toss/apps-in-toss-harness/tree/HEAD/packages/agent-plugin/shared/skills/debug)
- [License: BSD-3-Clause](https://github.com/toss/apps-in-toss-harness/tree/HEAD/packages/agent-plugin/shared/skills/debug)

## Features

- **Local browser debugging:** Observe mock SDK state through the devtools floating panel, window.__ait, and browser DevTools.
- **Device attach via QR:** Attach a real Toss app WebView to a relay with a single start_attach call and a scannable QR code.
- **Autonomous debug loop:** Cycle through observing, forming one hypothesis, making a minimal change, and re-verifying the symptom.
- **On-device test runs:** Run mini-app test files against the attached device WebView to compare behavior across environments.
- **Escalation and hand-off rules:** Stop after repeated failed hypotheses or unreproducible symptoms and ask the user for direction.

## Good for

- Find why a login button returns no authorization code in the local browser
- Reproduce a swipe-back crash that only appears on a real Toss app device
- Check mock SDK state while tracing a permission or location bug
- Run mini-app test files on a real device WebView
- Narrow down a symptom that differs between the mock and real SDK

## Install

### Claude Code

This skill ships in the `ait` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add toss/apps-in-toss-harness
/plugin install ait@apps-in-toss
```

Or copy only this skill to `~/.claude/skills/debug`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/toss/apps-in-toss-harness.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/debug &&
cp -R "$tmp/packages/agent-plugin/shared/skills/debug" ~/.claude/skills/debug &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/debug` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/debug` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/toss/apps-in-toss-harness.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/debug &&
cp -R "$tmp/packages/agent-plugin/shared/skills/debug" ~/.agents/skills/debug &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/debug` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/debug` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/toss/apps-in-toss-harness.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/debug &&
cp -R "$tmp/packages/agent-plugin/shared/skills/debug" ~/.cursor/skills/debug &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/debug` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/toss/apps-in-toss-harness.git --path packages/agent-plugin/shared/skills/debug
```

Or copy the folder to `~/.gemini/skills/debug` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/debug`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/toss/apps-in-toss-harness.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/debug &&
cp -R "$tmp/packages/agent-plugin/shared/skills/debug" ~/.copilot/skills/debug &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/debug` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/toss/apps-in-toss-harness.git
```

Then copy `apps-in-toss-harness/packages/agent-plugin/shared/skills/debug` into your agent's skills folder as `debug`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Does this skill need a Toss console login for browser debugging?

No. The skill states that browser debugging is local only and does not require console authentication.

### What is needed to debug on a real device?

The ait-debugger MCP server must be loaded in the session, and the candidate build must include the debugger client with the debug build flag set, then be uploaded to get a scheme URL.

### Will Debug submit my app for review?

No. Review submission, release, rollback, and similar console changes require explicit user approval. The candidate debug build is marked not to be submitted for review.

### Which AI clients does the on-device part support?

The on-device attach section is documented as Claude Code specific. The adapter note says it is not supported on Codex or Cursor, while the browser path works there.

### How do I install Debug in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/debug to use it in all your projects, or to .claude/skills/debug in one project. Or install the ait plugin, which includes it: /plugin marketplace add toss/apps-in-toss-harness, then /plugin install ait@apps-in-toss.

### Does Debug run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Debug?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Debug?

The closest alternatives to Debug are Inject, Test on device, Launch, Interactive debugging and New miniapp.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Inject](https://ai-powered.com/skills/inject): Inject is an open-source agent skill for developer tools.
- [Test on device](https://ai-powered.com/skills/test-on-device): Test on device is an open-source agent skill for developer tools.
- [Launch](https://ai-powered.com/skills/launch-toss): Launch is an open-source agent skill for developer tools.
- [Interactive debugging](https://ai-powered.com/skills/interactive-debugging): Interactive debugging is an open-source agent skill for developer tools.
- [New miniapp](https://ai-powered.com/skills/new-miniapp): New miniapp is an open-source agent skill for developer tools.
- [Java debugging](https://ai-powered.com/skills/java-debugging): Java debugging is an open-source agent skill for developer tools.
- [Browser testing](https://ai-powered.com/skills/browser-testing): Browser testing is an open-source agent skill for developer tools.
- [Server](https://ai-powered.com/skills/server): Server is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/debug
