feat(iterate-pr): Add scripts for structured CI and feedback data#34
Merged
feat(iterate-pr): Add scripts for structured CI and feedback data#34
Conversation
Add helper scripts that pre-process GitHub API data to reduce token usage and improve feedback categorization: - fetch_pr_checks.py: Fetches CI checks and extracts relevant failure snippets using pattern matching instead of full logs - fetch_pr_feedback.py: Categorizes PR feedback as blocking, suggestion, bot, or resolved Update SKILL.md to: - Reference the optional helper scripts with fallback to gh commands - Add Step 6 for handling subjective feedback with user prompts - Present suggestion-type feedback as numbered list for user selection Co-Authored-By: Claude <noreply@anthropic.com>
Restructure SKILL.md to follow OpenAI skill patterns: - Scripts are now the primary approach, not optional - Reduced from 185 to 131 lines by removing redundant gh CLI docs - Moved fallback commands to a single section at the end - Clearer workflow with numbered steps Co-Authored-By: Claude <noreply@anthropic.com>
trevor-e
approved these changes
Feb 3, 2026
plugins/sentry-skills/skills/iterate-pr/scripts/fetch_pr_feedback.py
Outdated
Show resolved
Hide resolved
Update fetch_pr_feedback.py to detect and use Sentry's LOGAF scale: - h: / [h] / high: → high priority (must fix) - m: / [m] / medium: → medium priority (should fix) - l: / [l] / low: → low priority (optional) Categories renamed from blocking/suggestion to high/medium/low to align with Sentry's code review guidelines. Refs: https://develop.sentry.dev/engineering-practices/code-review/#logaf-scale Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add helper scripts that pre-process GitHub API responses to reduce token usage and improve the iterate-pr workflow.
Inspired by OpenAI's agent skills which use scripts to extract only relevant information rather than dumping raw API output.
Scripts:
fetch_pr_checks.py- Fetches CI check status and extracts failure snippets:fetch_pr_feedback.py- Fetches and categorizes PR review feedback:blocking,suggestion,bot,resolvedSKILL.md changes:
ghCLI documentation