Fix Sentry Issuesのロゴ

Fix Sentry Issues

コミュニティ
exiao
fix-sentry-issues

Use when scanning Sentry issues and creating fix PRs. Trigger phrases include "sentry scan", "fix sentry", "scan errors", "what's crashing".

概要

公開者exiao
リポジトリskills
スキル名fix-sentry-issues
スター
40
フォーク
12
同梱ファイル
指示のみ
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    exiaoがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルFix Sentry IssuesをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/exiao/skills/tree/main/coding/fix-sentry-issues
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/exiao/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/coding/fix-sentry-issues .claude/skills/fix-sentry-issues
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでFix Sentry Issuesを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にFix Sentry Issuesを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Fix Sentry Issuesは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Fix Sentry Issues

Scan recent Sentry issues, analyze root causes, and create PRs to fix them.

Prerequisites

  • Official Sentry CLI (sentry) authenticated via SENTRY_AUTH_TOKEN
  • $SENTRY_ORG and $SENTRY_PROJECT set
  • GitHub CLI (gh) authenticated
  • Git worktrees for isolated branches

Workflow

1. Fetch recent issues (last 12h, most recent 10)

bash
sentry issue list $SENTRY_ORG/$SENTRY_PROJECT --limit 10 -t 12h --json \
  | jq '{data:[.data[] | {id,shortId,title,culprit,permalink,status,count,userCount,firstSeen,lastSeen,level,logger,type,issueType,metadata}]}'

Use the official Sentry CLI. Do not fall back to MCP tools; configured MCP servers may not expose them consistently.

Note: Fetch ALL issues (not just unresolved) to catch regressions and issues that were auto-resolved but still occurring.

1b. Verify recently resolved issues

bash
sentry issue list $SENTRY_ORG/$SENTRY_PROJECT --limit 10 -t 7d --query 'is:resolved' --json \
  | jq '{data:[.data[] | {id,shortId,title,culprit,permalink,status,statusDetails,metadata,type,issueType,level,logger,project}]}'

For each resolved issue:

  1. Check statusDetails.inCommit or statusDetails.inRelease for the resolving commit/PR
  2. Read the actual diff. Does it fix root cause or just suppress Sentry noise?
  3. Noise-only fixes to flag: adding to ignoreErrors, beforeSend filters, downgrading log levels, or removing capture_exception WITHOUT fixing the underlying bug
  4. If the "fix" was noise suppression and the underlying issue is a real code bug, mark it FIX

Add a "Resolved Issue Audit" section to the plan:

markdown
## Resolved Issue Audit
### ISSUE_SHORT_ID — <title>
- **Resolved by:** <commit hash / PR link>
- **Fix type:** ROOT_CAUSE / NOISE_SUPPRESSION / LEGITIMATE_NOISE
- **Assessment:** <Is the underlying issue actually fixed?>
- **Action needed:** NONE / REOPEN_AND_FIX

2. Deep-analyze every issue

bash
sentry issue view <ISSUE_SHORT_ID> --json > /tmp/sentry_details/<ISSUE_SHORT_ID>.json
sentry issue events <ISSUE_SHORT_ID> --json > /tmp/sentry_cli_events/<ISSUE_SHORT_ID>.json

3. Write plan file

Create ~/.hermes/plans/sentry-fix-YYYY-MM-DD-HH.md:

markdown
# Sentry Fix Plan — YYYY-MM-DD HH:00

## Summary
- Issues analyzed: N
- Fixable: N
- Noise-only "fixes" reopened: N
- Skipped: N

## Issues

### 1. ISSUE_SHORT_ID — <title>
- **Events (24h):** N | **Users affected:** N
- **Status:** unresolved/resolved/ignored
- **Stack trace summary:** <key frames>
- **Root cause:** <analysis>
- **Proposed fix:** <specific code changes>
- **Verdict:** FIX / SKIP (reason)

FIX if: clear stack trace in app code, identifiable root cause, contained fix, high frequency/severity, or prior "fix" was noise suppression.

SKIP if: third-party code, unclear root cause, requires major architecture changes, duplicate of existing fix, PR already exists, or genuinely fixed.

4. Create fixes

For each fixable issue, use a git worktree:

bash
cd ~/projects/<repo>
git fetch origin
BASE_REF=$(git show-ref --verify --quiet refs/remotes/origin/main && echo origin/main || echo origin/master)
git worktree add ~/projects/_worktrees/sentry-<SHORT_ID> -b fix/sentry-<SHORT_ID> "$BASE_REF"

Fix guidelines:

  • Address the root cause, not just the symptom
  • Add proper error handling / null checks / type guards
  • If it's a crash, make it a graceful degradation
  • Run lint and tests before committing

5. Create PRs

bash
cat > /tmp/sentry-pr-body.md <<'EOF'
## Sentry Issue
- **Issue:** <SENTRY_ISSUE_ID>
- **Error:** <error message>
- **Frequency:** <events/users count>

## Root Cause
<explanation>

## Fix
<what was changed and why>

## Testing
- [ ] Lint passes
- [ ] Tests pass
- [ ] Fix addresses the stack trace
EOF

gh pr create --title "fix: <description> (<SENTRY_ISSUE_ID>)" --body-file /tmp/sentry-pr-body.md

6. Leave worktrees intact

Do not remove worktrees or branches after opening the PR.

7. Report summary

After processing all issues, provide:

  • Issues analyzed (count + IDs)
  • PRs created (with links)
  • Issues skipped (with reasons)
  • Plan file location

Move completed plan to ~/.hermes/plans/archive/.

Noise Reduction Patterns

When issues aren't code bugs but create Sentry noise:

PatternWhenFix
Downgrade error → warningExpected failures (rate limits, health check timeouts)Change log level
Remove capture_exceptionCaller already handles error gracefullyRemove explicit Sentry call; keep warning log
Fix double-reportingInner + outer both reportRemove from inner; let caller decide
Add to before_send filterWorker signals, known infra noiseAdd string match in before_send
Frontend beforeSendTimeouts, network errorsDrop event in beforeSend callback

Principle: All failures still log at warning level for debugging. Only Sentry issue creation is suppressed. True errors continue reporting normally.

Constraints

  • 10 most recent issues per run
  • Never push to main/master — always branch + PR
  • Don't make speculative changes — only fix what you can trace to the stack trace
  • Prioritize by frequency x severity
  • Check for existing PRs before creating duplicates
  • Always write the plan file first

よくある質問

AIスキル「Fix Sentry Issues」では何ができますか?

Use when scanning Sentry issues and creating fix PRs. Trigger phrases include "sentry scan", "fix sentry", "scan errors", "what's crashing".

TypingMindでFix Sentry Issuesを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Fix Sentry Issuesはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにFix Sentry Issuesをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/exiao/skills/tree/main/coding/fix-sentry-issuesを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Fix Sentry Issuesを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Fix Sentry Issuesは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもFix Sentry Issuesを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Fix Sentry Issues」は無料ですか?

exiaoがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇