bug-investigation

bug-investigation is a skill for OpenCode from cruzs85/opencode-multiagente-local-37-iterations. It costs 0 tokens per session (635 once invoked), scanned A, original, MIT.

A bug-investigation process that decides whether the problem can be traced to one file or requires examining several files. A diffuse bug may involve data moving through services, components, or other parts of the application.

In plain words
What is it for?
Use it when the application behaves incorrectly to inspect a likely file directly, or to investigate multi-file integration and logic problems with a structured report.
Why use it?
It helps choose an efficient investigation path and prevents unnecessary delegation for simple, localized problems. More complex bugs are assigned to an explorer agent with a clear symptom and starting context.

Skill for OpenCode

Written for OpenCode: installed under .opencode/.

Good fit Use it when the application behaves incorrectly to inspect a likely file directly, or to investigate multi-file integration and logic problems with a structured report.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cruzs85/opencode-multiagente-local-37-iterations/bug-investigation
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 cruzs85/opencode-multiagente-local-37-iterations --skill bug-investigation
Clone the repo
git clone --depth 1 https://github.com/cruzs85/opencode-multiagente-local-37-iterations

Made for: OpenCode.

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 bug-investigation

README.md
[![agentmods](https://agentmods.dev/badge/skills/cruzs85/opencode-multiagente-local-37-iterations/bug-investigation/github.svg)](https://agentmods.dev/skills/cruzs85/opencode-multiagente-local-37-iterations/bug-investigation)
Your own site
<a href="https://agentmods.dev/skills/cruzs85/opencode-multiagente-local-37-iterations/bug-investigation"><img src="https://agentmods.dev/badge/skills/cruzs85/opencode-multiagente-local-37-iterations/bug-investigation/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 bug-investigation

Your own site · 80×15
<a href="https://agentmods.dev/skills/cruzs85/opencode-multiagente-local-37-iterations/bug-investigation"><img src="https://agentmods.dev/badge/skills/cruzs85/opencode-multiagente-local-37-iterations/bug-investigation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 635 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.00000 $0.00635
Opus 5 $0.00000 $0.00318
Sonnet 5 $0.00000 $0.00127
Haiku 4.5 $0.00000 $0.00064

Measured 12d ago against content hash 288a4c863d88, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

bug-investigation 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 12d 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.

configuraciones/configuracion-14(multi-agente)/.opencode/skills/bug-investigation/SKILL.md · 66 lines

What it actually says

Skill: bug-investigation

Objetivo

Protocolo de investigación de bugs para ahorrar tokens. Define cuándo el orquestador investiga directamente y cuándo delega a @explorer, junto con el formato de reporte que explorer debe devolver.


Para el ORQUESTADOR — Árbol de decisión

Cuando el usuario reporte un comportamiento incorrecto en la app, clasifica el bug:

Bug ACOTADO

Características:

  • Sospecha clara de 1 solo archivo
  • Síntoma específico y localizado
  • Ej: "el botón no se ve", "el texto está mal alineado"

Acción: Lee el archivo sospechoso DIRECTAMENTE y resuelve. No delegues a explorer.

Bug DIFUSO

Características (cualquiera de estas):

  • Involucra 2+ archivos (ej: servicio + componente)
  • El flujo de datos cruza servicio y componente
  • Es un error de integración o lógica distribuida
  • No está claro dónde está la causa raíz
  • Ej: "los obstáculos no aparecen", "la puntuación no coincide", "el movimiento se siente incorrecto"

Acción:

  1. DELEGA a @explorer la investigación
  2. Proporciónale: síntoma observable, archivos que creas relevantes (rutas completas), hipótesis inicial
  3. Pídele que cargue esta skill ('bug-investigation') para saber el formato de reporte
  4. Cuando recibas su reporte, diseña la solución y delega la corrección a @code-writer

Para @explorer — Formato de reporte obligatorio

Cuando el orquestador te delegue una investigación de bug, DEBES cargar esta skill y devolver el reporte en EXACTAMENTE este formato:

📋 REPORTE DE INVESTIGACIÓN DE BUG

🔍 Hipótesis investigada: [hipótesis que recibiste]

📁 Archivos revisados:
1. [ruta/archivo.ts] — [qué hace, líneas relevantes]
2. ...

🔬 Hallazgos:
| Archivo | Línea | Valor actual | Valor esperado | Tipo |
|---|---|---|---|---|
| ruta.ts | 42 | `código actual` | `código esperado` | lógica/sintaxis/integración |

🎯 Causa raíz:
[explicación de 1-3 líneas de por qué ocurre el bug]

💡 Solución propuesta:
[qué cambiar, en qué archivo, en qué línea]

Reglas de investigación:

  1. Lee los archivos que el orquestador te indique
  2. Si encuentras el bug, detén la búsqueda (no sigas revisando archivos adicionales sin necesidad)
  3. Si después de revisar los archivos sugeridos no encuentras el bug, revisa archivos relacionados (imports, dependencias)
  4. Máximo 3 intentos de búsqueda. Si no encuentras nada, reporta "No se encontró la causa raíz en los archivos investigados"
  5. No modifiques ningún archivo — solo reportas
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. 12d ago First seen · 66 lines · 0 tokens per session scan A 288a4c863d88

Subscribe to this mod's changes

bug-investigation is a skill published in the GitHub repository cruzs85/opencode-multiagente-local-37-iterations (5 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 635 tokens. 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-08-31.

Related

Other skills, from other repositories

debug-optimize-lcp

Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions…

ChromeDevTools/chrome-devtools-mcp · 99 tokens

systematic-debugging

Use when debugging a failing test, build error, or runtime issue that isn't immediately obvious. Guides a 4-phase root cause analysis instead of random fix attempts.

open-metadata/OpenMetadata · 37 tokens

diagnose

Trace from a reproduced symptom to the source code that causes it. Pin the specific file and approximate line, rate confidence in the cause and clarity of the fix independently, and always propose a concrete fix.

emdash-cms/emdash · 43 tokens

repro-admin

Reproduce an EmDash admin UI bug. Attach a container, start the demo dev server, drive the admin with agent-browser using the dev-bypass session, and capture the reproduction as screenshots plus a replayable transcript.

emdash-cms/emdash · 48 tokens

log-error-digest

Analyze log files to troubleshoot errors, identify peak error periods, and produce error clustering, frequency statistics, and time distribution reports. Supports JSON, syslog, and Nginx formats with automatic detection. Use when a user uploads a .log file and asks to analyze errors, find patterns, debug issues, or…

zebbern/claude-code-guide · 71 tokens

byted-util-volcengine-detect-retry

An orchestration workflow for Volcengine Cloud Detect, a service that checks websites or network endpoints from test locations.

bytedance/agentkit-samples · 101 tokens