rollbar-reader
Original:🇺🇸 English
Translated
Investigate and analyse Rollbar errors, items, occurrences, deploys, and project health using the rollbar CLI. Use when asked to investigate Rollbar errors, search error items, check deploy status, run RQL queries, get occurrence details, or analyse any Rollbar data.
104installs
Sourcedelexw/claude-code-misc
Added on
NPX Install
npx skill4agent add delexw/claude-code-misc rollbar-readerTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Rollbar Reader
Investigate and analyse Rollbar error tracking data using the CLI (https://github.com/delexw/rollbar-cli).
rollbarArguments
- — What to investigate (e.g.
$ARGUMENTS[0],"active errors last 24h","top items production","item 12345"). Include the time range in the sentence (e.g."deploys this week","last 24h","yesterday"). Use current agent's local timezone (detect via system clock) for any time-based queries, not UTC. Defaults to last 24 hours if no time range is mentioned."2026-03-01 to 2026-03-05" - — (optional) Base directory for all temp assets. Defaults to
$ARGUMENTS[1]..rollbar-reader-tmp/
System Requirements
- CLI installed —
rollbar(see https://github.com/delexw/rollbar-cli)npm install -g @delexw/rollbar-cli - A project access token configured via and
rollbar config set-token <project> <token>. Important: When checking configuration, verify at least 2 times before concluding it is not configured. Never expose token values — use existence checks only.rollbar config set-default <project> - For account-level commands (teams, users, projects): account token configured via (optional, only needed for account-level queries)
rollbar config set-account-token <token>
Output Directory
All intermediate JSON and the final report are saved to the output directory (default ):
.rollbar-reader-tmp/.rollbar-reader-tmp/
├── items.json # Error items list
├── occurrences/
│ └── <ITEM_ID>.json # Occurrences per item
├── deploys.json # Deploy history
├── rql-results.json # RQL query results (if used)
├── reports/
│ ├── top-active.json # Top active items report
│ └── occurrence-counts.json # Occurrence count data
└── report.md # Final analysis reportExecution
1. Verify Installation & Configuration
Check if the CLI is installed:
rollbarbash
which rollbarIf not found, install it automatically: . See references/setup-guide.md for full setup details.
npm install -g @delexw/rollbar-cliIf no projects are configured, guide the user through token setup using references/setup-guide.md. Never expose token values — use existence checks only.
Do NOT continue until both installation and configuration are verified.
2. Discover Configured Projects & Select Target
Always start by listing configured projects to know which projects are available:
bash
rollbar config listThis returns all configured project names. Use this to:
- Show the user which projects are available to query
- Infer the correct flag from the user's request context (e.g. if they mention "storefront errors", match to a project name like
--project)elements-storefront - If only one project is configured, use it automatically
- If multiple projects match the context, ask the user which one to query
The global flag selects which project to query. It must match a name from . Examples:
--project <name>rollbar config listbash
# Query items for a specific project
rollbar --project elements-storefront items list --status active
# Query occurrences for a specific project
rollbar --project elements-backend occurrences listIf the user does not specify a project and the default project (from ) is appropriate, you can omit to use the default.
rollbar config show--project3. Prepare Output Directory
Create the output directory and subdirectories:
bash
mkdir -p <OUT_DIR>/occurrences <OUT_DIR>/reportsWhere is or if not provided.
<OUT_DIR>$ARGUMENTS[1].rollbar-reader-tmp/4. Investigate Using Items & Occurrences
Based on (which includes the time range), query Rollbar data. Use for all commands to get structured output. Run commands sequentially.
$ARGUMENTS[0]--format jsonrollbar items
— Query Error Items (Readonly)
rollbar itemsList items with optional status and level filters:
bash
# List all active items (default project)
rollbar items list --status active
# List active critical items for a specific project
rollbar --project my-app items list --status active --level critical
# List active errors (not warnings/info)
rollbar --project my-app items list --status active --level error
# List resolved items
rollbar --project my-app items list --status resolved
# List muted items
rollbar items list --status muted
# Paginate through results
rollbar --project my-app items list --status active --page 2Available values: , , , etc.
Available values: , , , , .
--statusactiveresolvedmuted--levelcriticalerrorwarninginfodebugGet a single item by ID, UUID, or project counter:
bash
# Get item by numeric ID
rollbar items get --id 123456789
# Get item by UUID
rollbar items get --uuid "abcd1234-ef56-7890-abcd-ef1234567890"
# Get item by project counter (the "#123" number shown in Rollbar UI)
rollbar --project my-app items get --counter 123rollbar occurrences
— Query Occurrences (Readonly)
rollbar occurrencesList all recent occurrences across the project:
bash
# List recent occurrences (default project)
rollbar occurrences list
# List occurrences for a specific project
rollbar --project my-app occurrences list
# Paginate
rollbar --project my-app occurrences list --page 2List occurrences for a specific item (requires the item ID from or ):
items listitems getbash
# Get all occurrences for item ID 123456789
rollbar --project my-app occurrences list-by-item 123456789
# Paginate through occurrences
rollbar --project my-app occurrences list-by-item 123456789 --page 2Get a single occurrence by occurrence ID (for full detail including stack trace, request data, etc.):
bash
# Get full occurrence detail
rollbar occurrences get 987654321This returns the complete occurrence payload — stack trace, request params, person data, server info, custom data, etc.
Typical Investigation Workflow
- List configured projects →
rollbar config list - List active errors →
rollbar --project <name> items list --status active --level error - Pick a high-impact item → note the item ID from the list
- Get item detail →
rollbar --project <name> items get --id <item_id> - List occurrences for that item →
rollbar --project <name> occurrences list-by-item <item_id> - Get full occurrence detail → (to see stack trace, request data)
rollbar occurrences get <occurrence_id> - Repeat for other high-priority items
Time range handling:
- Extract time range from (e.g.
$ARGUMENTS[0],"last 24h","yesterday")"2026-03-01 to 2026-03-05" - Convert to appropriate flags for report commands or date ranges for RQL queries
--hours - Default: last 24 hours if no time range is mentioned in
$ARGUMENTS[0]
Save intermediate results as JSON to the output directory for reference.
5. Deep-Dive (if needed)
For error investigation, drill into specific items:
- List active error/critical items
- For each high-priority item, fetch recent occurrences
- Get the full occurrence detail for the most recent occurrence to understand the error context (stack trace, request data, etc.)
- Check deploys around the time errors started to correlate with releases
6. Report
All timestamps in the report must use current agent's local timezone (detect via system clock), not UTC.
Write a structured analysis to using the Write tool:
<OUT_DIR>/report.md- Summary — Overall error health and key findings
- Top Items — Highest impact error items with occurrence counts, levels, and first/last seen
- Error Details — Breakdown of investigated items: stack traces, affected environments, occurrence patterns
- Deploy Correlation — Recent deploys and any correlation with error spikes
- Trends — Occurrence count trends over the time range
- Recommendations — Suggested follow-up actions (items to resolve, investigate further, etc.)
Inform the user of the report location:
<OUT_DIR>/report.mdReference Files
| Name | When to Read |
|---|---|
| references/setup-guide.md | Installation and configuration guide |