Analyze context

From pipecat-ai/gradient-bang · View interactive version

Analyze context is an AI agent skill from the GitHub repository pipecat-ai/gradient-bang. Analyzes a gameplay session context dump from Gradient Bang. Summarizes agent activity and, if the user reports a problem, identifies where it occurred and scans source code for the root cause.

How to use this skill

Skill file

Analyze Context

Analyzes a gameplay session context dump from Gradient Bang. Summarizes agent activity and, if the user reports a problem, identifies where it occurred and scans source code for the root cause.

Parameters

Steps

1. Receive input

The user provides a context dump, either inline in the message or as a file path. If they provide a file path, read the file. If neither is provided, check whether there is a currently open file in the IDE (it will appear in the conversation context tagged as ide_opened_file). If there is, read that file and use it as the context dump. If there is no open file either, ask:

"Please paste your context dump or provide a file path."

2. Check for a stated problem

"Did anything go wrong during this session, or do you just want a summary?"

3. Summarize the session

Scan the full context dump and produce a terse, factual summary:

Keep this section short — bullet points preferred, no padding.

4. Locate the issue in the context (only if a problem was stated)

Scan the context for evidence of the problem:

5. Identify root cause in source code (only if a problem was stated)

Using the issue location and agent identified in Step 4, read the relevant source files:

Focus on:

Cite file paths and line numbers for every suspect location.

6. Output

Produce the final report in exactly this format:

## Summary of session
<terse bullet-point summary of VoiceAgent and TaskAgent activity>

## Cited issue(s)
<quoted excerpt(s) from the context showing where the problem occurred, with agent attribution and context position>
<file:line references from source code identified as the likely cause>

## Potential fixes
<concrete, specific suggested code changes with file:line references>

If no problem was reported and the user confirmed they just want a summary, omit Cited issue(s) and Potential fixes entirely.

Important notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.