investigate-bug
Skill2 starsChanged 2 months agoMITView on GitHub
Structured workflow for analyzing a Jam bug report end-to-end — pulls diagnostics from the Jam MCP server (console, network, user events, screenshots, video frames, transcript) and produces a root-cause hypothesis. Invoke with `/investigate-bug <jam-url-or-id>`.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- danielvm-git/bigpowerstheir own version, first seen Sep 1, 2026
- bsafronov/prosto-skillstheir own version, first seen Aug 31, 2026
- jasonhulbert/skillstheir own version, first seen Aug 31, 2026
- hamakyo/okf-skillstheir own version, first seen Aug 21, 2026
- napnap11/claude-skillstheir own version, first seen Jun 26, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- danielvm-git/bigpowers★ 252same name
- hamakyo/okf-skills★ 2same name
- jasonhulbert/skills★ 1same name
- napnap11/claude-skills★ 1same name
- bsafronov/prosto-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repositoryOne other file it gives its agents.
- jam-cliSkill
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 3 are distinctive, and 8 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
Call getDetails with the provided Jam URL or ID.
- Very specific: line 33
Call getNetworkRequests with filters to focus on problems:
- Very specific: line 39
All network filters, including contentType, take arrays.
- Very specific: line 45
Call getConsoleLogs with logLevel: ["error"] to find runtime errors.
- Distinctive: line 46
Look for unhandled exceptions, failed assertions, and stack traces.
- Very specific: line 48
Silent failure check: if network shows 4xx/5xx but console is clean, the app may be swallowing errors — re-run with no logLevel filter.
- Very specific: line 52
Call getUserEvents to understand the sequence of interactions.
- Very specific: line 68
Call getMetadata to retrieve any app-specific context (user IDs, feature flags, app version) that the application set via the …
- Distinctive: line 97
Not all steps are needed for every bug.
- Very specific: line 99
When the user asks, add your findings back to the Jam with createComment (Markdown supported) so the team sees them.
- Distinctive: line 100
If a fresh Jam's event tools return "not ready yet," the Jam is still being processed — wait a few seconds and retry, or fall back to data …
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Investigate Bug
A structured workflow for investigating Jam bug reports. Invoke with /investigate-bug <jam-url-or-id>.
Workflow
Step 1: Get the Bug Report
Call getDetails with the provided Jam URL or ID. A full https://jam.dev/c/... URL or a UUID both work.
From the response, extract:
- Description — what the reporter said
- Type —
video,screenshot, orreplay - Device info — browser, OS, screen size
- Investigation Guide — server-recommended next steps, returned as the second text block
- Postprocessing status — for fresh Jams, some event-backed tools may report "not ready yet"
Step 2: Follow the Investigation Guide
The getDetails response includes an Investigation Guide built from real signals in the Jam (console error counts, 4xx/5xx ranges per host, mic enabled, etc.). Treat it as authoritative — the steps below are fallbacks for when the guide is light or you want to drill deeper.
- Each path specifies a tool to call, suggested arguments, and what to look for.
- Investigate
highpriority paths first; defermediumuntil they're exhausted. - For video Jams where the reporter had the mic on,
getVideoTranscriptis now prioritized aboveanalyzeVideo— voiceover is the cheapest, most direct signal.
Step 3: Analyze Network Activity
Call getNetworkRequests with filters to focus on problems:
statusCode: ["4xx", "5xx"]for client and server failureshost: ["api.example.com"]to scope to a specific backendmethod: ["POST"]for mutation failureslimitto cap output when a Jam is noisy
All network filters, including contentType, take arrays. Values are ORed within a filter and ANDed across filters. Network, console, and user-event responses include total and nextCursor. If the page is incomplete, narrow the filters or pass nextCursor as after.
Network response bodies default to failed requests (bodies: "errors"). Use bodies: "all" to inspect a successful request that returned unexpected data. Bodies are truncated to 4KB and flagged per row. Note CORS errors, timeouts, and unexpected response shapes.
Step 4: Check Console Errors
Call getConsoleLogs with logLevel: ["error"] to find runtime errors.
- Look for unhandled exceptions, failed assertions, and stack traces.
- Cross-reference timestamps with network errors and user events.
- Silent failure check: if network shows 4xx/5xx but console is clean, the app may be swallowing errors — re-run with no
logLevelfilter.
Step 5: Review User Events
Call getUserEvents to understand the sequence of interactions.
- Identify the exact action that triggered the bug.
- Note any unexpected navigation or repeated actions (signs of user confusion).
Step 6: Analyze Visual Evidence
Based on the Jam type from getDetails:
- Screenshot Jams — call
getScreenshotsto examine visual state. - Video Jams — call
getFrameswithoverview: truefirst: it returns a single timestamp-labeled grid of frames spanning the whole recording, the fastest way to see what happened on screen. Then sample around the failure withat: [<ms>, ...]or afromMs/toMswindow (max 30 frames per call;sizecontrols resolution). - Video Jams with mic — also call
getVideoTranscript(cheap, fast — the reporter's narration captures intent directly). If you need richer context, callanalyzeVideofor extracted intents. - Video Jams without mic — use
getFramesplusanalyzeVideo. - For a longer video, use
getVideoChaptersto choose a chapter, then inspect its midpoint withgetFrames. Chapters and timestamped video comments can include a publicthumbnailUrlto share with a person. analyzeVideoandgetFramesshort-circuit on non-video Jams, so always check the type first.
Step 7: Check Custom Metadata
Call getMetadata to retrieve any app-specific context (user IDs, feature flags, app version) that the application set via the jam.metadata() SDK.
Step 8: Produce Diagnosis
Compile findings into a structured report:
## Bug Report Analysis
### Summary
[One-sentence description of the issue]
### What Happened
[Sequence of events from user's perspective]
### Root Cause Hypothesis
[Most likely technical cause based on evidence]
### Supporting Evidence
- [Network error / console error / user event that supports the hypothesis]
- [Additional data points]
### Recommended Next Steps
1. [Specific action to fix or further investigate]
2. [Additional actions]Tips
- Not all steps are needed for every bug. If the Investigation Guide from Step 2 gives you enough signal, skip straight to the diagnosis.
- Use
searchJamsfor similar reports;listJamsis deprecated. For example,{ v: 1, text: "checkout", window: { from: "-P7D" }, where: [{ field: "author", op: "eq", value: "me" }] }. UsecapturedUrlwithcontainsto filter the recorded page URL. For later pages, reuse the absolutewindowfromexecuted.query.windowand pass the returnedpage.cursorin the next request'spage.cursorwhilepage.hasMoreis true. Do not resend-P7D: it resolves to a new timestamp and invalidates the cursor. Return each result'surlunchanged. - When the user asks, add your findings back to the Jam with
createComment(Markdown supported) so the team sees them. PassplaybackRelativeTimestampto pin a comment to a specific moment in a video or replay. - If a fresh Jam's event tools return "not ready yet," the Jam is still being processed — wait a few seconds and retry, or fall back to data that's already available.
If a Jam tool, command, doc, or skill needs feedback, use submitFeedback only after showing the user the exact text and getting approval. Send at most once per session, under 200 words, with no secrets, customer data, source code, or stack traces. Do not report a mistake you corrected yourself.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

