debug-logs

debug-logs is a skill for Claude Code from Weaverse/.agents. It costs 42 tokens per session (619 once invoked), scanned A, original, MIT.

A browser-only debugging method that records a small timeline of selected events in a page variable for later inspection. It avoids putting customer data, tokens, or full errors in the captured entries.

In plain words
What is it for?
Use it to trace client-side loading, submission, and result stages during a temporary reproduction, then return the captured timeline as JSON.
Why use it?
Console output can be noisy or difficult to hand off, and unrestricted logs can expose sensitive information. A bounded timeline focuses on the events needed to distinguish likely causes.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to trace client-side loading, submission, and result stages during a temporary reproduction, then return the captured timeline as JSON.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/weaverse/.agents/debug-logs
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 Weaverse/.agents --skill debug-logs
Clone the repo
git clone --depth 1 https://github.com/Weaverse/.agents

Made for: Claude Code.

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 debug-logs

README.md
[![agentmods](https://agentmods.dev/badge/skills/weaverse/.agents/debug-logs/github.svg)](https://agentmods.dev/skills/weaverse/.agents/debug-logs)
Your own site
<a href="https://agentmods.dev/skills/weaverse/.agents/debug-logs"><img src="https://agentmods.dev/badge/skills/weaverse/.agents/debug-logs/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 debug-logs

Your own site · 80×15
<a href="https://agentmods.dev/skills/weaverse/.agents/debug-logs"><img src="https://agentmods.dev/badge/skills/weaverse/.agents/debug-logs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 619 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.00042 $0.00619
Opus 5.5 $0.00017 $0.00248
Sonnet 5.5 $0.00008 $0.00124
Haiku 4.5 $0.00004 $0.00062

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

Security

Grade A, and why

debug-logs 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 19d 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.

skills/debug-logs/SKILL.md · 56 lines

How it starts

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

Browser debug timeline

Use the team's temporary window.__debug_logs technique when console output is noisy or a reproduction must be handed back as JSON. Browser access still follows the current task's permission rules.

Instrument

  1. Choose only the decision points that distinguish the competing explanations. Use code-owned stage names, counts, booleans and bounded status categories. No customer data, identifiers, tokens, full URLs, form values, raw errors, props or response bodies belong in window.__debug_logs.

  2. Wrap every added helper, call and type declaration in DEBUG START / DEBUG END markers. Keep initialization out of the render path so a re-render does not erase the capture.

  3. Adapt this bounded example to the repository's style; do not spread arbitrary objects into an entry:

    // DEBUG START
    type DebugStage = 'load' | 'submit' | 'result';
    interface DebugEntry {
      timestamp: number;
      stage: DebugStage;
      count: number;
      ok: boolean;
    }
    declare global {
      interface Window { __debug_logs?: DebugEntry[]; }
    }
    function debugLog(stage: DebugStage, count: number, ok: boolean) {
      if (typeof window === 'undefined') return;
      window.__debug_logs ??= [];
      if (window.__debug_logs.length >= 1000) window.__debug_logs.shift();
      window.__debug_logs.push({timestamp: Date.now(), stage, count, ok});
    }
    // DEBUG END
    

Capture and remove

  • Before a fresh reproduction, clear the array explicitly once. Do not clear it on every mount or render.
  • Verify .debug/ at the project root is Git-ignored before writing a capture. Do not put logs in a spec.
  • In an approved browser session, reproduce and export with copy(JSON.stringify(window.__debug_logs ?? [], null, 2)); this DevTools helper is browser-specific. Save a reviewed capture as .debug/logs-1.json (choose the next unused index).
  • Read the timeline against the actual code. Missing stages prove absence only if the capture window, initialization and capacity limit cover them. Distinguish a bounded buffer eviction from a missing event.
  • Remove all marked instrumentation and global declarations after the investigation. Search for both markers and __debug_logs, then run the relevant tests/build. Do not ship a dormant payload collector.

Read the full file on GitHub · 56 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. 19d ago First seen · 56 lines · 42 tokens per session scan A 95f44ca50c6d

Subscribe to this mod's changes

debug-logs is a skill published in the GitHub repository Weaverse/.agents (1 stars, last pushed 19d ago), licensed MIT. It adds 42 tokens to every session and 619 once invoked, about $0.0002 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-11.

Related

debug-logs compared with skills from other repositories

debug-logs next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
debug-logsWeaverse/.agentsSkill119d agoMITA42Claude Code
qa-checkstuartshields/claude-setupSkill26mo agoMITA41Claude Code
debug-wpstuartshields/claude-setupSkill26mo agoMITA22Claude Code
debug-rulesstuartshields/claude-setupSkill26mo agoMITA28Claude Code
playwrightstuartshields/claude-setupSkill26mo agoMITA26Claude Code
vibe-userstuartshields/claude-setupSkill26mo agoMITA36Claude Code
debuggingstuartshields/claude-setupSkill26mo agoMITA71Claude Code, Codex