Przejdź do treści
Biblioteka skilli
Programowanie · Automatyzacja

fix-sentry-issue

/fix-sentry-issue

Bada najbardziej wykonalne otwarte zgłoszenie Sentry dla force-production, znajduje przyczynę w kodzie źródłowym i otwiera pull request z poprawką.

Repozytorium
force ↗
Licencja
MIT
Ostatnia zmiana repozytorium
27.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
3
Przestarzałość

Brak sygnałów. Repozytorium zmienione 27.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Bada najbardziej wykonalne otwarte zgłoszenie Sentry dla force-production, znajduje przyczynę w kodzie źródłowym i otwiera pull request z poprawką.

Oryginalny opis (EN)

Investigates the most actionable open Sentry issue for force-production, locates the root cause in source code, and opens a fix PR. Use when asked to look at Sentry, fix a Sentry issue, or investigate production errors.

Jak działa

  1. Prerequisites
  2. Check Sentry MCP is available
  3. Find the most actionable issue
  4. Confirm with user
  5. Investigate root cause
  6. Locate source code
  7. Implement fix
  8. Verify quality
  9. Open PR
  10. Celebrate
Sekcje z nagłówków SKILL.md, w oryginale · 130 linii, 814 słów
Podgląd SKILL.md
---
name: fix-sentry-issue
description: Investigates the most actionable open Sentry issue for force-production, locates the root cause in source code, and opens a fix PR. Use when asked to look at Sentry, fix a Sentry issue, or investigate production errors.
---

# Fix a Sentry issue

## Prerequisites

You need the Sentry MCP server connected to Claude Code. Run this once:

```sh
claude mcp add --transport http sentry https://mcp.sentry.dev/mcp
```

Then authenticate when prompted.

---

Sentry org: `artsynet` — project: `force-production`

## Check Sentry MCP is available

Before doing anything else, verify the Sentry MCP tools are accessible by attempting to call `mcp__sentry__whoami`. If the call fails or the tool is not available, stop immediately and tell the user:

> The Sentry MCP server is not connected. Use `/mcp` to reconnect it, or run `claude mcp add --transport http sentry https://mcp.sentry.dev/mcp` if it hasn't been added yet. Then start a new session and try again.

Do not attempt to work around this using the REST API, environment variables, or subagents.

---

Use this checklist to track progress:

- [ ] Verify Sentry MCP is available
- [ ] Find the most actionable issue
- [ ] Confirm with user
- [ ] Investigate root cause
- [ ] Locate source code
- [ ] Implement fix
- [ ] Verify quality
- [ ] Open PR

---

## Find the most actionable issue

Query `mcp__sentry__search_issues` with:

- `organizationSlug: artsynet`
- `projectSlugOrId: force-production`
- `query: is:unresolved`
- `sort: freq`

Pick the issue that best matches all of these criteria. The best candidate will match most of them:

- **High event volume** relative to user count — many events per user suggests repeated crashing, not a one-off
- **First-party stack frames** — the stack trace includes files under `src/` (TypeScript filenames, not minified bundle references); issues where every frame is inside `react-dom` or `node_modules` are usually not fixable here
- **Not a browser/environment quirk** — skip issues where the top user agents are legacy browsers, bots, or where the culprit is a third-party script
- **Not a stale-build hydration error** — `removeChild` / hydration crashes on routes other than a known-bad one are often caused by users running old cached JS with no source maps; these don't have a code fix
- **Not already assigned or in progress**

If a specific issue ID was provided by the user, skip this step and use that instead.

---

## Confirm with user

Present the chosen issue (title, event count, Sentry URL) and use `AskUserQuestion` to ask whether to proceed with it or pick the next candidate. This prevents the skill from duplicating work when a fix is already in flight but not yet merged.

---

## Investigate root cause

1. Use `mcp__sentry__get_sentry_resource` on the issue URL to get full details including the stack trace
2. Find a representative recent event using `mcp__sentry__search_events` or `mcp__sentry__search_issue_events` — prefer events where the stack trace resolves to TypeScript filenames (source maps present)
3. Read the stack trace carefully:
   - Identify the **first frame that is in first-party code** (`src/`) — that is the bug site, not the deepest React internals frame
   - Note the component name, file path, and line number
4. Check whether multiple events share the same root frame, or whether the issue groups unrelated bugs under one fingerprint

Common patterns seen in this codebase:

- **State mutation during render**: calling `dispatch` / `setState` inside a render prop callback (e.g., `SystemQueryRenderer`'s `render` prop runs during React's render phase — any state update there causes hydration crashes)
- **React Rules of Hooks violations**: calling hooks conditionally or after an early `return`
- **Unsafe property access**: calling `.toString()` or similar on a value that can be `undefined` at runtime

---

## Locate source code

Use the file path and line number from the stack trace to read the relevant source files. Understand:

- What the component is doing
- Why the crash occurs
- What the correct behavior should be

---

## Implement fix

- Create a feature branch: `git checkout -b <your-name>/fix/<short-description>`
- Make the minimal fix — do not refactor surrounding code
- Do not push directly to `main`

---

## Verify quality

Run all three checks and fix any issues before committing:

```sh
yarn type-check
yarn jest $(git ls-files --modified --others --exclude-standard)
yarn lint $(git ls-files --modified --others --exclude-standard)
```

---

## Open PR

Open a PR with:

- A short title following Conventional Commits style (`fix: ...`)
- A **What** section explaining the bug
- A **Fix** section explaining the change
- A **Related** section linking to the Sentry issue (e.g., `https://artsynet.sentry.io/issues/FORCE-PRODUCTION-XXXX`) and noting whether this fully fixes or only reduces the issue

> **IMPORTANT — do not auto-resolve the Sentry issue prematurely.**
> Never use `Fixes FORCE-PRODUCTION-XXXX` or `Closes FORCE-PRODUCTION-XXXX` in a commit message. Sentry's GitHub integration treats these as trigger keywords and will resolve the issue immediately when the branch is pushed — before the fix is deployed. Reference the Sentry issue only as a URL in the PR body, never as a keyword in a commit message.

## Celebrate

Indicate you are done with a /beep

Wersje

W bazie nie ma innych skilli o nazwie fix-sentry-issue.

Migawka bazy z 13.11.2026 · wersja paczki 769d5f5d0955 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100sentry-note-crash-fix
    Bada i naprawia awarie aplikacji FeedFlow na podstawie notatek triażowych Sentry: ustala przyczynę, proponuje lub wdraża poprawkę, waliduje ją, zatwierdza commit i zamyka zgłoszenie.
  • 100rm-sentry-issue-fixer
    Znajduje i naprawia błędy zgłoszone w Sentry, analizując stack trace, breadcrumbs i kontekst, aby dotrzeć do przyczyny.
  • 85sentry-workflow
    Naprawia błędy produkcyjne z kontekstem Sentry: triage wyjątków, komentarze z przeglądów PR i debugowanie.
  • 100sentry-fix-issues
    Znajduje i naprawia błędy zgłoszone w Sentry przez MCP, analizując stack trace, ślady i kontekst zdarzeń.
  • 92sentry-top-issue
    Wybiera jeden najważniejszy nierozwiązany błąd z Sentry i przekazuje go do skilla naprawczego.
  • 100sentry-fix-issues
    Znajduje i naprawia błędy zgłoszone w Sentry przez MCP, analizując stack trace, breadcrumbs, ślady i kontekst, aby ustalić przyczynę źródłową.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.