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.
npx skills add Weaverse/.agents --skill debug-logsgit clone --depth 1 https://github.com/Weaverse/.agentsWrote 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.
[](https://agentmods.dev/skills/weaverse/.agents/debug-logs)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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
-
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. -
Wrap every added helper, call and type declaration in
DEBUG START/DEBUG ENDmarkers. Keep initialization out of the render path so a re-render does not erase the capture. -
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.
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.
- 19d ago First seen · 56 lines · 42 tokens per session scan A 95f44ca50c6d
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.
debug-logs compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| debug-logsWeaverse/.agents | Skill | 1 | 19d ago | MIT | A | 42 | Claude Code |
| qa-checkstuartshields/claude-setup | Skill | 2 | 6mo ago | MIT | A | 41 | Claude Code |
| debug-wpstuartshields/claude-setup | Skill | 2 | 6mo ago | MIT | A | 22 | Claude Code |
| debug-rulesstuartshields/claude-setup | Skill | 2 | 6mo ago | MIT | A | 28 | Claude Code |
| playwrightstuartshields/claude-setup | Skill | 2 | 6mo ago | MIT | A | 26 | Claude Code |
| vibe-userstuartshields/claude-setup | Skill | 2 | 6mo ago | MIT | A | 36 | Claude Code |
| debuggingstuartshields/claude-setup | Skill | 2 | 6mo ago | MIT | A | 71 | Claude Code, Codex |