debugging

debugging is a skill for Claude Code, Codex from KonghaYao/peri. It costs 35 tokens per session (1,257 once invoked), scanned A, original, Apache-2.0.

A browser-debugging procedure for inspecting screenshots, console messages, and network requests through peri-browser. It also explains how to connect to the correct browser session.

In plain words
What is it for?
Use it to investigate broken pages, failed actions, console errors, and unexpected network responses.
Why use it?
It gives a repeatable way to find whether a page problem comes from what is displayed, browser errors, or failed requests.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: names the AskUserQuestion tool.

Good fit Use it to investigate broken pages, failed actions, console errors, and unexpected network responses.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/konghayao/peri/debugging
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add KonghaYao/peri --skill debugging
Clone the repo
git clone --depth 1 https://github.com/KonghaYao/peri

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for debugging

README.md
[![agentmods](https://agentmods.dev/badge/skills/konghayao/peri/debugging/github.svg)](https://agentmods.dev/skills/konghayao/peri/debugging)
Your own site
<a href="https://agentmods.dev/skills/konghayao/peri/debugging"><img src="https://agentmods.dev/badge/skills/konghayao/peri/debugging/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for debugging

Your own site · 80×15
<a href="https://agentmods.dev/skills/konghayao/peri/debugging"><img src="https://agentmods.dev/badge/skills/konghayao/peri/debugging.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,257 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00035 $0.01257
Opus 5.5 $0.00014 $0.00503
Sonnet 5.5 $0.00007 $0.00251
Haiku 4.5 $0.00003 $0.00126

Measured 2d ago against content hash 0603d19b17e6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

debugging scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

mcp-packages/peri-browser-gateway/skills/debugging/SKILL.md · 105 lines

How it starts

The opening of the file, as written. The whole thing — 105 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Debugging a page with peri-browser

Diagnostics come from the page controller: Runtime and Network are enabled lazily the first time you ask for console or network data. Each page keeps the newest 200 entries. Buffers start when the domain is enabled, so reload and repeat the failing action if the event you need predates the first read.

Order of investigation

  1. browser_status — check the state of this HTTP MCP session. If endpoint is empty, follow nextSteps: ask before installing, use the user's chosen loopback instance or kitesurf serve --port <chosen-port>, and explicitly browser_connect even if recommendedEndpoint.listening is true. If endpoint is set but connected is false, troubleshoot that endpoint; do not silently switch. The gateway does not start the engine or bind a session to it for you.
  2. take_screenshot — see what the user sees. The result is a JPEG image (image/jpeg, quality 70, at most 1600x1000) delivered as MCP image content.
  3. list_console_messages — errors and warnings, newest last as buffered.
  4. list_network_requests — method, URL, status, MIME type and failure text. Pass filter to narrow by URL substring or HTTP method.
  5. get_network_request with the requestId — request and response headers, status, timing and (when the response is still buffered by the browser) a bounded body up to 64 KiB.
  6. evaluate_script — read runtime state that no tool exposes, for example document.querySelectorAll('[role=dialog]').length or a framework store.

take_snapshot complements this: it exposes the accessibility tree, not the visual layout, and its uids are the way to interact with what you found.

Console

list_console_messages returns entries with level, text and timestampMs. Uncaught exceptions are recorded at level: "error". Messages are formatted from the CDP remote objects; objects are shown by description or JSON value, so deeply nested objects are truncated by the browser, not by the MCP.

Read the full file on GitHub · 105 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 105 lines · 35 tokens per session scan A 0603d19b17e6

Subscribe to this mod's changes

debugging is a skill published in the GitHub repository KonghaYao/peri (269 stars, last pushed today), licensed Apache-2.0. It adds 35 tokens to every session and 1,257 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-24.

Related

debugging compared with skills from other repositories

debugging next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
debuggingKonghaYao/periSkill269todayApache-2.0A35Claude Code, Codex
babysit-propeninterpreter/openinterpreterSkill69ktodayApache-2.0A114Codex
plugin-creatoropeninterpreter/openinterpreterSkill69ktodayApache-2.0A86Codex
codex-pr-bodyopeninterpreter/openinterpreterSkill69ktodayApache-2.0A17Codex
remote-testsopeninterpreter/openinterpreterSkill69ktodayApache-2.0A12Codex
update-v8-versionopeninterpreter/openinterpreterSkill69ktodayApache-2.0A86Codex
qa-testingopeninterpreter/openinterpreterSkill69ktodayApache-2.0A77Claude Code, Codex