use-sentry-cli-debug
Skill608 starsChanged 2 months agoMITView on GitHub
Use the official Sentry CLI to investigate issues, events, traces, and logs for Vibe Remote without committing Sentry credentials into the repository.
- Pipes a download into a shell
- Reads credentials
In this repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- pr-delivery-loopSkill
- agent-prompt-auditSkill
- background-watch-hookSkill
- use-avibe-harnessSkill
- use-avibeSkill
- use-avibe-vaultSkill
- use-show-pagesSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. About 0 are common, 5 are distinctive, and 13 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 10
Use this skill when the user asks to inspect Sentry issues, events, traces, logs, or authenticated Sentry API responses from the command …
- Very specific: line 14
Prefer sentry CLI subcommands over raw REST calls.
- Very specific: line 15
Do not commit credentials.
- Very specific: line 16
Keep output small. Prefer --json --fields ..., --limit ..., and jq when filtering.
- Very specific: line 18
Verify CLI context before debugging.
- Very specific: line 22
If sentry is not installed:
- Very specific: line 46
Never add the token to tracked files such as .env, .envrc, config/*.json, settings.json, or skill files.
- Distinctive: line 50
Before querying Sentry, read vibe-remote.md for the tags and environment metadata currently attached by this repository.
- Very specific: line 73
If auto-detection is unreliable, use explicit <org>/<project> in every command.
- Very specific: line 102
Use sentry issue explain only after you have the raw issue details.
- Distinctive: line 113
Use trace and log commands when the issue points to timing, retries, upstream HTTP failures, or multi-step orchestration problems.
- Very specific: line 121
Prefer --method, --data, and --header only when the dedicated CLI command cannot express the operation.
- Very specific: line 125
If the bug is user-visible in regression, first search environment:regression.
- Very specific: line 127
When the report is platform-specific, try primary_platform:<platform> and cross-check local logs if Sentry detail is incomplete.
- Very specific: line 128
If no Sentry result appears, check whether the problem was only logged locally in ~/.vibe_remote/logs/vibe_remote.log.
- Distinctive: line 129
If Sentry output is too noisy, reduce fields instead of pasting full blobs back to the user.
- Very specific: line 133
When the user wants release management or source map upload only, use generic sentry CLI commands directly without a full debug workflow.
- Distinctive: line 134
When the user explicitly wants dashboard/MCP-based investigation instead of CLI.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Use Sentry CLI Debug
Use this skill when the user asks to inspect Sentry issues, events, traces, logs, or authenticated Sentry API responses from the command line while working in the Vibe Remote repository.
Core Rules
- Prefer
sentryCLI subcommands over raw REST calls. Usesentry issue,sentry event,sentry trace, andsentry logfirst. Fall back tosentry apionly when the dedicated command cannot expose the needed field. - Do not commit credentials. Prefer
sentry auth logininteractive auth. If token auth is required, use a shell-scopedSENTRY_AUTH_TOKENor another untracked local secret source. Never write tokens into tracked repo files. - Keep output small. Prefer
--json --fields ...,--limit ..., andjqwhen filtering. - Stay read-only by default. Do not resolve, mute, delete, or otherwise mutate Sentry state unless the user explicitly asks.
- Verify CLI context before debugging. Run
sentry auth status, then confirm the target org/project if auto-detection looks ambiguous.
Prerequisites
If sentry is not installed:
curl https://cli.sentry.dev/install -fsS | bashThen verify:
sentry --help
sentry auth statusAuthentication options that do not require committing secrets:
# Preferred: interactive login managed by the CLI
sentry auth login
# Alternative: shell-scoped token
export SENTRY_AUTH_TOKEN=...
sentry auth login --token "$SENTRY_AUTH_TOKEN"Never add the token to tracked files such as .env, .envrc, config/*.json, settings.json, or skill files.
Repo-Specific Context
Before querying Sentry, read vibe-remote.md for the tags and environment metadata currently attached by this repository.
Important current signals:
component=servicefor the main servicecomponent=uifor the Flask UImode=<config.mode>primary_platform=<config.platforms.primary>deployment_environment=<resolved environment>release=vibe-remote@<version>
These are useful narrowing dimensions when many unrelated issues exist in the same Sentry org/project.
Debug Workflow
1. Confirm auth and scope
sentry auth status
sentry org list
sentry project list <org>If auto-detection is unreliable, use explicit <org>/<project> in every command.
2. Triage recent issues
sentry issue list <org>/<project> \
--query 'is:unresolved' \
--limit 10 \
--json \
--fields shortId,title,count,userCount,lastSeen,level,statusCommon filters:
sentry issue list <org>/<project> --query 'is:unresolved environment:regression'
sentry issue list <org>/<project> --query 'component:service'
sentry issue list <org>/<project> --query 'component:ui'
sentry issue list <org>/<project> --query 'primary_platform:slack'
sentry issue list <org>/<project> --query 'release:vibe-remote@1.2.3'3. Inspect one issue deeply
sentry issue view <short-id>
sentry issue explain <short-id>Use sentry issue explain only after you have the raw issue details. Treat the AI explanation as a hint, not ground truth.
4. Inspect concrete event, trace, and logs
sentry event view <org>/<project>/<event-id>
sentry trace view <trace-id>
sentry trace logs <trace-id> --limit 100
sentry log list <org>/<project> --query 'level:error' --limit 100Use trace and log commands when the issue points to timing, retries, upstream HTTP failures, or multi-step orchestration problems.
5. Use sentry api only as a fallback
sentry api /api/0/organizations/<org>/issues/Prefer --method, --data, and --header only when the dedicated CLI command cannot express the operation.
Vibe Remote Triage Hints
- If the bug is user-visible in regression, first search
environment:regression. - Split
component:serviceandcomponent:uiearly. Do not mix backend startup errors with UI Flask failures. - When the report is platform-specific, try
primary_platform:<platform>and cross-check local logs if Sentry detail is incomplete. - If no Sentry result appears, check whether the problem was only logged locally in
~/.vibe_remote/logs/vibe_remote.log. - If Sentry output is too noisy, reduce fields instead of pasting full blobs back to the user.
When Not to Use This Skill
- When the user wants release management or source map upload only, use generic
sentryCLI commands directly without a full debug workflow. - When the user explicitly wants dashboard/MCP-based investigation instead of CLI.
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.

