agentleFS
jamdotdevjamdotdev/jam-plugin/skills/investigate-bug/SKILL.md

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

  • Other versions5 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 5

    1. danielvm-git/bigpowers★ 252same name
    2. hamakyo/okf-skills★ 2same name
    3. jasonhulbert/skills★ 1same name
    4. napnap11/claude-skills★ 1same name
    5. 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.

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
  1. Very specific:

    Call getDetails with the provided Jam URL or ID.

    line 14
  2. Very specific:

    Call getNetworkRequests with filters to focus on problems:

    line 33
  3. Very specific:

    All network filters, including contentType, take arrays.

    line 39
  4. Very specific:

    Call getConsoleLogs with logLevel: ["error"] to find runtime errors.

    line 45
  5. Distinctive:

    Look for unhandled exceptions, failed assertions, and stack traces.

    line 46
  6. Very specific:

    Silent failure check: if network shows 4xx/5xx but console is clean, the app may be swallowing errors — re-run with no logLevel filter.

    line 48
  7. Very specific:

    Call getUserEvents to understand the sequence of interactions.

    line 52
  8. Very specific:

    Call getMetadata to retrieve any app-specific context (user IDs, feature flags, app version) that the application set via the …

    line 68
  9. Distinctive:

    Not all steps are needed for every bug.

    line 97
  10. Very specific:

    When the user asks, add your findings back to the Jam with createComment (Markdown supported) so the team sees them.

    line 99
  11. Distinctive:

    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 …

    line 100

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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, or replay
  • 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 high priority paths first; defer medium until they're exhausted.
  • For video Jams where the reporter had the mic on, getVideoTranscript is now prioritized above analyzeVideo — 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 failures
  • host: ["api.example.com"] to scope to a specific backend
  • method: ["POST"] for mutation failures
  • limit to 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 logLevel filter.

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 getScreenshots to examine visual state.
  • Video Jams — call getFrames with overview: true first: 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 with at: [<ms>, ...] or a fromMs/toMs window (max 30 frames per call; size controls resolution).
  • Video Jams with mic — also call getVideoTranscript (cheap, fast — the reporter's narration captures intent directly). If you need richer context, call analyzeVideo for extracted intents.
  • Video Jams without mic — use getFrames plus analyzeVideo.
  • For a longer video, use getVideoChapters to choose a chapter, then inspect its midpoint with getFrames. Chapters and timestamped video comments can include a public thumbnailUrl to share with a person.
  • analyzeVideo and getFrames short-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 searchJams for similar reports; listJams is deprecated. For example, { v: 1, text: "checkout", window: { from: "-P7D" }, where: [{ field: "author", op: "eq", value: "me" }] }. Use capturedUrl with contains to filter the recorded page URL. For later pages, reuse the absolute window from executed.query.window and pass the returned page.cursor in the next request's page.cursor while page.hasMore is true. Do not resend -P7D: it resolves to a new timestamp and invalidates the cursor. Return each result's url unchanged.
  • When the user asks, add your findings back to the Jam with createComment (Markdown supported) so the team sees them. Pass playbackRelativeTimestamp to 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.